Hi,

Thanks for taking time when you shouldn't to see my problem ! ^^
The osg::Light is used is the default one :


Code:
_light = new osg::Light();
osg::ref_ptr<osg::LightSource> lightSource = new osg::LightSource();
lightSource->setLight(_light);
_sceneRoot->addChild(lightSource);



I only changed it's ambiant value and it's position, to make it follow the car.
I tried to setComputeNearFarMode(osg::Camera::DO_NOT_COMPUTE_NEAR_FAR), without 
result. Changing the minLighMargin afterward didn't solve the problem either. I 
tried this on the exemple code i've attached to this post and the simulation, 
same result.

Also, I have the same result with MinimalShadowMap or 
MinimalCullBoundsShadowMap, have you ever seen such problem? I don't thing i've 
done anything special!
That's strange :/

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





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

Reply via email to