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

fix(examples): add envmap for PBR materials in 3d tiles loader example #2497

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

Desplandis
Copy link
Contributor

Description

This PR add a global environment map on the scene for all PBR materials in the 3d-tiles-loader example. The absence of such map caused meshes with only diffuse colors to render totally black.
before

I decided to use the RoomEnvironment in conjonction with the PMREMGenerator to generate the env map. This is the technique used in a lot of three examples. The end-result:
after

I used the following datasets generated from tyler to test this change:

3dtiles-terrain.zip

@Desplandis Desplandis requested a review from jailln February 7, 2025 14:12
@Desplandis Desplandis merged commit 8b22591 into iTowns:master Feb 7, 2025
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants