Advertisement Jump to content
Sign in to follow this  
MatrixChess

OpenGL OBJ texture

This topic is 3821 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

Hi, I'm new to this forum (this is my first post). I want to say if it is possible to fit a texture on an OBJ model loaded in opengl with a specific library. The model is a skittle therefore I can't make it vertex by vertex... How can I do? I'm sorry for my bad english Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
If the model is an .obj mesh, just texture it in a modeling package, e.g. Milkshape3D, Wings, Blender, 3DS, Maya, ect... Then just load the model and all the vertex, texture information and you are set. Not sure if that is what you are looking for.

Share this post


Link to post
Share on other sites
Thanks for the response!

I'll try this solution but i'm also interested to know if it is possible to load the texture on the OBJ model via OpenGL.

Share this post


Link to post
Share on other sites
.obj models tend to come with .mtl files that specify the material used on the object, part of which may be the texture (usually a file name). You'll have to just load the texture in the ordinary way to use it on your model.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!