![]() |
KudanAR - Android
1.6.0
|
Public Member Functions | |
ARModelImporter () | |
void | finalize () |
void | loadFromPath (String path) |
void | loadFromAsset (String asset) |
ARModelNode | getNode () |
List< ARMeshNode > | getMeshNodes () |
void | addBlendAnimationChannel (ARBlendShapeChannel channel, long nativeMem) |
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/.
ARModelImporter.ARModelImporter | ( | ) |
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 ARModelImporter.addBlendAnimationChannel | ( | ARBlendShapeChannel | channel, |
long | nativeMem | ||
) |
Adds ARBlendAnimationChannel to ARModelImporter's list of ARBlendAnimationChannels.
channel | the ARBlendShapeChannel |
nativeMem | wrapped pointer to native ARBlendAnimationChannel object. |
void ARModelImporter.finalize | ( | ) |
Deletes native ARModelImporter object.
List<ARMeshNode> ARModelImporter.getMeshNodes | ( | ) |
Returns the complete list of all ARMeshNodes imported from the model file.
ARModelNode ARModelImporter.getNode | ( | ) |
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.
void ARModelImporter.loadFromAsset | ( | String | asset | ) |
Loads a .armodel file bundled in the app into the importer.
Example of use:
modelImporter.loadFromAsset("example.armodel");
asset | The name of the file, including extension. |
void ARModelImporter.loadFromPath | ( | String | path | ) |
Loads a .armodel file from a full file path into the importer.
Example of use:
modelImporter.loadFromPath("/mnt/sdcard/images/example.armodel");
path | The full path pointing to the model file. |