Export .fbx from Stingray

Anonymous

Export .fbx from Stingray

Anonymous
Not applicable

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
0 Likes
Reply
451 Views
2 Replies
Replies (2)

__ben__
Alumni
Alumni

Unfortunately no. Stingray can import FBX files and while exporting FBX files is a very interesting use case we currently do not support it.

Reply
Reply
0 Likes

Anonymous
Not applicable

Hello, thanks for your reply!

 

I managed to include the FBX library into my plugin dll, and thus can now export meshes with my plugin. So I guess it is possible although not supported.

 

For anyone wanting to do the same thing, the SDK can be found here: FBX Software Development Kit

 

Reply
Reply
0 Likes