Jump to content
  • Advertisement
Sign in to follow this  
newbie55

OpenGL .obj reader

This topic is 3997 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 am using Nate Robbins glm package to read a .obj file in my opengl program.I am exporting the .obj files from blender.I keep getting a error message"unable to read material file" even though I have included the material file in my program.Is the problem with blender's .obj exporter or am I doing something wrong? Thanks

Share this post


Link to post
Share on other sites
Advertisement
probably you dont have *.mtl file, where should be.
if you dont have any *.mtl file, try edit, *.obj file, and delete line
mtl with filename.
if you have *.mtl file, please check directories, where should be this file.

Share this post


Link to post
Share on other sites
thanks for the quick reply,but I have included the .mtl file.If I download .obj files from the net and use them in my program it works fine.The problem occurs only when I try to export my models from blender

Share this post


Link to post
Share on other sites
Open them up and look at differences. THey are text format and just briefly see if theres anything wrong. .obj works fine for me when loading into blender, i dont know about the the thing your using though.

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!