Jump to content

Sparse Voxel Octree Raycasting


Josh

2,190 views

 Share

I've got cone step tracing working now with the sparse voxel octree implementation. I actually found that two different routines are best when the surface is rough or smooth. For sharp reflections, and precise voxel raytracing works best:

861b8c716c0349299502c8102e8e22ab.raycast.thumb.jpg.da9ab9b1423edf48f61a61d1b008732d.jpg

For rough surfaces, cone step tracing can be used. There are some issues to work out and I need to revisit the downsampling routine, but it's basically working:

057721050e214904aaa7af6041b1811f.conesteptrace.thumb.jpg.0e84afd8d812b855f1599c41785889a3.jpg

Here's a video showing the sharp raycast in motion. Performance is quite good with this:

 

  • Like 5
  • Thanks 1
  • Upvote 1
 Share

3 Comments


Recommended Comments

With reflections and all these new rendering capabilities, I have to ask: would it be possible (feasible I should say) to make a house of mirrors horror video game with this?

Link to comment
1 hour ago, IceBurger said:

With reflections and all these new rendering capabilities, I have to ask: would it be possible (feasible I should say) to make a house of mirrors horror video game with this?

It would not be that hard to modify the shader to reflect the ray and do a second bounce. Whether this is a good idea or not, I do not know. :lol:

  • Like 1
Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...