C# Class ME3Explorer.Unreal.Classes.SkeletalMeshOld

Show file Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Properties

Property Type Description
DefaultTex Texture
DirectXSections List
Mesh SkelMesh
Tail List
bonecount int
memory byte[]
memsize int
pcc ME3Package
props List
psk PSKFile
readerpos int

Public Methods

Method Description
ApplyTangents ( LOD l, int edge, System.Vector4 tan, System.Vector4 bitan ) : void
CalcTangentSpace ( LOD l ) : void
CalcTangentSpace2 ( LOD l ) : void
ComputeTangentAndBinormal ( System.Vector2 tv, System.Vector3 v ) : System.Vector3[]
Deserialize ( ) : void
DrawMesh ( Device device ) : void
Dump ( ) : byte[]
ExportToPsk ( string path, int LOD ) : void
FloatToHalf ( float f ) : UInt16
GenerateDirectXMesh ( int LOD ) : void
GetChild ( TreeNode tn ) : TreeNode
HalfToFloat ( UInt16 val ) : float
ImportFromPsk ( string path, int lod ) : void
InvSqrt ( float x ) : float
ReadBones ( ) : void
ReadBounds ( ) : void
ReadLODs ( ) : void
ReadMaterial ( ) : void
ReadOrgRot ( ) : void
ReadQuad ( int pos ) : Quad
ReadRotator ( int pos ) : Rotator
ReadTail ( ) : void
ReadVector ( int pos ) : Vector3
Serialize ( ) : byte[]
SerializeToBuffer ( ) : byte[]
SerializeToFile ( string path ) : void
SkeletalMeshOld ( ME3Package Pcc, int index ) : System
ToTree ( ) : TreeNode
ToVec3 ( List points ) : List
ToVec3 ( PSKFile p ) : Vector3
ToVec3 ( List e ) : Vector3[]
VecSqr ( Vector3 v ) : float
WriteBoneSer ( MemoryStream m ) : void
WriteBones ( PSKFile PSK ) : PSKFile.PSKContainer
WriteBounds ( MemoryStream m ) : void
WriteLODs ( MemoryStream m ) : void
WriteMaterials ( MemoryStream m ) : void
WriteOrgRot ( MemoryStream m ) : void
WriteQuad ( MemoryStream m, Quad q ) : void
WriteRotator ( MemoryStream m, Rotator r ) : void
WriteTail ( MemoryStream m ) : void
WriteVector ( MemoryStream m, Vector3 v ) : void
WriteVector2 ( MemoryStream m, Vector2 Vector ) : void
WriteWeights ( PSKFile PSK, int lod ) : PSKFile.PSKContainer

Private Methods

Method Description
SearchNodes ( TreeNodeCollection nodes, string name ) : TreeNode
TanToStr ( int t ) : string
ToTreeBones ( TreeNode t ) : TreeNode
ToTreeBoundings ( TreeNode t ) : TreeNode
ToTreeEdges ( TreeNode t, List edges ) : TreeNode
ToTreeLODs ( TreeNode t ) : TreeNode
ToTreeMaterials ( TreeNode t ) : TreeNode
ToTreeOrgRot ( TreeNode t ) : TreeNode
ToTreeSection ( TreeNode t, LOD sec ) : TreeNode
ToTreeTail ( TreeNode t ) : TreeNode
ToTreeUnkSection ( TreeNode t, UnknownSection sec ) : TreeNode
WriteBone ( TreeNode t, PSKFile PSK ) : void
WriteChild ( TreeNode t, int index, PSKFile PSK ) : void

Method Details

ApplyTangents() public method

public ApplyTangents ( LOD l, int edge, System.Vector4 tan, System.Vector4 bitan ) : void
l LOD
edge int
tan System.Vector4
bitan System.Vector4
return void

CalcTangentSpace() public method

public CalcTangentSpace ( LOD l ) : void
l LOD
return void

CalcTangentSpace2() public method

public CalcTangentSpace2 ( LOD l ) : void
l LOD
return void

ComputeTangentAndBinormal() public method

public ComputeTangentAndBinormal ( System.Vector2 tv, System.Vector3 v ) : System.Vector3[]
tv System.Vector2
v System.Vector3
return System.Vector3[]

Deserialize() public method

public Deserialize ( ) : void
return void

DrawMesh() public method

public DrawMesh ( Device device ) : void
device Device
return void

Dump() public method

public Dump ( ) : byte[]
return byte[]

