Hi everybody,

well i'm doing a simulation about seasons i have a simple terrain , some models 
and sphere(sun), this has a  lightsource with a light,  i move my sun with the 
next operations
posicion_orbita = new osg::MatrixTransform;
osg::Matrix ms, mr, mt;
mr.makeRotate(latitud, osg::Y_AXIS);
mt.makeTranslate(x, 0.0, 0.0);
posicion_orbita->setMatrix(ms * mt * mr);
 
 
and also i put a shadow
 
 
osg::ref_ptr<osgShadow::ShadowMap> tecnica_sombreado = new osgShadow::ShadowMap;
 
osg::ref_ptr<osgShadow::ShadowedScene> escena_con_sombras = new 
osgShadow::ShadowedScene;
 
escena_con_sombras->setShadowTechnique(tecnica_sombreado.get());
escena_con_sombras->addChild(grupo_switch.get());
escena_con_sombras->addChild(terreno.get());
terreno->setNodeMask(0x1);
escena_con_sombras->setReceivesShadowTraversalMask(0x1);
grupo_switch->setNodeMask(0x2);
escena_con_sombras->setCastsShadowTraversalMask(0x2);
this->addChild(escena_con_sombras.get());
 
 
On linux everything works very well, but on Windows  XP the shadows move with 
 
mr.makeRotate(latitud, osg::Y_AXIS);
 
but don't move with
 
mt.makeTranslate(x, 0.0, 0.0);
 
i tested with two differents computers  and happens the same
i don't know the problem, i tried to change my code with differents shadow 
Technique and  transformations but nothing 
Does the library on windows work fine with shadow and light?

Thank you!

Cheers,
mauricio

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to