Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Ray-Casting Voxel Game in OpenGL

4: Adsense

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   

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.



#2 deftware   Prime Members   

1778
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.