Re: [osg-users] Integrating shadows with osgOcean

2009-07-14 Thread Jean-Sébastien Guay
Hi Wojtek, Changing shadow map unit and texture coord unit to other number may help as well. At leat in this that shadwo map contents will change again, if this is a conflict with some ocean shaders/samplers. I'll try that, it may be the simplest route to avoid a conflict. That worked. Good

Re: [osg-users] Integrating shadows with osgOcean

2009-07-14 Thread Jean-Sébastien Guay
Hi Wojtek, Looks to me more like texture/sampler conflict than texgen conflict. I think so because shadow on second pictutre looks like some text. I can discern letters e and K. Its a long shot but I have no other ideas. Hmm, you may be right. In theory at that point in the graph there *shou

Re: [osg-users] Integrating shadows with osgOcean

2009-07-14 Thread Wojciech Lewandowski
- Original Message - From: "Jean-Sébastien Guay" To: "OpenSceneGraph Users" Sent: Tuesday, July 14, 2009 4:31 AM Subject: Re: [osg-users] Integrating shadows with osgOcean Hi again Wojtek, The previous fix of choosing the right camera based on the name worked a trea

Re: [osg-users] Integrating shadows with osgOcean

2009-07-10 Thread Jean-Sébastien Guay
Hi Wojtek, You got me. Say magic word "shadow" and I will crawl up from my den ;-) :-) Actually, I like the approach with node names and I don't think this is a hack. Node naming is possible in many modelling tools and this is what make them quite useful. We often use names to mark specia

Re: [osg-users] Integrating shadows with osgOcean

2009-07-10 Thread Wojciech Lewandowski
Hi J-S, I was sure you would answer my question :-) You got me. Say magic word "shadow" and I will crawl up from my den ;-) Simplest method I can think of: is modification of osgShadow:: LisPSM techniques and related to give well defined unique names to rtt cameras they create. Its maybe n

Re: [osg-users] Integrating shadows with osgOcean

2009-07-10 Thread Jean-Sébastien Guay
Hi Wojtek, I was sure you would answer my question :-) Simplest method I can think of: is modification of osgShadow:: LisPSM techniques and related to give well defined unique names to rtt cameras they create. Its maybe not particularly bright idea but its simple and effective. I think name

Re: [osg-users] Integrating shadows with osgOcean

2009-07-10 Thread Wojciech Lewandowski
ek - Original Message - From: "Jean-Sébastien Guay" To: "OpenSceneGraph Users" Sent: Thursday, July 09, 2009 10:51 PM Subject: [osg-users] Integrating shadows with osgOcean Hi all, I'm currently trying to integrate osgOcean into our application and I'm hav

[osg-users] Integrating shadows with osgOcean

2009-07-09 Thread Jean-Sébastien Guay
Hi all, I'm currently trying to integrate osgOcean into our application and I'm having trouble combining it with shadows. We're using osgShadow::LightSpacePerspectiveShadowMap (and derivatives). The problem seems to be that they both do additional RTT passes, and they seem to interfere with e