Jump to content
  • Advertisement
Sign in to follow this  
Phil15

OpenGL blender multi-texture to opengl

This topic is 1141 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,
 
There are a lot of tutorials and questions online about multiple textures however most concentrate on mapping two or more textures to one place. If you have a mesh in blender which is textured with multiple textures, how can do you let opengl know which textures goes with which coordinates. When exported as an .obj file nothing indicates which image maps to specific set of coordinates. What strategies would you use to get over this problem??

Share this post


Link to post
Share on other sites
Advertisement
I don't think Wavefront .obj files can deal with that in a standard way. Wavefronts are nice to get things started but I would not consider them for serious work.

This has nothing to do with OpenGL, by the way.

Share this post


Link to post
Share on other sites

I don't think Wavefront .obj files can deal with that in a standard way. Wavefronts are nice to get things started but I would not consider them for serious work.

This has nothing to do with OpenGL, by the way.


So what would you advise for serious work?
I have written a class which reorders all the vertices and the texels in .obj file to be compatible with the GLDrawElements() call. And now I faced this problem with multiple texturing, what are other guys using?
 

Share this post


Link to post
Share on other sites
Almost every game engine has a custom file format for meshes. This usually involves writing a custom converter from a more well known format. A nice portable format I have had luck with is collada. It is a feature rich format so it is easy to get lost in it, however, you should be able to get by implementing just the parts you need.

Share this post


Link to post
Share on other sites

 

I don't think Wavefront .obj files can deal with that in a standard way. Wavefronts are nice to get things started but I would not consider them for serious work.

This has nothing to do with OpenGL, by the way.

So what would you advise for serious work?
I have written a class which reorders all the vertices and the texels in .obj file to be compatible with the GLDrawElements() call. And now I faced this problem with multiple texturing, what are other guys using?
 

 

I have the same problem in my engine. Early on when developing it I recognized that this would be a problem, but I've put it off until later. I'll work on it as soon as someone gives me a definitive "you should use X". Until then I'll keep scraping by. smile.png

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!