Page 1 of 1

SDL Raycasting demo

Posted: Sat Jun 10, 2023 2:36 am
by dwayne_jarvis
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

Re: SDL Raycasting demo

Posted: Sat Jun 17, 2023 1:14 pm
by jalih
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.
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?