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 8 of 8

Thread: 3DS, mesh and ROCK'N'ROLL!

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2005
    Posts
    24

    3DS, mesh and ROCK'N'ROLL!

    Hi!
    This time i have two questions:

    1. Is 3ds a good format in order to create 3d models?
    2. Is there a better way then using glEvalMesh and his friends in order to draw 3d models?
    thanx

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    The Round Table at Camelot
    Posts
    1,537

    Re: 3DS, mesh and ROCK'N'ROLL!

    1. Is 3ds a good format in order to create 3d models?
    If the 3ds format does what you need for your particular program then YES!

    2. Is there a better way then using glEvalMesh and his friends in order to draw 3d models?
    Use vertex arrays? You know...like glDrawElements and whatnot.

    -SirKnight
    -SirKnight

  3. #3
    Junior Member Regular Contributor
    Join Date
    Jan 2004
    Location
    Rio de Janeiro - Brazil
    Posts
    112

    Re: 3DS, mesh and ROCK'N'ROLL!

    The bad thing about the 3ds file format is that it does not include vertex normals. So you have to compute vertex normals after loading the model from disk.

    But as the 3ds format only supports one texture coordinate per vertex, you will not be able to compute vertex normals correctly. Vertices where texture mapping is discontinnuous will be splitted when saving the 3ds file and this means normals will also be discontinuous at that vertices (for example in a sphere you will get a hard edge where the texture map join sides).

  4. #4
    Junior Member Newbie
    Join Date
    Apr 2005
    Posts
    24

    Re: 3DS, mesh and ROCK'N'ROLL!

    Ok!
    Thanks to both of you!

  5. #5
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,609

    Re: 3DS, mesh and ROCK'N'ROLL!

    IIRC 3ds doesnt handle any sort of animation as well (its an old format, hmmm no normals sounds crazy)
    youll find unlike image files since ppl needs a varied most ppl write there own format

  6. #6
    Super Moderator Regular Contributor
    Join Date
    Jul 2001
    Posts
    425

    Re: 3DS, mesh and ROCK'N'ROLL!

    Just some comments..

    1. 3ds has keyframe animations. You can easily add skinning to this to get good animations.

    2. 3ds has a hierarchical structure so therfore you can use it to control hierarchical transforms.

    3. 3ds has smoothing groups. These can be used to group vertices and "smooth" a normal over these vertices. You can get a perfect smooth sphere by using this.

    There are some bad limitations. You can only get 8 chars in the names so therefor it is difficult to use name encoding for specific stuff without an external reference file.

    It is also bad that 3ds only have one texture coord per vertice. This can be handled by the texture baking feature but in general it only leads to overflow of textures...

  7. #7
    Junior Member Newbie
    Join Date
    Apr 2005
    Posts
    24

    Re: 3DS, mesh and ROCK'N'ROLL!

    Ok! thanks to you all!
    I'll probably use my own format...

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

    Re: 3DS, mesh and ROCK'N'ROLL!

    You could try the X file format:-
    Recent article on loading them without using DirectX:-
    http://www.gamedev.net/reference/pro...tures/xfilepc/
    It's a good format.
    Knackered

Posting Permissions

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