Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about save and load environment map #161

Open
cdfan0627 opened this issue Aug 26, 2024 · 1 comment
Open

Question about save and load environment map #161

cdfan0627 opened this issue Aug 26, 2024 · 1 comment

Comments

@cdfan0627
Copy link

I'd like to ask if, after saving the environment map with the code below and then loading it back, the environment map obtained is different from the original one.
image

@jmunkberg
Copy link
Collaborator

Hello @cdfan0627 ,

There will be minor differences due to the latlong<->cubemap conversions. Also note that the resolutions are hardcoded above: The cubemap resolution is hardcoded to 512x512 and when saving out the image back as a latlong image, the resolution is hardcoded to [512,1024].

To minimize the differences, ensure that the cubemap resolution is sufficient for your probe and that you save the environment map as the same resolution as you started with (e.g., if your original map was a 2k probe, use the same resolution when saving the map back out).

Finally, note that there is an optional scale parameter when loading the probe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants