Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: GLUT + OpenGL + Loading .obj Files and Textures.

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2011
    Location
    Germany
    Posts
    4

    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

  2. #2
    Junior Member Newbie
    Join Date
    Dec 2010
    Posts
    19

    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!

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2011
    Location
    Germany
    Posts
    4

    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

  4. #4
    Junior Member Newbie
    Join Date
    Jan 2011
    Location
    Germany
    Posts
    4

    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

  5. #5
    Newbie Newbie
    Join Date
    Sep 2012
    Location
    China
    Posts
    1
    There is something wrong with the GLM program that the compiler is down. But as closing the attribute of the project of WP64, it works well. You know, shit happens, while i change the model the materile library file, it can't work normally! Is your issue solved?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •