Using setShadowCaster(True, some_res, some_res) on a light that was created a while ago will lead to shadow bugs

Bug #1672092 reported by ellie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Fix Released
Undecided
Unassigned

Bug Description

Using setShadowCaster(True, some_res, some_res) with a resolution different than the initial shadow map resolution the light was created with, on a light that was created a while ago appears to lead to shadow bugs.

This seems to manifest in various unpredictable ways:

In my actual big project where I first noticed a potential issue, some objects simply stopped throwing a shadow even though I changed absolutely nothing else except just calling setShadowCaster(True, some_new_res, some_new_res) later a while after the light was created.

I then edited the basic shadow example (basic.py) as attached, to reproduce this issue.

In my minimal edit of the basic shadow example as attached, it seems to corrupt the shadow texture in some way (see screenshot attached) and it breaks 'v' which shows nothing as if either it was entirely bugged out or as if it had no buffers to show despite the light obviously using SOME sort of buffer still. If you comment out line 134, where I schedule the bug-introducing task, everything works fine again.

Revision history for this message
ellie (et1234567) wrote :
Revision history for this message
ellie (et1234567) wrote :
description: updated
description: updated
Revision history for this message
ellie (et1234567) wrote :

Ok someone on IRC just suggested this was fixed on the latest git master (I tried it with 1.9.3) and indeed I just built and tested 1.10 git master, and this problem appears to be gone! Neat!

Revision history for this message
ellie (et1234567) wrote :

I'll close it since it's apparently fixed (I hope that's the right thing to do!)

Changed in panda3d:
status: New → Fix Committed
Revision history for this message
ellie (et1234567) wrote :

This could possibly be a duplicate of https://bugs.launchpad.net/panda3d/+bug/1672560 ..

Here I observed missing shadows on some objects, in the other stuck shadow cameras - but stuck shadow cameras can also cause apparently missing shadows on moving objects. If it's the same bug, it means that in 1.9.3 the problem seems to be triggered a bit more often for some reason, but that it's still present in 1.10

rdb (rdb)
Changed in panda3d:
status: Fix Committed → Fix Released
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.