C# 클래스 KinectStreamConverter.Rigging

Allow to make an automatic merge from the pinnochio application The technique is similar to the one used for the PM_heatWeigh plugin
파일 보기 프로젝트 열기: loic-lavergne/mckineap

공개 메소드들

메소드 설명
AutomaticRigging ( string modelPath, Assimp.Scene scene ) : void

Generate weights and skeleton Nodes from Nothing. It takes a scene with a single model and generates inside a NodeArchitectures/Associated Bones/Vertex Weights

AutomaticRiggingFromSkeleton ( string modelPath, Assimp.Scene scene, Assimp.Animation skeletalAnim, Assimp.Node rootSkeletalAnim ) : void

Generate weights and skeleton Nodes from an assimp skeleton Node. However pinocchio does not looks to be very good with that Method. It takes a

ChangeRiggingPath ( string projectPath ) : void
ExportToPinocchioFormat ( string projectPath, Assimp.Animation anim, Assimp.Node rootNodeAnim, int i, int frameIndex ) : void

Export a skeleton.out file that can be used by Pinocchio

Rigging ( ) : System

비공개 메소드들

메소드 설명
AddVertexToBone ( Assimp.Scene mainScene, int vertexId, int boneId, float boneWeight ) : void

Make a vertice dependent of a Bone

BuildBones ( Mesh mainMesh, Assimp.Node rootNodeAnim ) : void
BuildBonesWeight ( Assimp.Scene mainScene ) : void

Creation of bone structure from the weight.out file 1) Initialize and build every bones (and associate them to a nodeAnim) 2) Associate Each Vertex inside the firstMesh to a Bone)

BuildFrameAnimation ( Assimp.Animation anim, Assimp.Node rootNodeAnim, Matrix4x4 curMat, int frameIndex, string &result ) : string
BuildNodesFromSkeleton ( string skeletonPathFile ) : Assimp.Node
BuildPinocchioAnimation ( Assimp.Animation anim, Assimp.Node rootNodeAnim, int frameIndex ) : string
InitTmpDirPath ( ) : void
LaunchPinocchioBinary ( string modelPath, string exportedSkeletonPath ) : string

A synchronous call to pinocchio

StackMatrix ( Matrix4x4 parentMatrix, NodeAnimationChannel nodeAnim, int frameIndex ) : Matrix4x4

Stack a new matrix on the current one from information available inside the NodeAnimationChannels

메소드 상세

AutomaticRigging() 공개 메소드

Generate weights and skeleton Nodes from Nothing. It takes a scene with a single model and generates inside a NodeArchitectures/Associated Bones/Vertex Weights
public AutomaticRigging ( string modelPath, Assimp.Scene scene ) : void
modelPath string The original model Path
scene Assimp.Scene The scene with the model
리턴 void

AutomaticRiggingFromSkeleton() 공개 메소드

Generate weights and skeleton Nodes from an assimp skeleton Node. However pinocchio does not looks to be very good with that Method. It takes a
public AutomaticRiggingFromSkeleton ( string modelPath, Assimp.Scene scene, Assimp.Animation skeletalAnim, Assimp.Node rootSkeletalAnim ) : void
modelPath string The original model Path
scene Assimp.Scene
skeletalAnim Assimp.Animation
rootSkeletalAnim Assimp.Node
리턴 void

ChangeRiggingPath() 공개 메소드

public ChangeRiggingPath ( string projectPath ) : void
projectPath string
리턴 void

ExportToPinocchioFormat() 공개 메소드

Export a skeleton.out file that can be used by Pinocchio
public ExportToPinocchioFormat ( string projectPath, Assimp.Animation anim, Assimp.Node rootNodeAnim, int i, int frameIndex ) : void
projectPath string
anim Assimp.Animation
rootNodeAnim Assimp.Node
i int
frameIndex int
리턴 void

Rigging() 공개 메소드

public Rigging ( ) : System
리턴 System