setShadowCaster(True, new_res, new_res) on an existing light can break shadow cameras for other lights (the shadow cameras get stuck and stop updating)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
Fix Released
|
Undecided
|
rdb |
Bug Description
Calling setShadowCaster
This happens 100% for me in my game which is a bit of a showstopper, so a fix would be nice.
To reproduce:
1. Get panda 1.10 git master in some recent version (I didn't test 1.9.3 yet)
2. Get the "shadows" example
3. Copy the attached basic_modified.py over the existing basic.py of the shadows example and run it and wait (no interaction necessary)
This is how it looks like with the bug happening: https:/
Expected behavior: teapot shadow always updates correctly
Actual behavior: teapot shadow sometimes "gets stuck" and weirdly falls down along with camera (see the video)
PS: SORRY that the test code is so extremely weird. I tried making it more minimal but that would always stop the error from occuring. Sadly I couldn't figure out how to get it to happen with more simple code
Changed in panda3d: | |
status: | Fix Committed → Fix Released |
Just a small update: I'm not sure anymore the setShadowCaster (True, new_res, new_res) with a shadowmap resize actually triggers this or turning off a light's shadows entirely and re-enabling does, or something else... anyway, the attached reproducing example somehow triggers it and so does my current game project.