Archived

This topic is now archived and is closed to further replies.

Corniax

.ase file

Recommended Posts

I have finished importing mesh data from .ase file, but I don''t know how to convert the NODE_TM using dx8. I don''t know exactly TM is and what is the function of row pos rotaxis rotangle. They seems related to the location of an object. But how can I actually coding with these data. *TM_ROW0 1.0000 0.0000 0.0000 *TM_ROW1 0.0000 1.0000 0.0000 *TM_ROW2 0.0000 0.0000 1.0000 *TM_ROW3 0.1229 0.6238 0.0000 *TM_POS 0.1229 0.6238 0.0000 *TM_ROTAXIS 0.0000 0.0000 0.0000 *TM_ROTANGLE 0.0000 *TM_SCALE 1.0000 1.0000 1.0000 *TM_SCALEAXIS 0.0000 0.0000 0.0000 *TM_SCALEAXISANG 0.0000 pls, I have searched thr the forum and couldn''t find any information about what AB: BC: CA: is. for texture mapping? or something else? I got an sample program using .ase, but it only skip those data. *MESH_FACE 0: A: 0 B: 2 C: 3 AB: 1 BC: 1 CA: 0 *MESH_SMOOTHING 2 *MESH_MTLID 1

Share this post


Link to post
Share on other sites
Well I never worked with .ase files, but let me see if i can help. You can skip all this data usually they're only used by the modelling program to load the model faster, but here's what they are...

*TM_ROW0 1.0000 0.0000 0.0000
*TM_ROW1 0.0000 1.0000 0.0000
*TM_ROW2 0.0000 0.0000 1.0000
*TM_ROW3 0.1229 0.6238 0.0000

These four line are for a 4x4 transformation matrix (the last column is not included b/c it's always (in order from top to bottom) 0,0,0,1) to translate the local coordinates (the ones in the mesh data) to world coordinates. You'll probably want to ignore this b/c you'll probably be building your own world.

*TM_POS 0.1229 0.6238 0.0000

This is the object's origin in world coordinates. Once again ignore it.

*TM_ROTAXIS 0.0000 0.0000 0.0000

This tells you that the object's point of rotation is around the point (0,0,0)

*TM_ROTANGLE 0.0000

The angle the object is rotated at.

*TM_SCALE 1.0000 1.0000 1.0000
*TM_SCALEAXIS 0.0000 0.0000 0.0000
*TM_SCALEAXISANG 0.0000

Something to do with scaling. I know the first line is what each vertex in the mesh data is multiplied by in order to scale the object (in this case the object won't be scaled). I got no clue what the second two lines are for.


If all your interested in is rendering the object textured, all you need is the mesh data and the texture coordinates.



Digital Radiation


Edited by - +AA_970+ on January 29, 2001 2:09:04 PM

Share this post


Link to post
Share on other sites