How to Generate High-Resolution .env Files?

Hi everyone, I’m new to Babylon.js and currently working on a product visualization that needs to look as realistic as possible. For building the 3D environment, I’d like to use high-resolution .env files. However, the official IBL tool doesn’t seem to allow adjusting output resolution. When I convert 2K or 4K HDRI resources, the resulting .env files often end up somewhere between 256 to 512 pixels, which still appears fairly low-res in actual use.

I’m hoping to generate .env files at 1024 or even 2048 resolution. Could anyone suggest alternative methods besides the official IBL online tool? I’ve tried a few options like cmgen, but none produced the desired .env format.

Thanks in advance!

Hello and welcome!
I hope this thread may help - HDR , Dds , Env files - #2 by syntheticmagus

1 Like

Awesome, thanks for the link! I’ll look into this right away and see if it does the trick.

@sebavan FYI

Got it. Based on that thread, I forked the official IBL tool and modified it to support custom output resolutions. It’s working for my case now.

Link to the fork: GitHub - andares/BabylonjsTextureTools: Babylonjs texture tools to generate pre-filtered environments and BRDF lookups

Thanks for the help.

1 Like