Little001's picture

Load .obj files with texture (.mtl)

Hello i try this program ... ...
For load my obj files, its work very good, but i want load this models with textures.
In read me.txt is that this application support load obj with mtl.
But my models is all white :(. Can you help me?

Inline Images


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

What have you tried so far?

To use textures in OpenGL 1.x, you need to call GL.Enable(EnableCap.Texture2d) and bind a texture object with GL.BindTexture(TextureTarget.Texture2d), before rendering your 3d model.

Little001's picture

I know but, where and what argument here (GL.BindTexture(TextureTarget.Texture2d, ???), I search render method in objLoader, before this code I write GL.Enable(EnableCap.Texture2d) and then i want write GL.BindTexture(TextureTarget.Texture2d, ???), but i dont know what texture, bcs i have only .mtl file.