Buggy shadows with multiple windows

Bug #1035138 reported by James Davies
6
This bug affects 1 person
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.showbase.ShowBase import ShowBase
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.setShadowCaster( True )
spotNp = render.attachNewNode( spot )
spotNp.setPos( 5, -8.5, 3.5 )

render.setLight( spotNp )
render.setShaderAuto()

base.run()

Revision history for this message
rdb (rdb) wrote :

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.

Changed in panda3d:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Panda3D because there has been no activity for 60 days.]

Changed in panda3d:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.