KudanAR - Android  1.6.0
ARModelImporter Class Reference

Public Member Functions

 ARModelImporter ()
 
void finalize ()
 
void loadFromPath (String path)
 
void loadFromAsset (String asset)
 
ARModelNode getNode ()
 
List< ARMeshNodegetMeshNodes ()
 
void addBlendAnimationChannel (ARBlendShapeChannel channel, long nativeMem)
 

Detailed Description

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/.

Constructor & Destructor Documentation

◆ ARModelImporter()

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.

Member Function Documentation

◆ addBlendAnimationChannel()

void ARModelImporter.addBlendAnimationChannel ( ARBlendShapeChannel  channel,
long  nativeMem 
)

Adds ARBlendAnimationChannel to ARModelImporter's list of ARBlendAnimationChannels.

Parameters
channelthe ARBlendShapeChannel
nativeMemwrapped pointer to native ARBlendAnimationChannel object.

◆ finalize()

void ARModelImporter.finalize ( )

Deletes native ARModelImporter object.

◆ getMeshNodes()

List<ARMeshNode> ARModelImporter.getMeshNodes ( )

Returns the complete list of all ARMeshNodes imported from the model file.

Returns
The list of ARMeshNodes for the imported model.

◆ getNode()

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.

Returns
The node representing everything imported from the model file.

◆ loadFromAsset()

void ARModelImporter.loadFromAsset ( String  asset)

Loads a .armodel file bundled in the app into the importer.

Example of use:

modelImporter.loadFromAsset("example.armodel");
Parameters
assetThe name of the file, including extension.

◆ loadFromPath()

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");
Parameters
pathThe full path pointing to the model file.

The documentation for this class was generated from the following file: