FYI, you can also reproduce this issue with "osgshadow -sm -3", but you need to hack the code to disable use of textures in the model to see it. All the Cube ShapeDrawables will be black at the corners. -Paul
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Robert Osfield > Sent: Tuesday, January 15, 2008 9:17 AM > To: OpenSceneGraph Users > Subject: Re: [osg-users] What changed with ShadowMap in 2.3.x? > > HI Paul, > > A month or so ago I did a bug fix to ShadowMap so that it > properly used the light sources settings of ambient and diffuse. > > Just tried out your model and get the same visual as you. > Looking at the file its clear that the new code is actually > working properly while the old code was buggy... look at the > colour of the shadows on the old one, the back faces of the > boxes are too light. > > The question has to be why the highlight in the center and > dark corners.. my guess this the shaders lighting model being > somewhat screwed when handling coarsely tessellated objects, > that's just a > guess though. I'd suspect this issue might have been in there in the > first place but hidden by the incorrect lighting settings. > > Robert. > > On Jan 15, 2008 3:58 PM, Paul Martz <[EMAIL PROTECTED]> wrote: > > Thanks, this resolved the message about glProgramParameter. > > Unfortunately, that appears to be unrelated to the rendering issue. > > The rendered image with 2.3.x is still incorrect compared to 2.2. > > > > I've attached two screenshots so you can compare. I've also > attached a > > .osg file to reproduce the problem. As you can see, in > 2.3.x, the Cube > > ShapeDrawables appear to have white at their center but > black at their > > corners. This phenomena only occurs when the Cube > ShapeDrawables are > > rendered as a subgraph of ShadowedScene with the ShadowMap > technique > > (if you hack the .osg file to remove the ShadowedScene, you'll see > > this "black at corners" issue goes away). > > > > It is not a lighting artifact, as the same issue is visible > regardless > > of whether lighting is enabled or disabled. In the attached > .osg file, > > GL_LIGHTING is OFF; switch it on to see that the issue > doesn't change. > > > > The 2.2 screen shot correctly shows the Cube ShapeDrawables > as all white. > > > > Any idea what changed in ShadowMap post-2.2 that would > cause this? Is > > there any way to restore the previous behavior? > > > > Thanks, > > > > Paul Martz > > Skew Matrix Software LLC > > http://www.skew-matrix.com > > 303 859 9466 > > > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf > > > > > Of Robert Osfield > > > > > > Hi Paul, > > > > > > Yesterday I spotted OpenGL warning being generated by the > OSG when > > > running shaders, and traced it back to an addition that Mike made > > > for the geometry shader support. I've added an extra > check against > > > geometry shader support before calling these methods and fixed the > > > OpenGL warning. My guess it'll fix the problem your > seeing too with > > > shadowmap. This fix is in 2.3.2 and SVN. > > > > > > Could you update and let me know if you still see this issue? > > > > > > Robert. > > > > > > On Jan 14, 2008 10:27 PM, Paul Martz > <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi Robert -- osgShadow::ShadowMap no longer produces > > > correct results > > > > for me in 2.3.x, though 2.2 still works fine. > > > > > > > > In 2.3.x, I now get the following displayed when I execute > > > an app that > > > > uses > > > > ShadowMap: > > > > Error: glProgramParameteri not supported by OpenGL driver > > > > > > > > I'm reluctant to upgrade drivers as newer NVIDIA Windows > > > drivers kill > > > > performance for occlusion query. Is there an environment > > > variable that > > > > will make ShadowMap behave like it used to in 2.2? > > > > > > > > Thanks. > > > > > > > > Paul Martz > > > > Skew Matrix Software LLC > > > > http://www.skew-matrix.com > > > > 303 859 9466 > > > > _______________________________________________ > > osg-users mailing list > > [email protected] > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. > > org > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce negraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

