I’ve been wondering about the workflow which is used to create .dds or .env file that can be consumed by BabylonJS?
What we are specifically looking for is an as-compact-as-possible map format that can be used for Babylon’s PBR / IBL rendering. Is there a documentation somewhere on how to create Babylon-ready .dds / .env / … files for this purpose?
We have been checking the docs and found this great compilation of resources, including environment maps in different formats:
There seem to be a couple of different supported formats:
- regular images via sphere map (1 image) / equirectangular map (1 image) / cube map (6 images)
- HDR via .hdr (1 file)
- HDR via .dds (1 file)
- HDR .env (1 file)
The regular images (1) and also most of the other cases (2, 4?) seem to be intended more for Skyboxes than for IBL environments…?
Loading one of these formats, could one generate the necessary IBL-related data (-> prefiltered pyramid) on-the-fly on the client side, using BabylonJS?
Regarding .dds (2), just judging from how the function “CreateFromPrefilteredData” is named, I’d suppose that the .dds files contain more information than the pure reflection texture, like for example a pyramid of filtered versions…? Is this similar for the .env file, and how are those files typically generated?
Sorry for the mass of questions, and many thanks in advance!