2001-01-11 23:17:57 +01:00
|
|
|
/*********************************/
|
|
|
|
/*** SpongeBob 3d Anim Creator ***/
|
|
|
|
/*********************************/
|
2001-01-11 19:35:41 +01:00
|
|
|
|
|
|
|
#include <Vector3.h>
|
|
|
|
#include <List.h>
|
|
|
|
|
|
|
|
|
|
|
|
//***************************************************************************
|
2001-01-11 23:17:57 +01:00
|
|
|
struct sBoneAnim
|
2001-01-11 19:35:41 +01:00
|
|
|
{
|
2001-01-11 23:17:57 +01:00
|
|
|
vector<int> Idx;
|
|
|
|
};
|
2001-01-11 19:35:41 +01:00
|
|
|
|
2001-02-26 21:14:08 +01:00
|
|
|
//***************************************************************************
|
2001-01-11 23:17:57 +01:00
|
|
|
struct sAnim
|
|
|
|
{
|
2001-01-24 23:35:11 +01:00
|
|
|
GString Name;
|
2001-01-11 23:17:57 +01:00
|
|
|
int FrameCount;
|
|
|
|
vector<sBoneAnim> BoneAnim;
|
2001-01-12 23:38:19 +01:00
|
|
|
vector<s32> Move;
|
|
|
|
int AnimOfs;
|
|
|
|
int MoveOfs;
|
2001-01-11 23:17:57 +01:00
|
|
|
};
|
2001-01-11 19:35:41 +01:00
|
|
|
|
2001-01-11 23:17:57 +01:00
|
|
|
//***************************************************************************
|
|
|
|
class CMkAnim3d
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CMkAnim3d()
|
|
|
|
{
|
|
|
|
BoneCount=-1;
|
|
|
|
}
|
2001-01-11 19:35:41 +01:00
|
|
|
|
2001-02-26 21:14:08 +01:00
|
|
|
/*Anim*/void Add(GString const &Filename);
|
|
|
|
/*Anim*/void Write(GString &Filename);
|
|
|
|
/*Anim*/void WriteInclude(GString const &IncludeFile);
|
2001-01-11 19:35:41 +01:00
|
|
|
|
2001-01-11 23:17:57 +01:00
|
|
|
private:
|
2001-02-26 21:14:08 +01:00
|
|
|
/*Anim*/int ProcessSkelMove(CScene &Scene,sAnim &ThisAnim,int Idx);
|
|
|
|
/*Anim*/void ProcessSkelAnim(CScene &Scene,sAnim &ThisAnim,int Idx);
|
|
|
|
/*Anim*/int WriteMove(sAnim const &ThisAnim);
|
|
|
|
/*Anim*/int WriteAnim(sAnim const &ThisAnim);
|
|
|
|
/*Anim*/int WriteQuatTable();
|
|
|
|
|
|
|
|
/*Anim*/int BoneCount;
|
|
|
|
/*Anim*/vector<sAnim> AnimList;
|
|
|
|
/*Anim*/CList<sQuat> QuatList;
|
2001-01-11 19:35:41 +01:00
|
|
|
FILE *File;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//***************************************************************************
|