Hi Wojtek,
it works ! thanks a lot for your precious answear.
For those who will be interrested, i'll post later the complete source code
with corrections.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
In fact i've got a new problem (perhaps it's normal), the transformations
applied with texgen are not take into account when i use my shader. Do you
have any idea of how to proceed ? I attach a screen capture of my problem.
Thanks
On Fri, Jun 13, 2008 at 4:53 PM, Mathieu Schoutteten [EMAIL
week. I hope it helps. If not maybe others on this forum
will offer some assistance.
Cheers,
Wojtek
- Original Message -
From: Mathieu Schoutteten
To: OpenSceneGraph Users
Sent: Friday, June 13, 2008 5:42 PM
Subject: Re: [osg-users] [Depth Buffer rendering]
In fact i've
Hello,
I would like to create an effect (using osgFX) which render the depth
buffer. I'm using a RTT and then apply the texture to the object but i'm
having some problem for mapping correctly the texture on the object (see
capture in attachment). My RTT camera must be similar to my viewer camera,
i post my source code for more clarity.. Maybe someone already try to have
the same effect.
DepthBuffer.cpp include a main method for test.
#include DepthBuffer.h
#include osgFX/Registry
#include osgViewer/Viewer
#include osgDB/ReadFile
namespace
{
osgFX::Registry::Proxy proxy(new
] [Depth Buffer rendering]
i post my source code for more clarity.. Maybe someone already try to have
the same effect.
DepthBuffer.cpp include a main method for test.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http
6 matches
Mail list logo