MilkShape Plugin

57For my Haxe engine i’ve created my own mesh format and made same tools
this is for MilkShape Import/Export

Download

 

The header for the mesh is:

size:Int   //size of header name(size of string)
tag:string //name of header(use the size)
id:int //id is 1478
nummaterial int //number of materials in the mesh.

//read materials
material index:
flags:int//
r:float
g:float
b:float
alpha:float

namesize:int
name:string(use the size)

haveDetail:int
namesize:int  2ª texture
name:string(use the size) 2* texture

//read mesh
numOfMesh:int
flags:int
materialIndex:int
numVertices:int
numFaces:int
numUVCoords:int

//red vertices(numVertices)

position  x,y,z:float
normal    x,y,z:float
uv0       x,y:flota
if( numUVCoords==2)
uv1       x,y:flota

//read faces (numFaces);
face0:int
face1:int
face2:int

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s