Hello, I’m new to 3JS and r3f and loving it so far.
I created this wall with a few windows in Blender and exported as .glb file.
So, I used https://gltf.pmnd.rs/ to create a React component. This is the preview shot from the website.
When I used the component in my own project it looked like this. I’m not sure why. I have tried multiple light sources (ambient, directional, hemisphere), the Window border is the same material as the wall and the side windows’ blue frame material is the same as the center window.
But when I use useLoader() to load the .glb file rather than useGLTF(), it looks okay in my project.
Has anybody dealt with this problem? I’m pretty new to Blender as well so maybe something is wrong with my model. I will continue using useLoader() for now, but it annoys me that I can’t figure it out.
Thanks!