Buggy shadows with multiple windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
Expired
|
Undecided
|
Unassigned |
Bug Description
Using setShadowCaster( True ) on a light doesn't seem to render properly with multiple windows. If I set up two windows and use an additional camera to render to the secondary window, my lighting will not look as expected. On some cards the secondary window's lighting doesn't appear at all, on others the lighting appears but the shadow map is "glitchy " and appears noisy (especially when the secondary camera is moving).
The following code should show the issue:
from direct.
import pandac.PandaModules as pm
base = ShowBase()
win = base.openWindow()
cam2 = base.makeCamera( win )
base.cam.setPos( 6, -10, 30 )
base.cam.setHpr( 0, -60, 0 )
cam2.setPos( base.cam.getPos() )
cam2.setHpr( base.cam.getHpr() )
b1 = loader.loadModel( 'box' )
b1.setPos( 3.3, 3.6, 1.3 )
b1.setScale( 2.7, 2.7, 2.7 )
b1.reparentTo( render )
b2 = loader.loadModel( 'box' )
b2.setScale( 12.5, 12.5, 2.7 )
b2.reparentTo( render )
spot = pm.Spotlight( 'newSpot' )
spot.setColor( 10 )
spot.setShadowC
spotNp = render.
spotNp.setPos( 5, -8.5, 3.5 )
render.setLight( spotNp )
render.
base.run()
Unable to reproduce with the latest master build. The issue may have already been fixed. Please reopen if you find that the issue still occurs in a recent build of Panda.