摘要: ----输出模型信息mesh01 = snapshotasmesh selection[1]out_name = ((getdir #export)+"/ee.txt")out_file = createfile out_name--点总数输出numberverts = mesh01.numverts --面总数输出numberfaces = mesh01.numfacesformat "%,%\n" numberverts numberfaces to:out_file--点位置集合for i = 1 to numberverts do (v = ge 阅读全文
posted @ 2010-07-23 21:32 softimagewht 阅读(795) 评论(0) 推荐(0)
摘要: 3dmax的导出插件是用来把做好的3d模型导出成自己引擎需要的格式的一个dll,它由3dmax加载调用.具体怎样去写一个插件,小T不多说,在3dmax的sdk里面有比较详细的介绍,在google上面也能搜索到不少的源代码,这里说的只是3dmax的数据组织方式,以及怎么获取转换3dmax的数据. 3dmax里面一个比较重要的概念就是INode,3dmax的场景模型都是由一个个的INode组成,这些INode构成一棵体系树,而各个真实的模型都是附着到一个INode上面的,3dmax的sdk提供了怎样获取INode指针,怎样获取INode的几个Matrix的方法,这个能在max的sdk里面找到... 阅读全文
posted @ 2010-07-23 16:26 softimagewht 阅读(1677) 评论(0) 推荐(0)
摘要: 3Dmax导出插件制作(译文)前言:本教材将建立一个3dMax导出插件。目的是帮助使你掌握建立MAX插件的基础知识和学习怎样从3ds max中导出场景数据。本教材一共五个部分,每一部分都带有相应源码,相应的目录如下:第一节:开始第二节:几何体第三节:灯光和纹理第四节:动画和修正第五节:定制数据注:MaxSDK 类 ,用Iderivedobject 格式MaxSDK 方法,用DoExport() 格... 阅读全文
posted @ 2010-07-23 16:24 softimagewht 阅读(2707) 评论(0) 推荐(0)
摘要: -- export by sssa2000macroScript ExportGeo category:"HowTo2"( fn GetGeometry o = ( Superclassof o == Geometryclass and classof o != TargetObject ) fn DumpMaterial m file= ( --只对Standard类型的材质处理 --获得... 阅读全文
posted @ 2010-07-23 16:10 softimagewht 阅读(331) 评论(0) 推荐(0)
摘要: macroScript ImportGeo category: "HowTo2"( --从文件中读入某个分割符 后面 的数据 --FileStream:文件句柄 --needload :储存读取后的值的变量 (string or value) --spliter:分隔符(string) --bReadLine: 是否读取分隔符后所有的数据 1表示读取后面所有 fn LoadData FileStr... 阅读全文
posted @ 2010-07-23 16:09 softimagewht 阅读(339) 评论(0) 推荐(0)
摘要: Designing a tool: 3D ExportersIt seems like most exporters I come across are designed to export everything in the currently loaded scene in 3D Studio Max, Maya, Lightwave, and so on, but within the limits of the system the programmer designed. If anything in the scene is hidden, they don't expor 阅读全文
posted @ 2010-07-23 16:03 softimagewht 阅读(530) 评论(0) 推荐(0)
摘要: There's a common feeling in the game industry that many programmers don't 'get' artists, and visa versa. This often results in artists making fun of programmers for speaking geek, and programmers maki... 阅读全文
posted @ 2010-07-23 16:01 softimagewht 阅读(311) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2010-07-23 15:58 softimagewht 阅读(62) 评论(0) 推荐(0)