Jump to content
  • Advertisement
Sign in to follow this  
Marron

Ray-Casting Voxel Game in OpenGL

This topic is 1661 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello !

 

I have a question: How should I code Ray-Casting in a voxel game using OpenGL ? I already have character-movement and world-generation. The only thing missing is ray-casting. How could I code this ? I really tried to find appropriate tutorials for this but I didn't find anything.

 

Any help is appreciated.

Anticipated thanks,

Marron.

Share this post


Link to post
Share on other sites
Advertisement

This is a field currently being explored. There are a few ways to go about it, but mostly you will have to figure it out on your own. My strategy is to divide the world up into chunks and perform ray casting within those chunks. Google "GLSL raycasting"

 

http://prideout.net/blog/?p=64

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!