Re: [osg-users] Shdows Problem o vista

2009-08-24 Thread Chris 'Xenon' Hanson
Danny Lesnik wrote:
 Hi,
 I'm using Visual Studio 2008 with osg 2.8.1. I have vary strange problem with 
 with shadows on my scene. On vista all shadows are moved chaoticaly (see 
 attached pictures ). However on XP everything is OK and I can see my shadows 
 casted by camera lights.

  Are they the same computer but different dual-booting OSes or are they 
different computers?

  It sounds to me like a deficient graphics card or driver on the Vista end of 
things. you
didn't state what card/driver you were using so it's hard to say.

-- 
Chris 'Xenon' Hanson, omo sanza lettere  Xenon AlphaPixel.com
PixelSense Landsat processing now available! http://www.alphapixel.com/demos/
There is no Truth. There is only Perception. To Perceive is to Exist. - Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shdows Problem o vista

2009-08-23 Thread Danny Lesnik
Hi,

does anybody has any idea on that issiue?

Thank you!

Cheers,
Danny

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





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


Re: [osg-users] Shdows Problem o vista

2009-08-23 Thread Jean-Sébastien Guay

Hi Danny,


does anybody has any idea on that issiue?


We've used both osgShadow::ShadowMap and the newer 
osgShadow::LightSpacePerspectiveShadowMap (and variants) on XP, Vista 
and Linux without any problems such as what you describe. The only thing 
I can think of is if you don't have recent video drivers (or even if 
they are recent, perhaps there's a driver bug) on your Vista machine. 
You can try updating them. Other than that, it should work fine.


Though I note you're setting the shadow map resolution at 4096^2, have 
you tried reducing that? I can't see a reason why it would cause a 
problem on Vista but not on XP, but... And BTW, using 
osgShadow::LightSpacePerspectiveShadowMap will allow you to use a 
smaller shadow map while avoiding shadow aliasing.


Sorry I can't help more,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Shdows Problem o vista

2009-08-20 Thread Danny Lesnik
Hi,

I'm using Visual Studio 2008 with osg 2.8.1. I have vary strange problem with 
with shadows on my scene. On vista all shadows are moved chaoticaly (see 
attached pictures ). However on XP everything is OK and I can see my shadows 
casted by camera lights.

I'm using the following code:

 const int ShadowTraversalMask = 0x2;
osg::ref_ptrosgShadow::ShadowedScene shadowedScene = new 
osgShadow::ShadowedScene;
shadowedScene-setReceivesShadowTraversalMask(ShadowTraversalMask);

shadowedScene-setCastsShadowTraversalMask(ShadowTraversalMask);

osg::ref_ptrosgShadow::ShadowMap sm = new osgShadow::ShadowMap;
shadowedScene-setShadowTechnique(sm.get());
int mapres = 4096;
sm-setTextureSize(osg::Vec2s(mapres,mapres));

node-setNodeMask(ShadowTraversalMask);
shadowedScene-addChild(node);

How can I solve this problem on Vista 



Thank you!

Cheers,
Danny

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



attachment: XP.JPGattachment: Vista.jpg___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org