![]() |
LibGame v0.4.0
The LG Game Engine - Copyright (C) 2024-2026 ETMSoftware
|
Functions | |
| LG_Mesh * | lg_fbx2vbo (const char *fbx_full_path, zboolean invert_z, zboolean normalize_xyz, zboolean horiz_center, zboolean vert_center, zboolean vert_bottom) |
=== The FBX file parser ===
We use the excellent ufbx lib, by Samuli Raivio.
At the moment, the aim is to read skinned meshes, as OBJ files don't support them.
See: https://ufbx.github.io and https://github.com/ufbx/ufbx
| LG_Mesh * lg_fbx2vbo | ( | const char * | fbx_full_path, |
| zboolean | invert_z, | ||
| zboolean | normalize_xyz, | ||
| zboolean | horiz_center, | ||
| zboolean | vert_center, | ||
| zboolean | vert_bottom | ||
| ) |
Parse a FBX file to build a skinned mesh
Will create a Vertex_uvn_iw VBO (see lg_vertex.h)
| fbx_full_path | User-provided full path to the FBX file |
| invert_z | Invert z spatial coord (left_handed vs right_handed coords sys) - STILL EXPERIMENTAL |
| normalize_xyz | Normalize spatial coords |
| horiz_center | Center mesh horizontally |
| vert_center | Center mesh vertically, if vert_bottom is not set |
| vert_bottom | Set mesh origin vertically at bottom, override vert_center |