GLUT + OpenGL + Loading .obj Files and Textures.
Hi,
I'm currently trying to do a project to get to know OpenGL and GLUT. Here is what I want to do: I want to create a window with GLUT and load a .obj 3D Obj into it. Then i would like to import a texture and lay it onto that object. From that I will do some texture magic in a second step and alter the texture.
Here is my question. Is there an prewritten thing for that?
I would like to have a starting point for my modifications and not to start from scratch.
Would be great if someone knows if there is such a thing.
Cheers Max
Re: GLUT + OpenGL + Loading .obj Files and Textures.
hello ,
there is something allready written , but it also uses the GLM library , which bassicaly draws your model from the .obj file and also applies the texture/material which you asigned to the object in the modelling software (ex: 3ds max , gmax).
the code is easy to understand and to modify , you can download it from here : http://opengl.altuma.ro/load_a_model.zip
there are very usefull explenations on the site , from where the example project is : http://www.3dcodingtutorial.com/open...ith-3D-models/
and if you want to manually apply the textures there is also a tutorial/project_example for that : http://www.3dcodingtutorial.com/Text...-Textures.html
this was very usefull to me , hope it will be for you , too .
good luck!
Re: GLUT + OpenGL + Loading .obj Files and Textures.
Hey there,
thanks for the quick reply. I'll give it a shot. It seems to be quite straight forward.
Thanks again and I will post what I did.
Cheers Max
Re: GLUT + OpenGL + Loading .obj Files and Textures.
Hey there, sorry to ask again.
I tried to run that but this Visual Studio stuff is not mine. Do you have that as qt or simple project?
Cheers