3D Texture or stack of 2D Textures

Dear OpenGL Programmers,

What is difference betweeen 3D Texture and stack of 2D Texture.

THanks in advance

3D Textured are accessed by a 3 diminsional textur coordinate.

Yes. And with 3D textures there’s filtering and mipmapping going on along Z axis, too.

usually, 2D texture sampling performance higher than 3D texture(for example, for nv3x hardware - 2 times).
difference in filtering, texture compression.


3D texture is easier to handle and uses trilinear filtering(filter between slices) but have problems of big continuously memory allocation…
2D texture can get you the same result as 3D but it need more work, once done it could be faster.
Google for post-classification and pre-integration.