Hi, Robert, I finally found out
Camera::attach(BufferComponent buffer, osg::Texture* texture, unsigned int level, unsigned int face, bool mipMapGeneration)
function, the fourth parameter "face" set the Z level of 3D texture. By setting difference face( Z order), I can successfully write to 3D texture.

Robert Osfield wrote:
Hi Hesicong,

On Tue, Apr 29, 2008 at 2:45 PM, hesicong2006 <[EMAIL PROTECTED]> wrote:
  
 I have managed to render to 3D texture, but now I can only write to the
first level (z=0) of 3D texture. Overloads of osg::Camera::attach still lack
of ability to select which z of 3D texture to use, is it possible to write a
new overload to support this feature?
 My render to 3d texture code is attached. Thanks for replying!
    

Thanks for the example.  It kinda sounds like you have come across a
bug.  Once I have cleared my inbox (which is very full right now) I
try and get to reviewing your code example.  Others are welcome to
dive in and see if they can spot the bug.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

__________ Information from ESET NOD32 Antivirus, version of virus signature database 3079 (20080506) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



  
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to