Omnimaga

General Discussion => Technology and Development => Computer Programming => Topic started by: Spenceboy98 on May 24, 2012, 05:32:48 pm

Title: Raycaster Example
Post by: Spenceboy98 on May 24, 2012, 05:32:48 pm
Can someone please give me an example of a raycaster in C. I don't really understand the coding of a raycaster, and I need help. I've been looking at this tutorial (http://www.permadi.com/tutorial/raycast/index.html), but it really isn't making any sense. Can someone help me?
Title: Re: Raycaster Example
Post by: BlakPilar on May 24, 2012, 05:38:48 pm
Lode's tutorial (http://lodev.org/cgtutor/raycasting.html) is in C++, but it gives you a very good explanation of raycasting. It's the best one I've come across, and I've been able to make raycasters in C# and Java because of it so far. (Though, they're more like ports because I didn't feel like typing everything ;))