Just a small one this time. Gave this a go in between optimising the SDL Rogue game currently working through. Sometimes it is good to take a quick break.
Tried my hand at converting raycasting code and found great tutorial and knocked this out in a few hours. Original tutorial found here https://lodev.org/cgtutor/raycasting.html
Video playback on my AmigaOne X5000 is here https://youtu.be/bjdUbqPrhi4
If anyone is interested in helping me change the code from SDL to OpenGL to see if it is faster, more than happy to share the code.
Dwayne
SDL Raycasting demo
Re: SDL Raycasting demo
I guess you have done the obvious optimization for tutorial code and draw wall slices directly from texture using hardware acceleration instead of drawing pixel by pixel?dwayne_jarvis wrote: ↑Sat Jun 10, 2023 2:36 am If anyone is interested in helping me change the code from SDL to OpenGL to see if it is faster, more than happy to share the code.