Export .fbx from Stingray
Not applicable
01-10-2018
05:11 AM
Hello
I'm currently working on a plugin, where I want to export an animation from Stingray to 3ds Max.
As a first step, I would want to export one frame of the animation to a .fbx file and save it to the disk. Are there any ways of doing this? At the moment, I can access the vertices and indices of the mesh by the following lines:
uint32_t mesh_name = _unit->mesh_name(cau, 0); MO_Geometry mog; mesh_api->read_geometry(cau, mesh_name, &mog); float* vertex_array_raw = static_cast<float*>(mog.vertices[0]);
uint32_t mesh_name = _unit->mesh_name(cau, 0); MO_Geometry mog; _mesh_api->read_geometry(cau, mesh_name, &mog); short* index_array_raw = static_cast<short*>(mog.indices);
Basically, are there any function in the stingray api, or any external library, that can help me to export to an .fbx if I have access to the vertices and indices (which I already have).
Thank you!
Reply
Reply
Link copied