Package com.jme3.scene.plugins.fbx.node
Class FbxNode
- Direct Known Subclasses:
FbxLimbNode,FbxRootNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Matrix4fprotected Transformprotected final Transformprotected Transformprotected final Transformprotected List<FbxMaterial>protected FbxNodeAttributeprotected FbxNodeprotected Map<String,List<FbxAnimCurveNode>> protected SkeletonFor FBX nodes that contain a skeleton (i.e.protected doubleFields inherited from class com.jme3.scene.plugins.fbx.obj.FbxObject
assetManager, className, id, jmeObject, name, sceneFolderName, subclassName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectObject(FbxObject object) voidconnectObjectProperty(FbxObject object, String property) static SpatialcreateScene(FbxNode fbxNode) static voidcreateSkeletons(FbxNode fbxNode) Create jME3 Skeleton objects on the scene.voidfromElement(FbxElement element) If this geometry node is deformed by a skeleton, this returns the node containing the skeleton.voidsetWorldBindPose(Matrix4f worldBindPose) voidupdateWorldTransforms(Transform jmeParentNodeTransform, Transform parentBindPose) Methods inherited from class com.jme3.scene.plugins.fbx.obj.FbxObject
getClassName, getFullClassName, getId, getJmeObject, getName, getSubclassName, isJmeObjectCreated, toString, unsupportedConnectObject, unsupportedConnectObjectProperty
-
Field Details
-
parent
-
children
-
materials
-
userData
-
propertyToAnimCurveMap
-
nodeAttribute
-
visibility
protected double visibility -
skeleton
For FBX nodes that contain a skeleton (i.e. FBX limbs). -
jmeWorldNodeTransform
-
jmeLocalNodeTransform
-
jmeWorldBindPose
-
jmeLocalBindPose
-
cachedWorldBindPose
-
-
Constructor Details
-
FbxNode
-
-
Method Details
-
computeFbxLocalTransform
-
setWorldBindPose
-
updateWorldTransforms
-
fromElement
- Overrides:
fromElementin classFbxObject<Spatial>
-
getPreferredParent
If this geometry node is deformed by a skeleton, this returns the node containing the skeleton. In jME3, a mesh can be deformed by a skeleton only if it is a child of the node containing the skeleton. However, this is not a requirement in FBX, so we have to modify the scene graph of the loaded model to adjust for this. This happens automatically increateScene(com.jme3.scene.plugins.fbx.node.FbxNode).- Returns:
- The model this node would like to be a child of, or null if no preferred parent.
-
toJmeObject
- Specified by:
toJmeObjectin classFbxObject<Spatial>
-
createSkeletons
Create jME3 Skeleton objects on the scene. Goes through the scene graph and finds limbs that are attached to FBX nodes, then creates a Skeleton on the node based on the child limbs. Must be called prior to callingcreateScene(com.jme3.scene.plugins.fbx.node.FbxNode).- Parameters:
fbxNode- The root FBX node.
-
createScene
-
getJmeSkeleton
-
getChildren
-
connectObject
- Specified by:
connectObjectin classFbxObject<Spatial>
-
connectObjectProperty
- Specified by:
connectObjectPropertyin classFbxObject<Spatial>
-