public virtual void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     m_collapseVertices = br.ReadBoolean();
     br.ReadUInt16();
     br.ReadByte();
     m_collapseThreshold = br.ReadSingle();
     m_vertexSelection   = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
 }
Exemple #2
0
 public virtual void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     m_collidable         = des.ReadClassPointer <hclCollidable>(br);
     m_collidingParticles = new hclVertexSelectionInput();
     m_collidingParticles.Read(des, br);
     m_drivingBoneName        = des.ReadStringPointer(br);
     m_pinchDetectionEnabled  = br.ReadBoolean();
     m_pinchDetectionPriority = br.ReadSByte();
     br.ReadUInt16();
     m_pinchDetectionRadius = br.ReadSingle();
 }
Exemple #3
0
 public virtual void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     m_transformName = des.ReadStringPointer(br);
     m_particles     = new hclVertexSelectionInput();
     m_particles.Read(des, br);
     br.ReadUInt64();
     m_planeEquationBoneSpace = des.ReadVector4(br);
     m_allowedPenetration     = new hclVertexFloatInput();
     m_allowedPenetration.Read(des, br);
     m_stiffness = new hclVertexFloatInput();
     m_stiffness.Read(des, br);
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name            = des.ReadStringPointer(br);
     m_buffer          = des.ReadClassPointer <hclBufferSetupObject>(br);
     m_vertexSelection = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
     m_updateNormals    = br.ReadBoolean();
     m_updateTangents   = br.ReadBoolean();
     m_updateBiTangents = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadByte();
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name             = des.ReadStringPointer(br);
     m_simulationMesh   = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_applyToParticles = new hclVertexSelectionInput();
     m_applyToParticles.Read(des, br);
     m_stiffness = new hclVertexFloatInput();
     m_stiffness.Read(des, br);
     m_influenceParticles = new hclVertexSelectionInput();
     m_influenceParticles.Read(des, br);
     m_particleWeights = new hclVertexFloatInput();
     m_particleWeights.Read(des, br);
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name            = des.ReadStringPointer(br);
     m_simulationMesh  = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_vertexSelection = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
     m_bendStiffness = new hclVertexFloatInput();
     m_bendStiffness.Read(des, br);
     m_useRestPoseConfig = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
 }
Exemple #7
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name = des.ReadStringPointer(br);
     m_transformSetSetup    = des.ReadClassPointer <hclTransformSetSetupObject>(br);
     m_referenceBufferSetup = des.ReadClassPointer <hclBufferSetupObject>(br);
     m_outputBufferSetup    = des.ReadClassPointer <hclBufferSetupObject>(br);
     m_vertexSelection      = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
     m_skinNormals             = br.ReadBoolean();
     m_skinTangents            = br.ReadBoolean();
     m_skinBiTangents          = br.ReadBoolean();
     m_useDualQuaternionMethod = br.ReadBoolean();
     br.ReadUInt32();
 }
 public virtual void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     m_transformName     = des.ReadStringPointer(br);
     m_particlesMaxAngle = new hclVertexSelectionInput();
     m_particlesMaxAngle.Read(des, br);
     m_particlesMinAngle = new hclVertexSelectionInput();
     m_particlesMinAngle.Read(des, br);
     br.ReadUInt64();
     m_originBoneSpace = des.ReadVector4(br);
     m_axisBoneSpace   = des.ReadVector4(br);
     m_minAngle        = new hclVertexFloatInput();
     m_minAngle.Read(des, br);
     m_maxAngle = new hclVertexFloatInput();
     m_maxAngle.Read(des, br);
     m_stiffness = new hclVertexFloatInput();
     m_stiffness.Read(des, br);
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name      = des.ReadStringPointer(br);
     m_direction = (Direction)br.ReadUInt32();
     br.ReadUInt32();
     m_simulationBuffer            = des.ReadClassPointer <hclSimClothBufferSetupObject>(br);
     m_simulationParticleSelection = new hclVertexSelectionInput();
     m_simulationParticleSelection.Read(des, br);
     m_displayBuffer          = des.ReadClassPointer <hclBufferSetupObject>(br);
     m_displayVertexSelection = new hclVertexSelectionInput();
     m_displayVertexSelection.Read(des, br);
     m_gatherAllThreshold = br.ReadSingle();
     m_gatherNormals      = br.ReadBoolean();
     br.ReadUInt16();
     br.ReadByte();
 }
