The ARModelImporter class imports 3D models in the binary format. Models must be in the .armodel format. .fbx, .obj and .dae model files can be converted to .armodel via the Kudan AR Toolkit, available at https://www.kudan.eu/download-kudan-ar-sdk/.
Initialises a new empty ARModelImporter.
All lists associated with the importer, as well as the imported model node, will be set as new, empty objects at this time.
| void addBlendAnimationChannel |
( |
ARBlendShapeChannel |
channel, |
|
|
int |
nativeMem |
|
) |
| |
|
inline |
Adds ARBlendAnimationChannel to ARModelImporter's list of ARBlendAnimationChannels.
- Parameters
-
| channel | the ARBlendShapeChannel |
| nativeMem | wrapped pointer to native ARBlendAnimationChannel object. |
Returns the complete list of all ARMeshNodes imported from the model file.
- Returns
- The list of ARMeshNodes for the imported model.
Returns the node representing the model importer from the file. If all textures from the model are bundled with the app, they will automatically be applied to the model's meshes.
- Returns
- The node representing everything imported from the model file.
| void loadFromAsset |
( |
String |
asset | ) |
|
|
inline |
Loads a .armodel file bundled in the app into the importer.
Example of use:
modelImporter.loadFromAsset("example.armodel");
- Parameters
-
| asset | The name of the file, including extension. |
| void loadFromPath |
( |
String |
path | ) |
|
|
inline |
Loads a .armodel file from a full file path into the importer.
Example of use:
modelImporter.loadFromPath("/mnt/sdcard/images/example.armodel");
- Parameters
-
| path | The full path pointing to the model file. |
The documentation for this class was generated from the following file: