C# Class Ohana3DS_Transfigured.Ohana.Models.GenericFormats.SMD

显示文件 Open project: Quibilia/Ohana3DS-Transfigured

Public Methods

Method Description
export ( RenderBase model, string fileName, int modelIndex, int skeletalAnimationIndex = -1 ) : void

Exports a Model to the Source Model format. Note: SMD model specification doesnt support Model and Skeletal Animation on the same SMD. See: https://developer.valvesoftware.com/wiki/Studiomdl_Data for more information.

import ( string fileName ) : RenderBase.OModelGroup

Imports a Source Model from file.

Private Methods

Method Description
getMaterial ( string name ) : RenderBase.OMaterial
getString ( float value ) : string
readLine ( StreamReader reader ) : string

Method Details

export() public static method

Exports a Model to the Source Model format. Note: SMD model specification doesnt support Model and Skeletal Animation on the same SMD. See: https://developer.valvesoftware.com/wiki/Studiomdl_Data for more information.
public static export ( RenderBase model, string fileName, int modelIndex, int skeletalAnimationIndex = -1 ) : void
model RenderBase The Model that will be exported
fileName string The output File Name
modelIndex int Index of the model to be exported
skeletalAnimationIndex int (Optional) Index of the skeletal animation
return void

import() public static method

Imports a Source Model from file.
public static import ( string fileName ) : RenderBase.OModelGroup
fileName string The complete file name
return RenderBase.OModelGroup