Hi everyone,
I’m trying to load a texture onto a mesh from a GLB model, but the model just takes on a smudged color that roughly resembles the texture’s color.
Here is an illustration of what I mean:
I’m loading the pattern as a texture like this:
const pattern = useLoader(
TextureLoader,
'/fabric-textures/pattern.png'
)
I know that this is properly working because I can see that the proper image is loaded in the console and also because the pattern displays correctly on the cube in the bottom (<meshStandardMaterial map={pattern} />
).
The model itself, however, reacts very differently:
<mesh
geometry={nodes.K_Front.geometry}
material={materials.Hoodie_Body}
map={pattern}
/>
Looking at the pattern in the console, it looks okay to me and I don’t see what could be changed:
Things I Tried
To fix this, I tried several things:
- I tried, extensively, to scale and rotate both the scale and the model
- tried adjusting the
.mapping
property - tried to apply the texture directly to the material
- tried to set up a separate
meshStandardMaterial
on the model’s meshes and apply the texture to that - tried to apply the texture to a different type of map
All of these things lead me to conclude that the problem lies in the model itself, but I’m not very strong with Blender, so I’m not really sure what would have to be adjusted for this to work properly.
Thanks for your help! I’m thankful for any ideas you might have.