Re: [osg-users] Problems with RTT, Shadowmaps and Callbacks
Hi Martin, regarding the callback issue on slave cameras please check this thread: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008-November/019337.html Cheers, Ricky On Tue, Oct 25, 2011 at 16:21, Wojciech Lewandowski lewandow...@ai.com.plwrote: Hi, Martin I am assuming you are complaining about limitiation of techniques derived from ViewDependentShadowTechnique. If thats a such huge problem for you then you may try to fix ViewDependentShadowTechnique to use RenderStage ptr instead of CullVisitor ptr to index ViewDependentData. That requires some bravery but I think there is huge chance it may be quite easy to do... Just look at ViewDependentShadowTechnique / ViewDependentShadowTechnique.**cpp and see how CullVisitor pointer is used to recognize yet another view (slave) is drawn and shadowed. Nested cameras use the same CullVisitor as parent cam and thats the reason it does not work for nested cams, but RenderStages are unique (I believe) so you may try to use current RenderStages obtained from CullVisitior to index shadow instances I could help you with this, but not in this month... So have fun;-) Cheers, Wojtek -Oryginalna wiadomość- From: Martin Großer Sent: Tuesday, October 25, 2011 12:02 PM To: osg-users@lists.**openscenegraph.orgosg-users@lists.openscenegraph.org Subject: [osg-users] Problems with RTT, Shadowmaps and Callbacks Hello, I am so dissatisfied at the moment. I render my scene into a texture and put it on a quad. I want use shadow maps in my scene, so I have to use a slave camera, because shadowmap technique doesn't work with nested cameras. But my problem is, all my callback function doesn't work now. The only work with nested cameras. It is a big dilemma, isn't it? What can I do? Is there a typical solution for this problem? Thanks Martin -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/**freephonehttp://www.gmx.net/de/go/freephone __**_ osg-users mailing list osg-users@lists.**openscenegraph.org osg-users@lists.openscenegraph.org http://lists.openscenegraph.**org/listinfo.cgi/osg-users-** openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org __**_ osg-users mailing list osg-users@lists.**openscenegraph.org osg-users@lists.openscenegraph.org http://lists.openscenegraph.**org/listinfo.cgi/osg-users-** openscenegraph.orghttp://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
[osg-users] Problems with RTT, Shadowmaps and Callbacks
Hello, I am so dissatisfied at the moment. I render my scene into a texture and put it on a quad. I want use shadow maps in my scene, so I have to use a slave camera, because shadowmap technique doesn't work with nested cameras. But my problem is, all my callback function doesn't work now. The only work with nested cameras. It is a big dilemma, isn't it? What can I do? Is there a typical solution for this problem? Thanks Martin -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Problems with RTT, Shadowmaps and Callbacks
Hi, Martin I am assuming you are complaining about limitiation of techniques derived from ViewDependentShadowTechnique. If thats a such huge problem for you then you may try to fix ViewDependentShadowTechnique to use RenderStage ptr instead of CullVisitor ptr to index ViewDependentData. That requires some bravery but I think there is huge chance it may be quite easy to do... Just look at ViewDependentShadowTechnique / ViewDependentShadowTechnique.cpp and see how CullVisitor pointer is used to recognize yet another view (slave) is drawn and shadowed. Nested cameras use the same CullVisitor as parent cam and thats the reason it does not work for nested cams, but RenderStages are unique (I believe) so you may try to use current RenderStages obtained from CullVisitior to index shadow instances I could help you with this, but not in this month... So have fun;-) Cheers, Wojtek -Oryginalna wiadomość- From: Martin Großer Sent: Tuesday, October 25, 2011 12:02 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] Problems with RTT, Shadowmaps and Callbacks Hello, I am so dissatisfied at the moment. I render my scene into a texture and put it on a quad. I want use shadow maps in my scene, so I have to use a slave camera, because shadowmap technique doesn't work with nested cameras. But my problem is, all my callback function doesn't work now. The only work with nested cameras. It is a big dilemma, isn't it? What can I do? Is there a typical solution for this problem? Thanks Martin -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone ___ 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