Hi, Sergey Kurdakov,
I downloaded osgPPU and look into the examples, but I still can't find
how to render to 3d texture. Would you please give a hand pointing out
where the right code is ? Thanks in advanced!
hesicong2006 wrote:
OK, thanks, I'll have a try~
Sergey Kurdakov wrote:
Hello
>I looked into the Nvidia Render To Texture 3D example in OpenGL SDK
10,
you might try http://projects.tevs.eu/osgPPU
- it has correct code to render to 3D texture.
Regards
On Sun, Apr 13, 2008 at 7:34 PM,
hesicong2006 < [EMAIL PROTECTED]> wrote:
Hi,
Robert:
I've asked this question before, but still there are no answers to this
question. I looked into the Nvidia Render To Texture 3D example in
OpenGL SDK 10, and found the way to render to 3D texture.
1.Allocate a 3D texture n*n*n
2.Build N slices, each slice will be the render target of 3D texture
3.Render slice 1 to N
{
Bind the texture to RTT camera, with selected Z
}
4.Finished.
I write a small test program. It works for a normal 2D texture, but
will not write any data into 3D texture.
I attached my source code, and please tell me if there are some
mistakes in my program or does any suggestions on rendering to 3D
texture?
My hardware is NVIDIA Geforce 8800 with lastest driver install. OSG is
the newly subversion checkout version.
Thanks in advanced!
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
|
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org