View Full Version : Question about .3ds animation

12-27-2003, 06:07 PM

I am trying to read B020 block in a 3ds file, but I couldn't figure out how to read this block.

I've tried to read according to the files specified in the wotsit.org, but the two files on the website says different things about this block, and neither read correctly.

This is what I have been trying:

short flags;
short unknown[4];
short keys;
short unknown;
struct {
short frame;
long unknown;
float x, y, z;
} position[keys];

I've also tried this way:

short flags;
8 byte unknown;
int keys;
struct {
int frame;
short data;
float x, y, z;
} position[keys];

Am I doing something wrong? Any input is appreciated http://www.opengl.org/discussion_boards/ubb/smile.gif

12-28-2003, 12:25 AM
This is not the best place to get information about 3DS files, this is an OpenGL forum, but you could have a look at www.wotsit.org, (http://www.wotsit.org,) www.sourceforge.net (http://www.sourceforge.net) also has at least one 3DS library, you could have a peek at the source code to see how it is done in that.