ExportToPsk() public method

public ExportToPsk ( string path, int LOD ) : void
path string
LOD int
return void

FloatToHalf() public method

public FloatToHalf ( float f ) : UInt16
f float
return System.UInt16

GenerateDirectXMesh() public method

public GenerateDirectXMesh ( int LOD ) : void
LOD int
return void

GetChild() public method

public GetChild ( TreeNode tn ) : TreeNode
tn TreeNode
return TreeNode

HalfToFloat() public method

public HalfToFloat ( UInt16 val ) : float
val UInt16
return float

ImportFromPsk() public method

public ImportFromPsk ( string path, int lod ) : void
path string
lod int
return void

InvSqrt() public method

public InvSqrt ( float x ) : float
x float
return float

ReadBones() public method

public ReadBones ( ) : void
return void

ReadBounds() public method

public ReadBounds ( ) : void
return void

ReadLODs() public method

public ReadLODs ( ) : void
return void

ReadMaterial() public method

public ReadMaterial ( ) : void
return void

ReadOrgRot() public method

public ReadOrgRot ( ) : void
return void

ReadQuad() public method

public ReadQuad ( int pos ) : Quad
pos int
return Quad

ReadRotator() public method

public ReadRotator ( int pos ) : Rotator
pos int
return Rotator

ReadTail() public method

public ReadTail ( ) : void
return void

ReadVector() public method

public ReadVector ( int pos ) : Vector3
pos int
return Vector3

Serialize() public method

public Serialize ( ) : byte[]
return byte[]

SerializeToBuffer() public method

public SerializeToBuffer ( ) : byte[]
return byte[]

SerializeToFile() public method

public SerializeToFile ( string path ) : void
path string
return void

SkeletalMeshOld() public method

public SkeletalMeshOld ( ME3Package Pcc, int index ) : System
Pcc ME3Package
index int
return System

ToTree() public method

public ToTree ( ) : TreeNode
return TreeNode

ToVec3() public method

public ToVec3 ( List points ) : List
points List
return List

ToVec3() public method

public ToVec3 ( PSKFile p ) : Vector3
p PSKFile
return Vector3

ToVec3() public method

public ToVec3 ( List e ) : Vector3[]
e List
return Vector3[]

VecSqr() public method

public VecSqr ( Vector3 v ) : float
v Vector3
return float

WriteBoneSer() public method

public WriteBoneSer ( MemoryStream m ) : void
m MemoryStream
return void

WriteBones() public method

public WriteBones ( PSKFile PSK ) : PSKFile.PSKContainer
PSK PSKFile
return PSKFile.PSKContainer

WriteBounds() public method

public WriteBounds ( MemoryStream m ) : void
m MemoryStream
return void

WriteLODs() public method

public WriteLODs ( MemoryStream m ) : void
m MemoryStream
return void

WriteMaterials() public method

public WriteMaterials ( MemoryStream m ) : void
m MemoryStream
return void

WriteOrgRot() public method

public WriteOrgRot ( MemoryStream m ) : void
m MemoryStream
return void

WriteQuad() public method

public WriteQuad ( MemoryStream m, Quad q ) : void
m MemoryStream
q Quad
return void

WriteRotator() public method

public WriteRotator ( MemoryStream m, Rotator r ) : void
m MemoryStream
r Rotator
return void

WriteTail() public method

public WriteTail ( MemoryStream m ) : void
m MemoryStream
return void

WriteVector() public method

public WriteVector ( MemoryStream m, Vector3 v ) : void
m MemoryStream
v Vector3
return void

WriteVector2() public method

public WriteVector2 ( MemoryStream m, Vector2 Vector ) : void
m MemoryStream
Vector Vector2
return void

WriteWeights() public method

public WriteWeights ( PSKFile PSK, int lod ) : PSKFile.PSKContainer
PSK PSKFile
lod int
return PSKFile.PSKContainer

Property Details

DefaultTex public property

public Texture DefaultTex
return Texture

DirectXSections public property

public List DirectXSections
return List

Mesh public property

public SkelMesh Mesh
return SkelMesh

Tail public property

public List Tail
return List

bonecount public property

public int bonecount
return int

memory public property

public byte[] memory
return byte[]

memsize public property

public int memsize
return int

pcc public property

public ME3Package pcc
return ME3Package

props public property

public List props
return List

psk public property

public PSKFile psk
return PSKFile

readerpos public property

public int readerpos
return int