I’m seeing strange regression with 1.56 where the skybox is overwriting/ taking priority over the scenes envAtlas. as seen in the video, if i set the skybox to null it shows the correct reflections but no sky. How do I specify that I want a skybox but not have it affect reflections? (this is using the engine).
The code you show above executes only if there is no ‘local env override’. Presumably this.envAtlas is null along with this.cubeMap and this.sphereMap?
I’m setting the app.scene.envAtlas as my environment reflections/lighting map that i want to use as the default for all materials (as the level is all indoors) but I also have app.scene.skybox set so that I have a sky. I don’t want the sky to affect the reflections like in previous versions
no usage of useSkybox
I can’t share my current setup but I’ll look into providing an example if I can as my attempted workaround is not working on all types of materials (we use a fork with a few changes fixing various bugs with gltf validation and support for additional uv maps but they are fairly minor and shouldn’t affect this scenario)
Is there a way to globally set the cubeMap like there is for envAtlas? Looks like that would solve the issue
In short term it looks like I can patch that in myself (adding cubeMap to scene for specifying global reflections independent of skybox). It does feel like playcanvas would benefit from a clearer distinction between reflections and the skybox as apps that rely on reflection probes like myself. The only issue this causes is it then opts into the HQ reflections which is great in principle but from what I can see they don’t mipmap and as a result look very aliased/sparkly at a distance.
It does feel like playcanvas would benefit from a clearer distinction between reflections and the skybox
Yes I totally agree. Some of the confusion we have now is down to us not wanting to break backwards compatibility.
The sharp HQ reflections perform a simple textureCube, so mipmaps will be used if they’re available. Please check mipmaps weren’t disabled somehow on the cubemap you’re using.