3dsmax animation export plugin: keyframes

45a0d2e1a3bbace707ef3331dea68e0c
0
vickytao 101 Mar 01, 2005 at 08:29

I have checked several animation exporter’s source code. Mostly, their key frames were sampled with a fixed sample rate.
I want export the bone’s key frame as nessesary. It could be:

time 0: position0, rotation0

time 10: rotation1

time 12: position1

The information could be get from 3dsmax directly. Because 3dsmax has some key edit like this.

But the problem is I couldn’t find the right API to get those key frames.

3 Replies

Please log in or register to post a reply.

46407cc1bdfbd2db4f6e8876d74f990a
0
Kenneth_Gorking 101 Mar 01, 2005 at 11:21

You can’t just pull keyframes out of thin air, they have to be defined inside 3dsmax on the timeline, and it is those who are exported. They don’t have to be set at a fixed sample rate, you are free to create a thousand key one second, and none the next. It is completely up to you.

Have you had a look at the exporter, IGame, that ships with the maxsdk? All the data is exported to xml files, so they are easy “debug”, ie you can see the raw data, and don’t have to write a importer “in the blind”. Helped me a lot.

45a0d2e1a3bbace707ef3331dea68e0c
0
vickytao 101 Mar 02, 2005 at 08:07

@Kenneth Gorking

You can’t just pull keyframes out of thin air, they have to be defined inside 3dsmax on the timeline, and it is those who are exported. They don’t have to be set at a fixed sample rate, you are free to create a thousand key one second, and none the next. It is completely up to you.

Have you had a look at the exporter, IGame, that ships with the maxsdk? All the data is exported to xml files, so they are easy “debug”, ie you can see the raw data, and don’t have to write a importer “in the blind”. Helped me a lot.

[snapback]16359[/snapback]

I understood the keyframe you descriped and what I want is export the keyframes defined in 3dsmax.

Actually my 3dsmax5’s maxsdk didn’t have IGame liberary files and samples. But I found the its .lib file, .h file and .dll file from one open source project and I used it in my project. I knew how to use GetFullSampledKeys function but it only can export the fixed sample rate frames. I just couldn’t get the key frames defined in the 3dsmax’s timeline. If you can send me the exporter you said, it would be great. Then maybe I could figure it out myself. ;)

46407cc1bdfbd2db4f6e8876d74f990a
0
Kenneth_Gorking 101 Mar 03, 2005 at 11:04

I doubt its legal for me to distribute their source code on the net, but other people have written their own exporters, free for download:

Click!