Exemple #10
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name            = des.ReadStringPointer(br);
     m_simulationMesh  = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_vertexSelection = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
     m_toAnimDelay = new hclVertexFloatInput();
     m_toAnimDelay.Read(des, br);
     m_toSimDelay = new hclVertexFloatInput();
     m_toSimDelay.Read(des, br);
     m_toSimMaxDistance = new hclVertexFloatInput();
     m_toSimMaxDistance.Read(des, br);
     m_toAnimPeriod         = br.ReadSingle();
     m_toSimPeriod          = br.ReadSingle();
     m_referenceBufferSetup = des.ReadClassPointer <hclBufferSetupObject>(br);
 }
Exemple #11
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name            = des.ReadStringPointer(br);
     m_A               = des.ReadClassPointer <hclBufferSetupObject>(br);
     m_B               = des.ReadClassPointer <hclBufferSetupObject>(br);
     m_C               = des.ReadClassPointer <hclBufferSetupObject>(br);
     m_vertexSelection = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
     m_blendWeights = new hclVertexFloatInput();
     m_blendWeights.Read(des, br);
     m_mapToScurve     = br.ReadBoolean();
     m_blendNormals    = br.ReadBoolean();
     m_blendTangents   = br.ReadBoolean();
     m_blendBitangents = br.ReadBoolean();
     br.ReadUInt32();
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name                = des.ReadStringPointer(br);
     m_simulationMesh      = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_createStandardLinks = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
     m_vertexSelection = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
     m_bendStiffness = new hclVertexFloatInput();
     m_bendStiffness.Read(des, br);
     m_stretchStiffness = new hclVertexFloatInput();
     m_stretchStiffness.Read(des, br);
     m_flatnessFactor = new hclVertexFloatInput();
     m_flatnessFactor.Read(des, br);
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name            = des.ReadStringPointer(br);
     m_simulationMesh  = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_vertexSelection = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
     m_edgeSelection = new hclEdgeSelectionInput();
     m_edgeSelection.Read(des, br);
     m_ignoreHiddenEdges = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
     m_stiffness = new hclVertexFloatInput();
     m_stiffness.Read(des, br);
     m_allowedCompression = new hclVertexFloatInput();
     m_allowedCompression.Read(des, br);
     m_allowedStretching = new hclVertexFloatInput();
     m_allowedStretching.Read(des, br);
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name = des.ReadStringPointer(br);
     m_inputBufferSetupObject = des.ReadClassPointer <hclBufferSetupObject>(br);
     m_inputTriangleSelection = new hclTriangleSelectionInput();
     m_inputTriangleSelection.Read(des, br);
     m_outputBufferSetupObject = des.ReadClassPointer <hclBufferSetupObject>(br);
     m_outputVertexSelection   = new hclVertexSelectionInput();
     m_outputVertexSelection.Read(des, br);
     m_influenceRadiusPerVertex = new hclVertexFloatInput();
     m_influenceRadiusPerVertex.Read(des, br);
     m_scaleNormalBehaviour  = (ScaleNormalBehaviour)br.ReadUInt32();
     m_maxTrianglesPerVertex = br.ReadUInt32();
     m_minimumTriangleWeight = br.ReadSingle();
     m_deformNormals         = br.ReadBoolean();
     m_deformTangents        = br.ReadBoolean();
     m_deformBiTangents      = br.ReadBoolean();
     m_useMeshTopology       = br.ReadBoolean();
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name                      = des.ReadStringPointer(br);
     m_simulationMesh            = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_movableParticlesSelection = new hclVertexSelectionInput();
     m_movableParticlesSelection.Read(des, br);
     m_fixedParticlesSelection = new hclVertexSelectionInput();
     m_fixedParticlesSelection.Read(des, br);
     m_rigidFactor = new hclVertexFloatInput();
     m_rigidFactor.Read(des, br);
     m_stiffness = new hclVertexFloatInput();
     m_stiffness.Read(des, br);
     m_stretchDirection              = des.ReadVector4(br);
     m_useStretchDirection           = br.ReadBoolean();
     m_useMeshTopology               = br.ReadBoolean();
     m_allowDynamicLinks             = br.ReadBoolean();
     m_useTopologicalStretchDistance = br.ReadBoolean();
     br.ReadUInt64();
     br.ReadUInt32();
 }
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name                 = des.ReadStringPointer(br);
     m_simulationMesh       = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_referenceBufferSetup = des.ReadClassPointer <hclBufferSetupObject>(br);
     m_vertexSelection      = new hclVertexSelectionInput();
     m_vertexSelection.Read(des, br);
     m_maximumDistance = new hclVertexFloatInput();
     m_maximumDistance.Read(des, br);
     m_minNormalDistance = new hclVertexFloatInput();
     m_minNormalDistance.Read(des, br);
     m_maxNormalDistance = new hclVertexFloatInput();
     m_maxNormalDistance.Read(des, br);
     m_stiffness            = br.ReadSingle();
     m_localRangeShape      = (ShapeType)br.ReadUInt32();
     m_useMinNormalDistance = br.ReadBoolean();
     m_useMaxNormalDistance = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
 }
