Hi there,
I’m using Lightmaps in RGBD format but to create such strange format is quite tedious beacuse you need to rely on coding like this playground we use for that.
I’ve seen BabylonJS 8.0 now supports EXR format.
Is it now usable for Lightmaps also?
Could you confirm and explain how is it supposed to be included in a scene?
Thanks in advance!
You can simply use a .exr file as you would do with a .png or .jpg:
Note that .exr is a complex format, not every variants are supported by the loader.
But when using PNG in RGBD format, the code must specify it is RGBD format indeed with the line “myLightmapTexture.isRGBD = true;”
If I use EXR instead, that means I can load the texture right away without that line?
Exactly!
I don’t think the data can be encoded in RGBD in .exr files, but even if it is possible, the loader will take care of it automatically.
Mmm, Sandbox is NOT using 8.0 version, is it?
Because I’m trying to load the EXR file and it doesn’t accept it…
Indeed, the sandbox had not been updated yet. This PR will fix it:
I’ll wait for that fix then, thanks