Jump to content
  • Advertisement
Sign in to follow this  

Rendering cubes in a shader

This topic is 2606 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

I am currently having a go at volume rendering using cubes. I have been extensively looking through resources on how to do this, and reading explanations on how to do it, and I understand the gist of it.

You send a 3d texture to the shader. Each voxel in this texture contains some data about a "virtual cube"(Could be colour or texture coords in a texture atlas). The shader then renders the cubes.

I read that you render a cube of a specified dimension(8x8x8) for example in the engine, which then gets sent to the shader with a corresponding 3d texture describing the location of the cubes. This cube is then ray casted through each of its pixels in the shader, and cubes rendered in this way. This is what confuses me.

What does this mean? How is it possible to render faces using this method?

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!