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

upgrade engine version to 2.2.2, asset.resource.instantiateRenderEntity render issue when app.scene.ambientLight is WHITE #7103

Open
StevenYAChen opened this issue Nov 12, 2024 · 6 comments

Comments

@StevenYAChen
Copy link

StevenYAChen commented Nov 12, 2024

app.scene.ambientLight.set(1, 1, 1);

engine version 1.74.0:
engineV1model

engine version 2.2.2:
engineV2model

@StevenYAChen StevenYAChen changed the title after engine 2.2.2, asset.resource.instantiateRenderEntity render issue when app.scene.ambientLight is WHITE upgrade engine version to 2.2.2, asset.resource.instantiateRenderEntity render issue when app.scene.ambientLight is WHITE Nov 12, 2024
@mvaligursky
Copy link
Contributor

would you have a repro for this?
I tested it in this example: https://playcanvas.vercel.app/#/graphics/render-asset
by modifying code - see two changed lines, all it works as expected for me

Screenshot 2024-11-12 at 08 58 33

@StevenYAChen
Copy link
Author

StevenYAChen commented Nov 12, 2024

please try https://skfb.ly/p8KVt
or try model without material.diffuseMap?

@mvaligursky
Copy link
Contributor

I tried the listed model, and that still works
Screenshot 2024-11-12 at 15 52 14

@mvaligursky
Copy link
Contributor

By the way, what platform / browser do you see it on? Have you tried different browsers just to limit this being a browser specific issue.

@StevenYAChen
Copy link
Author

I'm using Google Chrome 130.0.6723.117 (arm64)
on MacBook Pro

@StevenYAChen
Copy link
Author

model - glb - Original format:
modelDownload

projectmodel-viewer-main branch :
src/viewer.ts -> add this.app.scene.ambientLight.set(1, 1, 1);
modelviewerCode

in chrome:
modelviewerChrome

in firefox:
modelviewerFirefox

please try the project model-viewer, thank you

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