View Full Version : ASE Loading Help, PLEASE =)

Oliver LS
03-11-2002, 11:55 AM
I've been reading through alot of the archives here, and looking at lots of examples of code, and been having problems actually finding any real help, so here goes!

All I need is a .ASE loader, that handles textures. Nothing with lighting, nothing with materials, nothing fancy, nothing faster than the speed of sound, nothing *USING MFC*!!!

I've looked around on wotsit.org also, and they don't list any .ASE format information as a lot of these past posts have stated. Any help would be greatly appreciated, thank you in advance.


El Jefe
03-11-2002, 12:32 PM
Well, there could be multiple materials in each .ASE file....each material being assigned to any of the various geometry surfaces contained in the file ( there can be one or more of these ). And each material presumable has one ( possibly more ) images applied to it...

So, do you just need to get a list of images specified by the file.....without regard for which material it may correspond to....and without regard for which materials are applied to a given geometry surface?

Oliver LS
03-11-2002, 12:35 PM
I didn't even know that much, but yes I'd need to get all of the material information, all of the texture information, and all of the which-material-is-applied-to-what information. I do *not* need any lighting information, camera information, etc.

Thank you very much, any help is really appreciated... I've been deadlocked on models for about 3 weeks now =

El Jefe
03-11-2002, 12:42 PM
Is it ok to e-mail you regarding this issue?

Oliver LS
03-11-2002, 12:48 PM

03-12-2002, 02:08 AM
ASE is very simple.....but i remember me searching for something useful for handling ASE in net and i didn't find http://www.opengl.org/discussion_boards/ubb/frown.gif.....

the only one i got was going through each object in the scene doing so many sprintf's to find single word everytime starting from the beginning of the file......
if u wan't i'll send you my which is correct and fast - that's important cause ASE are big files......

and u should know 3DSMAX makes lot's of bugs when saving ASE's, like wrong normal vectors etc....

[This message has been edited by MickeyMouse (edited 03-12-2002).]

03-12-2002, 03:31 AM

Maybe the best way to start is to create any simple object (with textures or anything you need...) in 3DSMAX, export it as an ASE file and afterwards open the file with a text editor and learn what everything means.

OK, I will help you with some tags...

All materials are defined in here.

A 3DSMAX Object, of course...

All the vertexs in this object are defined in here.

All the faces in this object are defined in here. The face vertexs are referenced (indexed) to the ones in the list above.
The first face could be:
*MESH_FACE 0: A: 0 B: 2 C: 3 AB: 1 BC: 1 CA: 0 *MESH_SMOOTHING 2 *MESH_MTLID 1

*MESH_MTLID is the material identifier that makes reference to the material list above.

A list of texture coordinates.

All the faces in this object with texture coordinates. The face coords are referenced (indexed) to the ones in the list above (as happened with the vertexs coordinates).

and other things...


Once you have understood the file format you will be able to make a loader. It's very easy.

Good luck,

03-14-2002, 01:30 PM
Try www.gametutorials.com (http://www.gametutorials.com) i think there is some good docs on .ASE


Oliver LS
03-15-2002, 01:15 AM
Thanks alot for your help everyone, I got a loader working just fine now!

03-15-2002, 01:27 AM
and u should know 3DSMAX makes lot's of bugs when saving ASE's, like wrong normal vectors etc....

nope.. no errors, just that verticex are saved in worldspace coords, and normals in localspace, just apply the inverse of the geoms rotation on the normals and it would be fine.