Couldn't load texture with Three.js #34453
-
What example does this report relate to?with-three-js What version of Next.js are you using?12.0.9 What version of Node.js are you using?16.13.2 What browser are you using?Firefox What operating system are you using?macOS How are you deploying your application?next start Describe the BugWhen trying to load a GLB model, containing a jpg image, the image is not showing Error on the console: Expected BehaviorThe image to appear To Reproduceusing https://github.com/vercel/next.js/tree/canary/examples/with-three-js as codebase load a model with a jpg image inside |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
|
did you ever figure this out? |
Beta Was this translation helpful? Give feedback.
-
|
No way, moved from next to react for this model... |
Beta Was this translation helpful? Give feedback.
-
|
Same error here |
Beta Was this translation helpful? Give feedback.
-
|
The solution was to remove ambientation from the canvas |
Beta Was this translation helpful? Give feedback.
-
|
I removed the environment but I think my problem was fixed by:
I missed the second thing and it's important indeed, otherwise it wasn't able to get the loader to work |
Beta Was this translation helpful? Give feedback.
The solution was to remove ambientation from the canvas
The ambient somehow break the lights.
Just switch from ambient to light (dot and ambient light)