[Not a bug] Bug in shadow sample?

I have discovered a little bug in shadow sample (ATI Mobility Radeon X1600; Panda 1.5.2). Look at the teapot shadow in this screenshot:

What were you talking about ? I don’t see any anomaly.
If it’s the crack between the body and the lid, that’s normal since they are separated a little, so the gap is actually the backface of the body.
try :

        self.teapot.setTwoSided(1)

Don’t you think it is definitely weird shadow with this crack?

Also, I get numerous errors:

:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display:gsg:glgsg(error): at 2637 of c:\temp\mkpr\panda\src\glstuff\glGraphicsStateGuardian_src.cxx : GL error 1282
:display(error): Deactivating wglGraphicsStateGuardian.

And third, it doesn’t work with per-pixel lighting… This is not bug, of course, but anyway, pity.

The problem is not the shadow-calculation but the model. if you check the teapot in pview. you will see the empty space between the cap and the body of the teapot as well. Only if a object is 2 sided the inner side will draw shadows as well. The shadowing actually renders the scene from the light position and can see trougth the crack, and the inside (if 2sided is not defined). So this is no bug, but a feature.

The GL error is important; it’s happening at the call to release_texture(), which just means that some previous call went wrong. But I don’t know which call that was.

David

It’s the texture that allows you to see the shadow camera view in color in the buffer viewer. If you disable that you get no errors.