PDA

View Full Version : update 2d texture stacks



dodgersnow
06-27-2005, 03:43 AM
Hi,

I'm trying to implement an iterative reconstruction algorithm on a graphics card. To represent the volume I choose 2 stacks of 2d Textures. Which of the stacks I choose depends of the geometry of the currently processed projection image. My Problem now is that after the hole process one of the stacks is updated with glCopyTexImage2D and the which is perpendicular to the other must be updated with glCopyTexSubImage2D about 256 times and from 256 textures. So it is very very slow. Is there some nice way to get out of a texture stack a new texture stack where the slices are perpendicular??

Thanks, dodgersnow

ZbuffeR
06-27-2005, 04:13 AM
Why not use 3d textures ?
It will even halve the memory need in your case if I understood well your needs.

dodgersnow
06-27-2005, 06:04 AM
Hi,
because I have to comparise both approaches. In the 3D case the update is easy to do.

dodgersnow