PDA

View Full Version : 3D Texture or stack of 2D Textures



iris_raj
05-02-2007, 02:27 AM
Dear OpenGL Programmers,

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

THanks in advance
RAJESH.R

H.Stony
05-02-2007, 03:53 AM
3D Textured are accessed by a 3 diminsional textur coordinate.

azazello
05-02-2007, 04:05 AM
usually, 2D texture sampling performance higher than 3D texture(for example, for nv3x hardware - 2 times).
difference in filtering, texture compression.

k_szczech
05-02-2007, 04:05 AM
Yes. And with 3D textures there's filtering and mipmapping going on along Z axis, too.

Ido_Ilan
05-02-2007, 04:21 AM
Hi,

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.

Ido