Program that converts geometric and animation 3D scene data, from a COLLADA "*.dae" file to a binary file, with a custom format.
#include "./def.hpp"
std::string array_types[NUM_ARRAY_TYPES]= { "float_array", "int_array", "bool_array", "Name_array", "IDREF_array", "SIDREF_array", "token_array" };
std::string primitive_types[NUM_PRIMITIVES] = { "lines", "linestrips", "polygons", "polylist", "triangles", "trifans", "tristrips" };
//mesh attributes
/*sematics: VERTEX=0 | NORMAL=1 | TEXCOORD=2 | COLOR=3*/
std::string meshattr_types[NUM_MESH_ATTRS] = { "vertex", "normal", "texcoord", "color" };
//scene node instance node types
std::string instance_types[NUM_INST_TYPES]= {"instance_geometry", "instance_controller", "instance_light"};
//animation target types
std::string animtarget_types[NUM_ANIMTARGET_TYPES]= {
"transform",
"location.X", "location.Y", "location.Z",
"rotationX.ANGLE", "rotationY.ANGLE", "rotationZ.ANGLE",
"scale.X", "scale.Y", "scale.Z"
};