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: 3DS and ASE File Loader - C++ - Help Plz

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2002
    Posts
    11

    3DS and ASE File Loader - C++ - Help Plz

    Hi,

    Where can I find a good tutorial about 3DS and/or ASE File Loader for C?

  2. #2
    Intern Contributor
    Join Date
    Apr 2002
    Posts
    85

    Re: 3DS and ASE File Loader - C++ - Help Plz

    www.GameTutorials.com has an easy to understand 3ds file loader. Most of it is in C, some of it might be C++.
    P4 2Ghz, GEFORCE4, 512 Meg RAM, WIN2000, VStudio 6.0

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2002
    Posts
    9

    Re: 3DS and ASE File Loader - C++ - Help Plz

    how load animation? like this


    *TM_ANIMATION {
    *NODE_NAME "Bip01 L Foot"
    *CONTROL_ROT_TRACK {
    *CONTROL_ROT_SAMPLE 0 0.19771 -0.11301 -0.09207 0.96936
    *CONTROL_ROT_SAMPLE 160 0.13597 -0.10420 -0.12957 0.97666
    *CONTROL_ROT_SAMPLE 320 0.09715 -0.08685 -0.16325 0.97794
    *CONTROL_ROT_SAMPLE 480 0.07420 -0.08546 -0.17521 0.97800
    *CONTROL_ROT_SAMPLE 640 0.04953 -0.07723 -0.17700 0.97992

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    2,704

    Re: 3DS and ASE File Loader - C++ - Help Plz

    You should ask in a forum which is dedicated to whatever program or file format emits that animation. Each animation will be stored in its own format.

    That being said, it looks like each of those samples are a quaternion. Thus, sscanf() each CONTROL_ROT_SAMPLE for a track into the x,y,z,w of a quaternion, and you should be fine. The first number looks like a time stamp in some kind of ticks for each sample, to be used when interpolating; running at 160 ticks per frame.
    "If you can't afford to do something right,
    you'd better make sure you can afford to do it wrong!"

  5. #5
    Junior Member Regular Contributor
    Join Date
    Apr 2002
    Posts
    111

    Re: 3DS and ASE File Loader - C++ - Help Plz

    As I know ASE doesn't support skinning, so the animation only animates the bones, but the mesh remains still. That's why I chose flexporter ( http://www.codercorner.com/Flexporter.htm ). It is freeware (+source code), it can export to ascii, and it supports lots of MAX features (including skinning). The ascii file is quite easy to understand...

Posting Permissions

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