(Ogre3D) Using a 3D texture slice as a 2D texture input.

Posted by ~mech on Stack Overflow See other posts from Stack Overflow or by ~mech
Published on 2010-06-12T10:46:48Z Indexed on 2010/06/12 10:53 UTC
Read the original article Hit count: 252

Filed under:
|
|
|

Hello,

I am trying to do something with Ogre using 3D textures. I would like to update a 3D-texture by going through it slice-by-slice and recalculating the color values. However, in each step I also need to access the previous slice somehow to read the values. Setting up a slice as a render target is easy, but is it possible to feed such a slice as a 2D-texture input to a shader, or do I need to explicitly copy it into a separate 2D texture?

Thanks.

© Stack Overflow or respective owner

Related posts about 3d

Related posts about direct3d