public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteMatrix4Array(bw, m_matrices);
     s.WriteMatrix4Array(bw, m_inverseMatrices);
     s.WriteInt16Array(bw, m_matricesOrder);
     s.WriteStringPointerArray(bw, m_matricesNames);
     s.WriteClassArray <hkMeshBoneIndexMapping>(bw, m_indexMappings);
     bw.WriteBoolean(m_allMatricesAreAffine);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
     bw.WriteByte(0);
 }
Ejemplo n.º 2
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassPointer <hkMeshShape>(bw, m_skin);
     s.WriteMatrix4Array(bw, m_worldFromBoneTransforms);
     s.WriteStringPointerArray(bw, m_boneNames);
 }
 public virtual void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     bw.WriteInt32(m_transformSetIndex);
     bw.WriteUInt32(0);
     s.WriteUInt32Array(bw, m_transformIndices);
     s.WriteMatrix4Array(bw, m_offsets);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt32(m_inputBufferIdx);
     bw.WriteUInt32(m_outputTransformSetIdx);
     s.WriteClassArray <hclSimpleMeshBoneDeformOperatorTriangleBonePair>(bw, m_triangleBonePairs);
     s.WriteMatrix4Array(bw, m_localBoneTransforms);
 }
Ejemplo n.º 5
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteMatrix4Array(bw, m_boneFromSkinMeshTransforms);
     s.WriteUInt16Array(bw, m_transformSubset);
     bw.WriteUInt32(m_outputBufferIndex);
     bw.WriteUInt32(m_transformSetIndex);
     m_objectSpaceDeformer.Write(s, bw);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteStringPointerArray(bw, m_nodeNames);
     s.WriteMatrix4Array(bw, m_bindPose);
     bw.WriteUInt64(0);
     s.WriteMatrix4(bw, m_initSkinTransform);
 }
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     bw.WriteUInt32(m_inputBufferIdx);
     bw.WriteUInt32(m_outputBufferIdx);
     bw.WriteUInt32((uint)m_scaleNormalBehaviour);
     bw.WriteUInt32(0);
     s.WriteUInt16Array(bw, m_inputTrianglesSubset);
     s.WriteMatrix4Array(bw, m_triangleFromMeshTransforms);
     m_objectSpaceDeformer.Write(s, bw);
 }
Ejemplo n.º 8
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteStringPointer(bw, m_name);
     s.WriteClassPointer <hkReferencedObject>(bw, m_object);
     s.WriteMatrix4Array(bw, m_keyFrames);
     s.WriteClassPointerArray <hkxNode>(bw, m_children);
     s.WriteClassArray <hkxNodeAnnotationData>(bw, m_annotations);
     s.WriteSingleArray(bw, m_linearKeyFrameHints);
     s.WriteStringPointer(bw, m_userProperties);
     bw.WriteBoolean(m_selected);
     bw.WriteBoolean(m_bone);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
 }
Ejemplo n.º 9
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteUInt16Array(bw, m_tetrahedraGrid);
     s.WriteByteArray(bw, m_gridCells);
     s.WriteMatrix4Array(bw, m_tetrahedraEquations);
     bw.WriteUInt64(0);
     s.WriteTransform(bw, m_localFromWorld);
     s.WriteTransform(bw, m_worldFromLocal);
     m_objAabb.Write(s, bw);
     s.WriteVector4(bw, m_geomCentroid);
     s.WriteVector4(bw, m_invCellSize);
     bw.WriteUInt16(m_gridRes);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
     bw.WriteUInt16(0);
 }
Ejemplo n.º 10
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     s.WriteClassArray <hclSkinOperatorBoneInfluence>(bw, m_boneInfluences);
     s.WriteUInt16Array(bw, m_boneInfluenceStartPerVertex);
     s.WriteMatrix4Array(bw, m_boneFromSkinMeshTransforms);
     s.WriteUInt16Array(bw, m_usedBoneGroupIds);
     bw.WriteBoolean(m_skinPositions);
     bw.WriteBoolean(m_skinNormals);
     bw.WriteBoolean(m_skinTangents);
     bw.WriteBoolean(m_skinBiTangents);
     bw.WriteUInt32(m_inputBufferIndex);
     bw.WriteUInt32(m_outputBufferIndex);
     bw.WriteUInt32(m_transformSetIndex);
     bw.WriteUInt16(m_startVertex);
     bw.WriteUInt16(m_endVertex);
     bw.WriteBoolean(m_partialSkinning);
     bw.WriteBoolean(m_dualQuaternionSkinning);
     bw.WriteByte(m_boneGroupSize);
     bw.WriteByte(0);
 }
Ejemplo n.º 11
0
 public override void Write(PackFileSerializer s, BinaryWriterEx bw)
 {
     base.Write(s, bw);
     m_characterControllerSetup.Write(s, bw);
     bw.WriteUInt64(0);
     s.WriteVector4(bw, m_modelUpMS);
     s.WriteVector4(bw, m_modelForwardMS);
     s.WriteVector4(bw, m_modelRightMS);
     s.WriteClassArray <hkbVariableInfo>(bw, m_characterPropertyInfos);
     s.WriteInt32Array(bw, m_numBonesPerLod);
     s.WriteClassPointer <hkbVariableValueSet>(bw, m_characterPropertyValues);
     s.WriteClassPointer <hkbFootIkDriverInfo>(bw, m_footIkDriverInfo);
     s.WriteClassPointer <hkbHandIkDriverInfo>(bw, m_handIkDriverInfo);
     s.WriteClassPointer <hkReferencedObject>(bw, m_aiControlDriverInfo);
     s.WriteClassPointer <hkbCharacterStringData>(bw, m_stringData);
     s.WriteClassPointer <hkbMirroredSkeletonInfo>(bw, m_mirroredSkeletonInfo);
     s.WriteInt16Array(bw, m_boneAttachmentBoneIndices);
     s.WriteMatrix4Array(bw, m_boneAttachmentTransforms);
     bw.WriteSingle(m_scale);
     bw.WriteUInt64(0);
     bw.WriteUInt32(0);
 }