OpenGL Texturing

Started by
2 comments, last by Lord_Evil 13 years, 4 months ago
I am attempting to add some textures to a model I am rendering using OpenGL. Here is what the model should look like:

Model


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.

Rendered

Any suggestions?
Advertisement
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.
[size=2]My Projects:
[size=2]Portfolio Map for Android - Free Visual Portfolio Tracker
[size=2]Electron Flux for Android - Free Puzzle/Logic Game
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!
Yes, your rendering code would definitely help.
Please do also post your texture setup code.
If I was helpful, feel free to rate me up ;)If I wasn't and you feel to rate me down, please let me know why!

This topic is closed to new replies.

Advertisement