3D Textures

Started by
3 comments, last by stu_pb 20 years, 11 months ago
Does anyone know of any resources (tutorials) on implementing 3D textures in an OpenGL app? Thanks I should probably be working now...
I should probably be working now...
Advertisement
Look up glTexImage3D on Google or in the Red Book.
---I write code.DelphiGL (http://delphigl.cfxweb.net)
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?
I should probably be working now...
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.
---I write code.DelphiGL (http://delphigl.cfxweb.net)
That is what I was hoping, since that''s the way I coded it.
Thanks for your help!
I should probably be working now...

This topic is closed to new replies.

Advertisement