[osg-users] Render to texture and Shadows

Tugkan Calapoglu tugkan at vires.com
Wed Nov 4 03:33:10 PST 2009


Hi,

thanks for the suggestion, with RTT slave views it works.

tugkan

> Hi Tugkan,
> 
> Somebody recently, also mentioned that nested cams not work with LiSPSM.
> Frankly, I have no time to investigate this. I would recommend using RTT
> slave views instead of nested RTT cam. I think this will have more
> chance to work as intended. I apologize for trouble.
> 
> Wojtek Lewandowski
> 
> 
> 
> ----- Original Message ----- From: "Tugkan Calapoglu" <tugkan at vires.com>
> To: "OpenSceneGraph Users" <osg-users at lists.openscenegraph.org>
> Sent: Tuesday, November 03, 2009 9:10 AM
> Subject: [osg-users] Render to texture and Shadows
> 
> 
>> Hi All,
>>
>> I am using Light Space Perspective Shadow Maps for shadowing. I would
>> like to render the shadowed scene to a texture, so I have another camera
>> on top of the shadowed scene. It looks like following:
>>
>> root
>> |
>> RTTCamera
>> |
>> ShadowedScene
>>
>> I also render a small sized screen aligned quad which visualizes the
>> texture to which RTTCamera is rendering.
>>
>> When there is no RTT, shadows work as expected. However, when I am
>> rendering onto the texture, there are no shadows. I can see the scene on
>> the screen aligned quad but it simply has no shadows.
>>
>> When I debugged the application I found out that
>> StandardShadowMap::ViewData::selectLight does not find the light.
>> Following line should normally give a list of matrices/attrib pairs
>>
>> rs->getPositionalStateContainer()->getAttrMatrixList();
>>
>> however, it returns an empty list. I am not familiar with the
>> implementation of Shadows in OSG so I got stuck here. Does anybody have
>> an idea?
>>
>> Thanks,
>> Tugkan
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 
> 
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 


-- 
Tugkan Calapoglu

-------------------------------------
VIRES Simulationstechnologie GmbH
Oberaustrasse 34
83026 Rosenheim
Germany
phone    +49.8031.463641
fax      +49.8031.463645
email    tugkan at vires.com
internet www.vires.com
-------------------------------------
Sitz der Gesellschaft: Rosenheim
Handelsregister Traunstein  HRB 10410
Geschaeftsfuehrer: Marius Dupuis
                   Wunibald Karl
-------------------------------------


More information about the osg-users mailing list