[osg-users] osgShadow and osgearth

2011-05-11 Thread Kumar Saurabh Arora
I am trying to implement the shadow of an object flying above the earth(
rendered from osgEarth). It is not working . I tried every technique, none
of them are working. But if I render simple sphere of same size in place of
osgearth, then shadow works on the sphere. Is there anything else I am
missing?

 

Cheers

Sumit Pandey

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgShadow and osgearth

2011-05-11 Thread Torben Dannhauer
Hi,

as far as I know, osgEarth ist shader based, so you have to integrate your 
shadow in the osgEarth shaders (look for shader Composition)


Cheers,
Torben

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=39269#39269





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgShadow and osgearth

2011-05-11 Thread Glenn Waldron
Sumit,
Please see my response to your post in the osgEarth forum for an answer.

http://forum.osgearth.org/Shadow-in-osgearth-td6351086.html


Glenn Waldron / Pelican Mapping / @glennwaldron


On Wed, May 11, 2011 at 5:15 AM, Kumar Saurabh Arora saur...@vizexperts.com
 wrote:

  I am trying to implement the shadow of an object flying above the earth(
 rendered from osgEarth). It is not working . I tried every technique, none
 of them are working. But if I render simple sphere of same size in place of
 osgearth, then shadow works on the sphere. Is there anything else I am
 missing?



 Cheers

 Sumit Pandey

 ___
 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


[osg-users] osgShadow and osgearth

2010-04-10 Thread sumit
Hi all, 

I m trying to get the shadows on earth(rendered by
osgEarth). I have just inserted the earth node in osgShadow example. I could
not get any shadow of mountains on terrain(self shadowing) by any shadowmap
technique. I have tried to increase texture resolution but it's still not
working. It was working for small terrain(created in osgShadow example model
2). Am I missing something?

 

Cheers

Sumit

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgShadow and osgearth

2010-04-10 Thread Wojciech Lewandowski
Hi Sumit,

Have you tried LispSM ? I have not tested it with osgEarth but it works  with 
osgDEM data.  See osgShadow -4 --lispsm example. 

With large Dataset you will probably have to take advantage of two Lispsm 
methods inherited from MinimalShadowMap
void setModellingSpaceToWorldTransform( const osg::Matrix  
modellingSpaceToWorld );  

and

void setMaxFarPlane( float maxShadowDistance );

to optimize shadow map resolution usage. Look how they are used in osgShadow 
example.

Cheers,

Wojtek Lewandowski




 
From: sumit 
Sent: Saturday, April 10, 2010 9:14 AM
To: 'OpenSceneGraph Users' 
Subject: [osg-users] osgShadow and osgearth


Hi all, 

I m trying to get the shadows on earth(rendered by osgEarth). I 
have just inserted the earth node in osgShadow example. I could not get any 
shadow of mountains on terrain(self shadowing) by any shadowmap technique. I 
have tried to increase texture resolution but it's still not working. It was 
working for small terrain(created in osgShadow example model 2). Am I missing 
something?

 

Cheers

Sumit






___
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