Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Importing models?

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2001
    Location
    carol stream,IL usa
    Posts
    24

    Importing models?

    I would like to make a video game with OpenGL. However, after painstakingly creating characters from scratch with OpenGL's Beizer curves, I've had it with rendering models solely with OpenGL.

    I know the pros couldn't possibly use this method to create their characters. Is there a way to use another graphics package like 3D Studio to create and animate character models within an OpenGL application? If so, what aspects of the game would I use OpenGL for?

    Any references such as books or websites would be appreciated.

    Thanks.

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2001
    Location
    Fort Collins, Colorado
    Posts
    447

    Re: Importing models?

    You can create the models in a modelling package, but you'd still need OpenGL to do the drawing. There are several model loading tutorials at the following sites:
    http://nehe.gamedev.net
    http://www.gametutorials.com

    Or a simple Google search should turn up numerous results.

  3. #3
    Intern Newbie
    Join Date
    Sep 2001
    Location
    Pacifica, California, USA
    Posts
    36

    Re: Importing models?

    You will probably like Blender, a free 3D modeller. http://www.blender3d.com/

  4. #4
    Senior Member OpenGL Guru knackered's Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    3,032

    Re: Importing models?

    Press 'crap' button.
    Knackered

  5. #5
    Junior Member Regular Contributor
    Join Date
    Sep 2001
    Posts
    107

    Re: Importing models?

    The Blender file format was decodable only by Blender. Besides which, Blender has recently gone out of business.

    I'd recommend Anim8or which is a free modelling & animation program that also happily exports 3D Studio MAX formatted meshes (.3DS files).

    Take the .3DS mesh files created with Anim8or and display them with Display3DS , a free OpenGL based 3DS file viewer that includes legible Visual C++ source code to help you get started.

    BTW: This thread should have been posted in the Beginners forum, rather than Advanced.

    [This message has been edited by ppinter1 (edited 04-01-2002).]

  6. #6
    Intern Contributor
    Join Date
    Aug 2001
    Location
    Berkeley, Ca., USA
    Posts
    53

    Re: Importing models?

    Sure the .blend format was only decodable by blender, but it was pretty easy to write a quick exporter to another format (the plugin/scripting language was Python).

    I guess it's a moot point now, unless you have an existing copy of Blender sitting around.

  7. #7
    Junior Member Newbie
    Join Date
    May 2001
    Location
    Athens, Greece, Europe
    Posts
    21

    Re: Importing models?

    QUOTE]Originally posted by ppinter1:

    ...Take the .3DS mesh files created with Anim8or and display them with Display3DS , a free OpenGL based 3DS file viewer that includes legible Visual C++ source code to help you get started.


    -------------

    Have you tried lib3ds? If you have, please let me know if Display3DS does any better work in getting additional data from the files (not interested on the drawing part)

  8. #8
    Junior Member Regular Contributor
    Join Date
    Sep 2001
    Posts
    107

    Re: Importing models?

    If you're writing your own rendering layer, by all means use lib3ds as it is very comprehensive and includes keyframe animation support among many other (platform-independent) features.

    I wrote Display3DS for newbies as a (hopefully) legible soft landing into the world of OpenGL and 3DS mesh decoding and display.

    Display3DS is a small Visual C++/MFC based mainline which instantiates an Okudagram object.

    An Okudagram is itself a small class that encapsulates all OpenGL handling and in turn instantiates a Mesh3DS object.

    Finally, the Mesh3DS class is my object-oriented translation of David Farrell's old View3DS code. Mesh3DS is not a small class but, with only 3 public methods, it's very ease to use .

    Mesh3DS unbuttons the 3DS mesh file into various data structures and displays the mesh vertices, materials and textures onto the current OpenGL Rendering Context as created by the Okudagram.

    In short, newbies should find Display3DS to be a useful learning tool while seasoned OpenGL people would likely find lib3ds emminently more feature capable.

    [This message has been edited by ppinter1 (edited 04-02-2002).]

  9. #9
    Junior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Canada
    Posts
    188

    Re: Importing models?

    Why doesn't OpenGL create it's own 3D mesh format.

    [This message has been edited by billy (edited 04-04-2002).]
    Billy

  10. #10
    Senior Member OpenGL Pro
    Join Date
    Feb 2000
    Location
    France
    Posts
    1,118

    Re: Importing models?

    Originally posted by billy:
    Why doesn't OpenGL create it's own 3D mesh format.
    Because OpenGL is a Graphics Library and that the way you store your objects has nothing to do with graphics.

    Some graphics APIs (Direct3D, QuickDraw, QuickDraw3D) have specific file formats but I think you always end up needing something that is not available in these formats...

    Regards.

    Eric

Posting Permissions

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