Raycaster

Community Forums/Showcase/Raycaster

Noobody(Posted 2008) [#1]
Hey guys,

in the last few weeks I was experimentating with the raycaster algorithm and this is what came out :D
Raycasting is an alternative way to render 3D - sceneries, similar to raytracing; games like Wolfenstein 3D or Doom used it.
Event though my implementation isn't really complex, it's still able to handle floor, ceilings, textured walls and sprites.
Especially the sprites take quite long to render, since I couldn't figure out a fast visibility check.

There are still bugs I couldn't fix yet.
Sometimes rays fly through walls and things behind the wall are being rendered.

Mocing with arrow keys, + and - on numpad to look up/down.

You can use the code in your games, if you want to - even though I don't expect it :D

You can download the file at http://www.noobody.org/BBP/Raycaster.rar

PS: Please excuse my bad english - I'm still working on it ;)

EDIT: Oh noes, I forgot the screenshots!



EDIT2: Hrm, I can't figure out that part with the image- and url tags...


KillerX(Posted 2008) [#2]
Do it like this, but put a space between img and http:
[imghttp://www.noobody.org/Data/Screenie.PNG]
[imghttp://www.noobody.org/Data/Screenshot.PNG]


Noobody(Posted 2008) [#3]
Oh, thanks alot :D


Jesse(Posted 2008) [#4]
not bad!
it is kind of slow for 320 x 200. isn't it?
anyway..

just did a quick glance at your code and I think I fixed a couple of your errors:



Noobody(Posted 2008) [#5]
Thanks, Jesse, I really have to be dumb to do such simple mistakes :D

What I forgot to mention, if you take out the WaitTimer, it will be much faster (that's not an april fool ;) ).
On my crappy Intel Celeron FPS are between 100 and 200, which is imho acceptable.


Panno(Posted 2008) [#6]
not bad ;)