Re: [osg-users] Render to texture and Shadows

2009-11-04 Thread Tugkan Calapoglu
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 tug...@vires.com
 To: OpenSceneGraph Users osg-users@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@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
 


-- 
Tugkan Calapoglu

-
VIRES Simulationstechnologie GmbH
Oberaustrasse 34
83026 Rosenheim
Germany
phone+49.8031.463641
fax  +49.8031.463645
emailtug...@vires.com
internet www.vires.com
-
Sitz der Gesellschaft: Rosenheim
Handelsregister Traunstein  HRB 10410
Geschaeftsfuehrer: Marius Dupuis
   Wunibald Karl
-
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Render to texture and Shadows

2009-11-03 Thread Tugkan Calapoglu
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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Render to texture and Shadows

2009-11-03 Thread Wojciech Lewandowski

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 tug...@vires.com

To: OpenSceneGraph Users osg-users@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@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