admin管理员组

文章数量:1532270

2024年6月26日发(作者:)

3DS MAX标准文本导出格式ASE的文件结构

如果你正在寻找它的几何体存放在哪的话,事实上,这不是描述具体信息层级关系的图示,而是类似XML的一种

存储规范,它具有独立标签和嵌套标签,独立标签有名称和值表,而嵌套标签不仅可以嵌套子标签,还可以嵌套“子嵌

套标签”,如此递归下去。这种格式固然带来很大的灵活性,但是非常浪费时间。需要对它们全部解套然后利用一致的

算法,提供一个匹配标签名进行标签取出和迭代。

*3DSMAX_ASCIIEXPORT 200

*COMMENT "AsciiExport 版本 2.00 - Wed Sep 19 22:16:39 2007"

*SCENE {

*SCENE_FILENAME ""

*SCENE_FIRSTFRAME 0

*SCENE_LASTFRAME 100

*SCENE_FRAMESPEED 30

*SCENE_TICKSPERFRAME 160

*SCENE_BACKGROUND_STATIC 0.00000000 0.00000000 0.00000000

*SCENE_AMBIENT_STATIC 0.00000000 0.00000000 0.00000000

}

第二行使用了双引号对值进行了限定,避免被分割成子单元。我们可以假设*SCENE块还可以内嵌子块,假如存在,

便可将此子块作为独立单元进行递归分解。直到所有嵌套子块全部被遍历。

* QUICK NOTES *

This tutorial shows how to load a .Ase file. An ASE file is a 3D Studio Max ASCII file that saves all the

information in a text file instead of in binary.

The good thing about this is that it's easy to read in, as well as easy to change without having the

software. The bad thing is that it's a HUGE file size, it takes a lot longer to read in, no other programs support

it and it can't even be imported back into 3D Studio Max. I would recommend looking at this tutorial before

you look at the 3DS tutorial though. That way you can see what is actually being read in.

本文标签: 标签进行独立格式子块