Exemple #17
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_name                   = des.ReadStringPointer(br);
     m_simulationMesh         = des.ReadClassPointer <hclSimulationSetupMesh>(br);
     m_collidableTransformSet = des.ReadClassPointer <hclTransformSetSetupObject>(br);
     br.ReadUInt64();
     m_gravity = des.ReadVector4(br);
     m_globalDampingPerSecond = br.ReadSingle();
     m_doNormals      = br.ReadBoolean();
     m_specifyDensity = br.ReadBoolean();
     br.ReadUInt16();
     m_vertexDensity = new hclVertexFloatInput();
     m_vertexDensity.Read(des, br);
     m_rescaleMass = br.ReadBoolean();
     br.ReadUInt16();
     br.ReadByte();
     m_totalMass    = br.ReadSingle();
     m_particleMass = new hclVertexFloatInput();
     m_particleMass.Read(des, br);
     m_particleRadius = new hclVertexFloatInput();
     m_particleRadius.Read(des, br);
     m_particleFriction = new hclVertexFloatInput();
     m_particleFriction.Read(des, br);
     m_fixedParticles = new hclVertexSelectionInput();
     m_fixedParticles.Read(des, br);
     m_enablePinchDetection = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
     m_pinchDetectionEnabledParticles = new hclVertexSelectionInput();
     m_pinchDetectionEnabledParticles.Read(des, br);
     m_toAnimPeriod = br.ReadSingle();
     m_toSimPeriod  = br.ReadSingle();
     m_drivePinchedParticlesToReferenceMesh = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadUInt16();
     br.ReadByte();
     m_pinchReferenceBufferSetup = des.ReadClassPointer <hclBufferSetupObject>(br);
     m_collisionTolerance        = br.ReadSingle();
     br.ReadUInt32();
     m_landscapeCollisionParticleSelection = new hclVertexSelectionInput();
     m_landscapeCollisionParticleSelection.Read(des, br);
     m_landscapeCollisionParticleRadius = br.ReadSingle();
     m_enableStuckParticleDetection     = br.ReadBoolean();
     br.ReadUInt16();
     br.ReadByte();
     m_stuckParticlesStretchFactor     = br.ReadSingle();
     m_enableLandscapePinchDetection   = br.ReadBoolean();
     m_landscapePinchDetectionPriority = br.ReadSByte();
     br.ReadUInt16();
     m_landscapePinchDetectionRadius = br.ReadSingle();
     m_enableTransferMotion          = br.ReadBoolean();
     br.ReadUInt16();
     br.ReadByte();
     m_transferMotionSetupData = new hclSimClothSetupObjectTransferMotionSetupData();
     m_transferMotionSetupData.Read(des, br);
     m_constraintSetSetups    = des.ReadClassPointerArray <hclConstraintSetSetupObject>(br);
     m_perInstanceCollidables = des.ReadClassArray <hclSimClothSetupObjectPerInstanceCollidable>(br);
     br.ReadUInt64();
 }