playcanvas / engine

Powerful web graphics runtime built on WebGL, WebGPU, WebXR and glTF
https://playcanvas.com
MIT License
9.73k stars 1.36k forks source link

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

Open StevenYAChen opened 2 weeks ago

StevenYAChen commented 2 weeks ago

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

engine version 1.74.0:

engineV1model

engine version 2.2.2:

engineV2model
mvaligursky commented 2 weeks ago

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 commented 2 weeks ago

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

mvaligursky commented 2 weeks ago

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

mvaligursky commented 2 weeks ago

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 commented 2 weeks ago

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

StevenYAChen commented 2 weeks ago

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