• Advertisement

Archived

This topic is now archived and is closed to further replies.

3D Textures

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

Does anyone know of any resources (tutorials) on implementing 3D textures in an OpenGL app? Thanks I should probably be working now...

Share this post


Link to post
Share on other sites
Advertisement
I''ve looked at the specs on glTexImage3D and I have just one more question. In the specs it says that the pixels parameter to glTexImage3D is read from the bottom left to the top right pixel. However, it doesn''t mention if it reads a row across and then another row across a pixel "deeper", or if it reads a row "deep" and then moves to the next pixel across.

anyone know what order it reads, Thanks?

Share this post


Link to post
Share on other sites
Think of a 2D texture thats 3x3 in size:

111
222
333

glTexImage2D will read this as a linear chunk of memory like this:

111222333

In a 3D texture, its just composed of a number of 2D textures that are treated as adjacent rectangles in memory.

Share this post


Link to post
Share on other sites
That is what I was hoping, since that''s the way I coded it.
Thanks for your help!

Share this post


Link to post
Share on other sites

  • Advertisement