Since the update today, I’m having issues with some materials not glowing (using GlowLayer + emissions). They were working fine before the update.
The materials are exported from 3ds max using the gltf exporter. SOME of my meshes with emission materials are working just fine, but about 70-80% of them stopped working as of the update.
My gltf files have not changed. The only thing that has changed is the update (am using the CDN).
Any suggestions before I spend hours troubleshooting?
While putting this together, I realized the problem stems from creating a new instance of the “root” mesh. This technique worked just fine previously, but doesn’t appear to anymore.
Something that may help finding the problem: setting scene.useRightHandedSystem = true; before loading the gltf makes it work.
The difference is that when useRightHandedSystem = true a single draw call is enough to draw both meshes, whereas when it is false two draw calls are issued to draw them in the regular canvas (but in this case only the main mesh is rendered into the RTT, that’s why the instanced mesh does not glow).
Thanks guys - I really appreciate all the hard work. I only picked up BabylonJS a few months ago but am very happy with it. I’ll be sure to share the project in April after our scheduled launch.
I can see it’s working well in the preview version, which I’ve opted to use instead of the “stable” version on the CDN. I’ve updated my script HTML tags to use the preview for the time being.