AutodeskImport Class
A class for the Autodesk FBX import plugin, which provides an ability to add content stored in the FBX format into Unigine engine.
int AUTODESK_IMPORT_AXIS_NX
Description
Negative X-coordinate position.int AUTODESK_IMPORT_AXIS_NY
Description
Negative Y-coordinate position.int AUTODESK_IMPORT_AXIS_NZ
Description
Negative Z-coordinate position.int AUTODESK_IMPORT_AXIS_PX
Description
Positive X-coordinate position.int AUTODESK_IMPORT_AXIS_PY
Description
Positive Y-coordinate position.int AUTODESK_IMPORT_AXIS_PZ
Description
Positive Z-coordinate position.int AUTODESK_IMPORT_CAMERA_ORTHOGONAL
Description
Orthogonal camera.int AUTODESK_IMPORT_CAMERA_PERSPECTIVE
Description
Perspective camera.int AUTODESK_IMPORT_DECAY_CUBIC
Description
Cubic decay.int AUTODESK_IMPORT_DECAY_LINEAR
Description
Linear decay.int AUTODESK_IMPORT_DECAY_NONE
Description
Without a decay.int AUTODESK_IMPORT_DECAY_QUADRATIC
Description
Quadratic decay.int AUTODESK_IMPORT_LIGHT_AREA
Description
Area light.int AUTODESK_IMPORT_LIGHT_DIRECTIONAL
Description
Directional light.int AUTODESK_IMPORT_LIGHT_POINT
Description
Point light.int AUTODESK_IMPORT_LIGHT_SPOT
Description
Projection light.int AUTODESK_IMPORT_LIGHT_VOLUME
Description
Volume light.int AUTODESK_IMPORT_MATERIAL_LAMBERT
Description
Lambertian shading.int AUTODESK_IMPORT_MATERIAL_PHONG
Description
Phong shading.int AUTODESK_IMPORT_ORIENTATION_LEFT
Description
Left-handed orientation.int AUTODESK_IMPORT_ORIENTATION_RIGHT
Description
Right-handed orientation.int AUTODESK_IMPORT_PARAMETER_AMBIENT
Description
Ambient parameter.int AUTODESK_IMPORT_PARAMETER_BUMPMAP
Description
Bumpmap parameter.int AUTODESK_IMPORT_PARAMETER_DIFFUSE
Description
Diffuse parameter.int AUTODESK_IMPORT_PARAMETER_EMISSIVE
Description
Emission parameter.int AUTODESK_IMPORT_PARAMETER_NORMALMAP
Description
Normal map parameter.int AUTODESK_IMPORT_PARAMETER_REFLECTION
Description
Reflection parameter.int AUTODESK_IMPORT_PARAMETER_SHININESS
Description
Shininess parameter.int AUTODESK_IMPORT_PARAMETER_SPECULAR
Description
Specular parameter.int AUTODESK_IMPORT_PARAMETER_TRANSPARENCY
Description
Transparency parameter.AutodeskImport Class
Members
AutodeskImport ()
Constructor. Creates an empty instance.void clear ()
Clears all the data associated with the class.float getAnimationMaxTime (int num)
Returns the maximum time value for the specified animation.Arguments
- int num - Animation ID number.
Return value
Maximum time value.float getAnimationMinTime (int num)
Returns the minimum time value for the specified animation.Arguments
- int num - Animation ID number.
Return value
Minimum time value.string getAnimationName (int num)
Returns the name of the specified animation.Arguments
- int num - Animation ID number.
Return value
Name of the animation.string getAuthor ()
Returns the string with the author's name.Return value
Author name.float getCameraFov (int num)
Returns the camera field of view value.Arguments
- int num - Camera ID number.
Return value
Camera FOV value.int getCameraType (int num)
Returns the camera type.Arguments
- int num - Camera ID number.
Return value
Type of the camera.float getCameraZFar (int num)
Returns the camera far clipping plane value.Arguments
- int num - Camera ID number.
Return value
Far clipping plane.float getCameraZNear (int num)
Returns the camera near clipping plane value.Arguments
- int num - Camera ID number.
Return value
Near clipping plane.string getComment ()
Returns the string with the user comment.Return value
User comment.string getCreator ()
Returns the string with the creator name.Return value
Creator name.int getFrontAxis ()
Returns the axis, that placed towards the camera.Return value
Front axis.string getKeywords ()
Returns the string with the keywords.Return value
Keywords.int getLightCastShadow (int num)
Returns the value indicating if the specified light casts shadows.Arguments
- int num - Light ID number.
Return value
1 if shadows are cast, otherwise - 0.vec3 getLightColor (int num)
Returns the specified light color.Arguments
- int num - Light ID number.
Return value
Color model of three values.int getLightDecay (int num)
Returns the decay type of the specified light.Arguments
- int num - Light ID number.
Return value
Type of the decay.float getLightFarAttenuationEnd (int num)
Returns the far attenuation end value for the specified light.Arguments
- int num - Light ID number.
Return value
Far attenuation end value.float getLightFarAttenuationStart (int num)
Returns the far attenuation start value for the specified light.Arguments
- int num - Light ID number.
Return value
Far attenuation start value.int getLightFarAttenuation (int num)
Returns the far attenuation value for the specified light.Arguments
- int num - Light ID number.
Return value
Far attenuation value.float getLightInnerAngle (int num)
Returns the light inner cone angle. Difference between the inner and outer angles defines a halo around the light.Arguments
- int num - Light ID number.
Return value
Inner angle of the light.float getLightIntensity (int num)
Returns an intensity value for the light.Arguments
- int num - Light ID number.
Return value
Light intensity value.float getLightNearAttenuationEnd (int num)
Returns the near attenuation end value for the specified light.Arguments
- int num - Light ID number.
Return value
Near attenuation end value.float getLightNearAttenuationStart (int num)
Returns the near attenuation start value for the specified light.Arguments
- int num - Light ID number.
Return value
Near attenuation start value.int getLightNearAttenuation (int num)
Returns the near attenuation value for the specified light.Arguments
- int num - Light ID number.
Return value
Near attenuation value.float getLightOuterAngle (int num)
Returns the light outer cone angle. Difference between the inner and outer angles defines a halo around the light.Arguments
- int num - Light ID number.
Return value
Outer angle of the light.string getLightTexture (int num)
Returns a path to the specified light texture.Arguments
- int num - Light ID number.
Return value
Light texture path.int getLightType (int num)
Returns the type of the specified light.Arguments
- int num - Light ID number.
Return value
Type of the light.int getLightVolumetric (int num)
Returns a value indicating if volumetric lights are enabled.Arguments
- int num - Light ID number.
Return value
1 if volumetric lights are enabled; otherwise, 0.vec3 getMaterialColor (int num, int property)
Returns a color of the material.Arguments
- int num - Material ID number.
- int property - Material property.
Return value
Color model of three values.string getMaterialImage (int num, int property)
Returns to the specified material image.Arguments
- int num - Material ID number.
- int property - Material property.
Return value
A path to the material image.string getMaterialName (int num)
Returns a name of the specified material.Arguments
- int num - Material ID number.
Return value
Name of the material.string getMaterialShading (int num)
Returns a shading type for a specified material.Arguments
- int num - Material ID number.
Return value
Shading type.int getMaterialType (int num)
Returns a type of a specified material.Arguments
- int num - Material ID number.
Return value
A type of the material.float getMaterialValue (int num, int property)
Returns a value of the material parameters.Arguments
- int num - Material ID number.
- int property - Material property.
Return value
A material parameters value.int getMeshCastShadow (int num)
Returns the value indicating if the specified mesh casts shadows.Arguments
- int num - Mesh ID number.
Return value
1 if shadows are cast, otherwise - 0.string getMeshName (int num)
Returns a string with the mesh name.Arguments
- int num - Mesh ID number.
Return value
Name of the mesh.int getMeshReceiveShadow (int num)
Returns the value indicating if the specified mesh receives shadows.Arguments
- int num - Mesh ID number.
Return value
1 if shadows are received, otherwise - 0.int getMeshSkinned (int num)
Returns the value indicating if the specified mesh is skinned.Arguments
- int num - Mesh ID number.
Return value
1 if the mesh is skinned, otherwise - 0.string getMeshSurfaceName (int num, int surface)
Returns a string with the mesh surface name.Arguments
- int num - Mesh ID number.
- int surface - Surface ID number.
Return value
Name of the surface.float getMeter ()
Returns the value of the unit meter.Return value
Unit meter value.int getNodeCamera (int num)
Returns the type of the camera, applied to the node.Arguments
- int num - Node ID number.
Return value
Camera type.int getNodeChild (int num, int child)
Returns a given child of the node.Arguments
- int num - Node ID number.
- int child - Node child ID number.
Return value
Child node.int getNodeJoint (int num)
Returns the joint of the node.Arguments
- int num - Node ID number.
Return value
Node joint.int getNodeLight (int num)
Returns the type of the light, applied to the node.Arguments
- int num - Node ID number.
Return value
Light type.int getNodeMaterial (int num, string name)
Returns the type of the specified material.Arguments
- int num - Node ID number.
- string name - Material name.
Return value
Type of the material.int getNodeMesh (int num)
Returns the mesh of the node.Arguments
- int num - Node ID number.
Return value
Node mesh.string getNodeName (int num)
Returns the name of the node.Arguments
- int num - Node ID number.
Return value
Name of the node.int getNodeParent (int num)
Returns the parent node of the specified node.Arguments
- int num - Node ID number.
Return value
Parent node if the parent is found, otherwise - 0.mat4 getNodeTransform (int num, float scale)
Returns a transformation matrix of the specified node.Arguments
- int num - Node ID number.
- float scale - Transformation scale.
Return value
Transformation matrix.int getNumAnimations ()
Returns the number of animations.Return value
Number of animations.int getNumCameras ()
Returns the number of cameras.Return value
Number of cameras.int getNumLights ()
Returns the number of lights.Return value
Number of lights.int getNumMaterials ()
Returns the number of materials.Return value
Number of materials.int getNumMeshSurfaces (int num)
Returns the number of mesh surfaces.Arguments
- int num - Mesh ID number.
Return value
Number of mesh surfaces.int getNumMeshes ()
Returns the number of meshes.Return value
Number of meshes.int getNumNodeChilds (int num)
Returns the number of node children.Arguments
- int num - Node ID number.
Return value
Number of node children.int getNumNodes ()
Returns the number of nodes.Return value
Number of nodes.int getOrientation ()
Returns the type of the orientation.Return value
Orientation type.string getRevision ()
Returns a string with the revision information.Return value
Revision info.string getSubject ()
Returns the string with a subject.Return value
Subject string.string getTitle ()
Returns the string with a title.Return value
Title string.int getUpAxis ()
Returns the axis, that placed upwards.Return value
Up axis.int getVersion ()
Returns the version of the program.Return value
Version of the program.int loadAnimation (string name)
Loads the FBX animation file.Arguments
- string name - Animation file name.
Return value
1 if the operation was successful, otherwise - 0.int load (string name)
Loads the FBX file.Arguments
- string name - File name.
Return value
1 if the operation was successful, otherwise - 0.int saveAnimation (int num, string name, float scale, int animation, float from, float to, float fps)
Saves a mesh into the specified file.Arguments
- int num - Animation number.
- string name - Animation name.
- float scale - Animation scale.
- int animation - Animation ID.
- float from - Starting value.
- float to - Ending value.
- float fps - FPS value.
Return value
1 if the operation was successful, otherwise - 0.int saveMesh (int num, int skinned, string name, float scale, int cache)
Saves a mesh into the specified file.Arguments
- int num - Mesh ID number.
- int skinned - 1 if the mesh is skinned, otherwise - 0.
- string name - Name of the file the mesh will be saved in.
- float scale - Scale value.
- int cache - Cache value.
Return value
1 if the operation was successful, otherwise - 0.void setAnimationTime (int num, float time)
Sets an animation time.Arguments
- int num - Animation ID number.
- float time - Animation time.
Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)