Here’s the issue:
I have a scene with mostly light-mapped objects. When I’m switching parts of the scene on and off I call
to update lightmaps. When I do this, non-lightmapped models dissappear from the scene (with their shadows still rendering correctly into lightmaps).
The light is set to both “Affect Dynamic” and “Affect Lightmapped” and initially, the scene renders correctly.
Here’s a simple projects to demonstrate the issue:
And the build:
One cube is lightmapped, other is dynamically lit. The pink button on the screen simply calls app.lightmapper.bake(); and one of them disappears.
This issue started with PlayCanvas v 1.42, in v1.41.2, and before it worked correctly
(here’s the example project with v1.41.2 https://launch.playcanvas.com/1196877?debug=true&use_local_engine=https://code.playcanvas.com/playcanvas-1.41.2.js)
Previously I was able to use an old version of the engine to bypass this, but with new texture encoding changes, it’s no longer an option.