I am attempting to add some textures to a model I am rendering using OpenGL. Here is what the model should look like:
Right now I am just attempting to apply a single texture to the door. It looks like there's something wrong with my texture coordinates, but I am not entirely sure.
Any suggestions?
OpenGL Texturing
Yeah I would say your texcoords are most likely wrong. Unfortunately without any more information to work from that's about as much advice as I can give you.
Where are you getting the texcoords from? Maybe post your rendering code also someone can take a look at it.
Where are you getting the texcoords from? Maybe post your rendering code also someone can take a look at it.
Hello there,
it seems that you are either using flat planar mapping on the top/down axis or not having UV coordinates assigned to each and every face of the model, specifically the part on the sides where the texture seems ´stretched´
Check:
- Do you have per vertex UV coordinates in the file?
- Are the UVs exported correctly and assigned to their respective vertices?
A good idea would be to check your code with an existing model from the web.
Greetings!
it seems that you are either using flat planar mapping on the top/down axis or not having UV coordinates assigned to each and every face of the model, specifically the part on the sides where the texture seems ´stretched´
Check:
- Do you have per vertex UV coordinates in the file?
- Are the UVs exported correctly and assigned to their respective vertices?
A good idea would be to check your code with an existing model from the web.
Greetings!
Yes, your rendering code would definitely help.
Please do also post your texture setup code.
Please do also post your texture setup code.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement