GLBasic forum

Main forum => GLBasic - en => Topic started by: Scott_AW on 2010-Apr-09

Title: Making animated models
Post by: Scott_AW on 2010-Apr-09
I'm currently working on a model generation program, I believe that model files can store animation frames, but I was wondering is it possible to to create a model with animation in code.  I attempted it, but either I did something wrong or its not supported.

Basicly what I'm doing is generating a model, with an index as the frame number, saving to the same model each new model with a different index.  This crashes the program.
Title: Re: Making animated models
Post by: Hemlos on 2010-Apr-09
If im not mistaking, you can only create one frame per .ddd.
Title: Re: Making animated models
Post by: Scott_AW on 2010-Apr-09
Well thats a shame, anyway of combining DDD files into one with frames?
Title: Re: Making animated models
Post by: matchy on 2010-Apr-09
Export each frame separately (from 3ds max in my case) as .obj format series and convert them to a single animated .ddd format and it will work fine.  :)

Single animated formats like .3ds converted to .ddd will crash.  :(
Title: Re: Making animated models
Post by: Kitty Hello on 2010-Apr-09
I thought of that before. I'll add a parameter to X_OBJSTART, that lets you specify the animation frame you want to use.
Another option (so far) would be to write a .dda (ascii) file to a temp directory and read that.
Title: Re: Making animated models
Post by: Scott_AW on 2010-Apr-09
@Matchy - Can't do that, the models are being created by the program, not externally.

@Kitty Hello - That would be wonderful.
Title: Re: Making animated models
Post by: matchy on 2010-Apr-10
Oh I see  :bed: and X_OBJSTART does need a frame number which would be very good.
Title: Re: Making animated models
Post by: Schranz0r on 2010-Apr-10
Quote from: Kitty Hello on 2010-Apr-09
I thought of that before. I'll add a parameter to X_OBJSTART, that lets you specify the animation frame you want to use.
Another option (so far) would be to write a .dda (ascii) file to a temp directory and read that.

Kitty, what about a new format for 3D? (i know its a lot of work, but in the future we realy need that!)
DDD-Files are to big compared to other animationframe based formats.
If i look at some devices (IPhone, GP2X) ddd-files are to big for...

PLS a new format!  :happy:
Title: Re: Making animated models
Post by: Kitty Hello on 2010-Apr-12
That's really a big piece of a construction site. Maybe if I have summer holidays.