Jump to content

  • Log In with Google      Sign In   
  • Create Account

Ray-Casting Voxel Game in OpenGL


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Marron   Members   -  Reputation: 115

Like
0Likes
Like

Posted 23 May 2014 - 03:44 PM

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.



Sponsor:

#2 radioteeth   Prime Members   -  Reputation: 1138

Like
0Likes
Like

Posted 24 May 2014 - 02:16 AM

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






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS