I could write the algorithm to do this myself if I took the time to work it out, but I wanted to see if someone else has done it first.
I'm working on a voxel engine for a game that I'm working on, and I need to trace a ray from the camera's position out a certain distance to try to find the nearest intersection. I was thinking of just taking the cell that the camera is in, then taking the direction, figuring out at what point the ray leaves the cell, then figure out what the next cell is that it will enter. I would keep doing this until I find an intersection.
Does anyone have experience with this? Maybe you have an algorithm that can do just that?
Erika32Member Since 31 Aug 2012
Offline Last Active Oct 24 2012 06:34 AM
- Group Members
- Active Posts 5
- Profile Views 909
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown