-
Notifications
You must be signed in to change notification settings - Fork 491
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
glTF 2.0 model so dark in viewport #124
Comments
Hi, I had the same problem. Maybe you've found a solution since you posted this but for the people from the future : If you go to JS > render > core > renderer.js you will find this line :
I've found that if you increase the value between the [., ., .,] it will add more light in your scene. |
Thank you @sophie1000 , I noticed that also in JS > render > materials > pbr.js there are some variables (find 'light' in the file) somewhat changes but I think we need to act also inside *.glb files (using Blender or other tools). From samples, I noticed that light works well on the *.glTF files with
There is https://immersive-web.github.io/webxr-input-profiles/packages/assets/tutorial/ but the profiles directory with profile.json is no more available (maybe was moved). Don't know if @klausw has some lines of code (maybe in three.js) or some suggestions about lights settings in the model. Thank you everyone |
I had a similar issue in my project which I fixed by using: |
Hello. I have a little problem. When I export my model from blender to gltf 2.0 and render it to the webxr scene, the model appears so dark, but the samples have normal light. When I tried to re-export any model from "media / gltf" the same problem occurs. What could cause this effect?"
The text was updated successfully, but these errors were encountered: