[osg-users] Adding shadow to an existing scenegraph

DKa basicsoft_webmaster at yahoo.com
Thu Jan 17 01:56:40 PST 2008


> For tests, you may derive your ShadowMap from
> osgShadow::ShadowMap, override init and cull
methods. 

Thanks for this hint! Indeed the program terminates on
"assert( osgShadow::ShadowMap::_stateset );" in the
cull method. Now I wonder how I am supposed to force
the initialization...I even added the call to init in
the cull method which still crashes with an
unspecified violation of an assertion.

So far I presume: the init method does not get called
/ the shadowedScene is not specified properly in the
shadowmap.

> What type of viewer uses your App ?

osgProducer::Viewer is in use here.


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


More information about the osg-users mailing list