I haven’t used Texassemble, but it appears to output an h-cross format cube map, which can be read by Lys but not IBLBaker unless I am missing something. There would need to be a step to convert the h-cross into an equirectangular with the polar coordinate distortion at the top and bottom like this:
I was trying to create a dds file from jpg but realized that it was not correct.
However, the HDR source for the skybox texture could not be found.
Therefore, I want to find the HDR source from others.
I decided to create a DDS file using the following HDR file and IBLBaker. Probably the same as the default texture of IBLBaker.
@PatrickRyan Please let me know if you know.
When IBLBaker saves a texture in DDS format, the following files are generated.
Which DDS file should I use for Babylon.js CubeMap and IBL? Should I use papermillEnvHDR.dds?
Thank you for teaching me. Let me ask you one more question.
Which is true or false for cubeTexture.gammaSpace? I feel that false is correct, but I am not confident.
Please keep in mind it is not the optimal solution with IBL Baker so if it is for a public comparison website I would be greatful if you could share the IBL and we use LYS to convert them.
I do not want ppl thinking our rendering is suboptimal due to this.
@cx20 I just created the pull request with the new environment files. The one thing I will note from the earlier thread is that your environment files seemed to be large weighing in at 33.5MB. This can be avoided by using a 256px per side measure on the cube map that is generated. That is what we are using, which results in an 8MB DDS and the env will be just over 1MB for faster download.
[edit] mmmh, with a dds from IBLBaker, the button shows up, but I was remembering that this worked also with .hdr, right? if no, doc linked above has to be tweaked
Perhaps I dragged and dropped the DDS file into the Babylon.js sandbox to generate the Env file.
I don’t think you can generate an Env file directly from an HDR file. (Maybe I just don’t know how…)
I do not use the sandbox to make my .env files. There is another BJS tool, which has an 11 way switch for .env generation. https://www.babylonjs.com/tools/ibl/
You just drag your .hdr, and it generates one. I have been just throwing away the one that gets generated automatically, & clicking to get the low res variant.
The single, Uber tool, Sandbox concept has its limitations. This is a infrequent task. Go with the tool made to do just that. Sawing with a Swiss army knife is torture.
I will be publishing my first XR scene soon, which has a custom .env made from an .hdr rendered in Blender. I just put a camera with panoramic lens inside a sphere & rendered it in Cycles. (Recommend increasing the tile size for speed). Would make for very stripey reflections in general use, but my objects do not make them.