News for hackers. Stuff that matters.
Re:GTA III and Vice City fully reverse engineered: re3 by aap_ on Sunday February 14, 2021 @09:34AM (#26132703)
hm, state changes between draw calls are hard to get rid of...after all that's why they're separate calls in the first place. profiling the driver is probably indeed something i should look into.
Re:GTA III and Vice City fully reverse engineered: re3 by garaetjjte on Sunday February 14, 2021 @09:49AM (#26132826)
You should be able to batch CPU-side drawcalls by packing multiple meshes into bigger vertex buffer, then generating draw parameters for every object into SSBO/UBO, and then utilizing ARB_multi_draw_indirect to draw everything at once. To change textures inside these batched drawcalls you might need ARB_bindless_texture. This talk is helpful: https://www.gdcvault.com/play/1020791/Approaching-Zero-Drive...

I don't know if these extensions are available on Pi driver, though.

Re:GTA III and Vice City fully reverse engineered: re3 by reasonabl_human on Sunday February 14, 2021 @12:10PM (#26134021)
I am a developer but you guys are speaking a foreign language from my perspective in this thread. Where can I learn about graphical programming for the Pi, or are you guys well versed in game programming in general and applying it here? Sounds like an interesting skill set and challenge
Re:GTA III and Vice City fully reverse engineered: re3 by wheybags on Sunday February 14, 2021 @02:56PM (#26135656)
https://antongerdelan.net/opengl/ is a decent resource for learning opengl (the author was a TA in my graphics course in college :D). And I do think it's worth Lear ing opengl over vulkan today. Vulkan dials the api complexity up to 11. If you're happy with windows only, then directx 11 would be a good choice too, but I don't have a good reference off hand.

The problem with graphics programming is that really you need to learn two things simultaneously: how 3d graphics are rendered, and how to use a GPU api. They can both be a significant thing to learn alone, and the complexity of cramming the two into your brain together makes things hard.

Re:GTA III and Vice City fully reverse engineered: re3 by FillardMillmore on Sunday February 14, 2021 @01:13PM (#26134612)
Seconded, I too would like resources to learn more about this topic. Spend most of my time with business logic.
Re:GTA III and Vice City fully reverse engineered: re3 by wxkn on Sunday February 14, 2021 @12:41PM (#26134315)
Try out an introductory OpenGL tutorial. There are many out ther. Just drawing a square will be a good lesson