PDA

View Full Version : 3d texture matching



arthas
12-16-2007, 04:58 AM
Hi! anyone knows how 3dtexture mapping is made from the data pointer? i mean, in 2d texture, matching from data to texels is made row-wise, but in 3d texture?

Jan
12-16-2007, 05:43 AM
Just create n 2D textures and store them sequentially in memory. Then give the pointer to the first 2D slice to glTexImage3D.

Jan.