Jump to content
  • Advertisement
Sign in to follow this  
dmmik

OpenGL OpenGL Texturing

This topic is 2839 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!