I am getting an error when loading a .env generated inside the Babylon sandbox

Hi, I am currently using a .env file for my scene which I generated a month ago (using the babylon sandbox export), but, now I want to change the environment to another one to get a better lighting quality.
When I export a new .env file using the babylon sandbox (following the same previous process) I am getting an error that prevents it from loading.
I used .HDR images in both processes and I don’t understand why am I getting that error.
Any help would be really appreciated, thanks!

This is the error message:

Uncaught Error: Unsupported babylon environment map version “2”
at Function.e.UploadEnvLevelsAsync (babylon.js:16)
at e.loadCubeData (babylon.js:16)
at A (babylon.js:16)
at babylon.js:16
at babylon.js:16
at XMLHttpRequest.g (babylon.js:16)

This is a version mismatch problem, we’ve had some previous questions with the same issue:

Error: Unsupported babylon environment map version “2” - Questions - Babylon.js (babylonjs.com)

.env conversion from .hdr throws an error - Questions - Babylon.js (babylonjs.com)

Sandbox now uses preview version 5.0, and your scene is probably using 4.2 :slight_smile: Updating the scene to 5.0 is the recommended approach, since it’s backwards compatible and you get some improvements for free!


Hi @brainwilder just checking in, were you able to update your scene? :slightly_smiling_face: