C# 클래스 TressFXLib.HairMesh

This is the hair mesh class. It contains hair information for a single "hair submesh".
파일 보기 프로젝트 열기: kennux/TressFXUnity 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
bothEndsImmovable bool

공개 메소드들

메소드 설명
ExportAsTFX ( String path, int followHairPerGuideHair, float maxRadiusAroundGuideHair ) : void

Exports this hair mesh as tressfx plaintext file.

PrepareSimulationParameters ( int &hairIndexCounter ) : void

This function will get used by importers for example if there were only strand vertex positions available. It will calculate everything inside of the HairStrand and HairStrandVertex based off the vertex positions. This function assumes that hair strands always have atleast 2 vertices! and atleast 2 strands. NOTE: This is currently non-functional, it seems like somewhere some rounding issues happen that will make the output of this unusable. The logic was taken from AMD's AssetConverter. I already spent some days of debugging on this but there is something really weird going on here. My best guess is that C++ floats are more precise than C# floats for this calculations.

메소드 상세

ExportAsTFX() 공개 메소드

Exports this hair mesh as tressfx plaintext file.
public ExportAsTFX ( String path, int followHairPerGuideHair, float maxRadiusAroundGuideHair ) : void
path String
followHairPerGuideHair int
maxRadiusAroundGuideHair float
리턴 void

PrepareSimulationParameters() 공개 메소드

This function will get used by importers for example if there were only strand vertex positions available. It will calculate everything inside of the HairStrand and HairStrandVertex based off the vertex positions. This function assumes that hair strands always have atleast 2 vertices! and atleast 2 strands. NOTE: This is currently non-functional, it seems like somewhere some rounding issues happen that will make the output of this unusable. The logic was taken from AMD's AssetConverter. I already spent some days of debugging on this but there is something really weird going on here. My best guess is that C++ floats are more precise than C# floats for this calculations.
public PrepareSimulationParameters ( int &hairIndexCounter ) : void
hairIndexCounter int
리턴 void

프로퍼티 상세

bothEndsImmovable 공개적으로 프로퍼티

If this is set to true both ends of all strands inside of this hair mesh are not movable by physics.
public bool bothEndsImmovable
리턴 bool