随笔分类 -  盖天解释

1 2 下一页

创建 平面求交点
摘要:如果两个平面只是方向不同的话,它们与射线的交点应该是相等的吧?下面算法计算出来的不相等吧? 平面方程为Ax + By + Cz + D = 0; 平面的单位法向量为N(A, B, C);射线表示为P = Org +Dir*step; Dir为射线的方向,已经规格化。Org为原点把射线的方程代入平面方程可以得step = -(DotProduct(N, Org)+D)/(DotProduct(N, Dir);平面的参数如下:A = 1; B = 0; C = 0; D = -7;A = -1;B = 0; C = 0; ... 阅读全文

posted @ 2011-10-24 17:03 盖天00 阅读(218) 评论(0) 推荐(0)

思路错了这样的问题应该子啊导入导出上下功夫
摘要:---法线问题基本是通过角度判断--- normal*a.*正常的*,*普通的* problem*n.*问题,疑难* form*n.*形式*,*形状*vt.*形成* verdict*n.*裁决*,*定论* ---/* polyop.getFaceSelection $p_22 = polyop.getFaceNormal $ 19 --node:<node=unsupplied> p_14 = polyop.getFaceNormal $ 151 --node:<node=unsupplied> acos (dot p_22 p_14) */---可以通过面的角度进行, 阅读全文

posted @ 2011-10-21 10:36 盖天00 阅读(206) 评论(0) 推荐(0)

数组转成 位数组 这个很好用。
摘要:bitarray 阅读全文

posted @ 2011-10-17 16:15 盖天00 阅读(181) 评论(0) 推荐(0)

用 脚本编辑器读脚本 也是编辑脚本
摘要:edit "C://Documents and Settings//Administrator//桌面/3.ms" 阅读全文

posted @ 2011-10-13 15:08 盖天00 阅读(212) 评论(0) 推荐(0)

转一个。
摘要:Try(DestroyDialog UVWMAPS) Catch()rollout UVWMAPS "UVW" width:252 height:16(spinner spnuvw "" pos:[23,0] width:57 height:16 range:[0,999999,0]button btn500 "500" pos:[82,0] width:25 height:16button closed "box" pos:[0,0] width:23 height:16 border:falsebutton b 阅读全文

posted @ 2011-09-24 10:57 盖天00 阅读(226) 评论(0) 推荐(0)

导入3ds的一些操作, 里面有修改器中没有的东西,
摘要:--utility threedeeesimporter "Import 3ds Sequence"rollout rol_UVRandomRotate "UV Rotate" ---借用一下头 (---导入3ds 格式。---导入权证的办法bitmap logo filename:"mondolabs.bmp" --图片显示 觉得没有什么。只是一个解释。local objbasename = "3dsobj" --名字的显示。button doit "Import"on doit presse 阅读全文

posted @ 2011-09-11 11:23 盖天00 阅读(391) 评论(0) 推荐(0)

max 角下显示函数。
该文被密码保护。

posted @ 2011-09-10 18:36 盖天00 阅读(3) 评论(0) 推荐(0)

--这个工具首先是对uv进行操作的。首先是要 hold 住在进行操作。
摘要:--******************************************************************************************************-- Created: 05-05-2011-- Last Updated:05-05-2011-- Version:1.0---- Author : Kostadin Kotev / miau_u@yahoo.com /-- Version: 3ds max 2009 (should work in older versions too!)---- Discription:-- Rand 阅读全文

posted @ 2011-09-10 10:07 盖天00 阅读(245) 评论(0) 推荐(0)

3dmax 集会成员表示形式。
摘要:object1 = Cylinder()object2 = Box()object3 = OmniLight()obj_array = #(object1, object2, object3)new_ass = assemblyMgr.assemble obj_array name:"合并后" classDesc: point --Dummy --- 这里必须要是一个虚拟类obj_arrayassemblyMgr.Disassemble obj_arrayappend obj_array $Test01assemblyMgr.Disassemble obj_array -- 阅读全文

posted @ 2011-09-08 16:25 盖天00 阅读(176) 评论(0) 推荐(0)

转换到正交视图的算法。
摘要:--- 在高版本中 出现了box盒 用于模拟正交视图。 这里分享他的算法。---顶视图viewport.setTM (matrix3 [1,0,0] [0,1,0] [0,0,1](viewport.getTM()).row4)--前视图viewport.setTM (matrix3 [1,0,0] [0,0,-1] [0,1,0](viewport.getTM()).row4)--左视图viewport.setTM (matrix3 [0,0,-1] [-1,0,0] [0,1,0] (viewport.getTM()).row4) 阅读全文

posted @ 2011-09-05 15:05 盖天00 阅读(261) 评论(0) 推荐(0)

解释脚本语言 计算两个向量的夹角度数。
摘要:A face always has 3 vertices.--一个面总是有3 个点构成Each pair of vertices define one of the 3 edges of the face, and at the same time can be seen as a vector--每一对点 看看做是连着3 条变 还有就是一个面。同时 很多时候我们是吧他看做一个向量。every vertex is already a vector--每个点都能看做是一个向量。and the edge vector connecting two vertices can be calculate 阅读全文

posted @ 2011-09-05 14:32 盖天00 阅读(2713) 评论(0) 推荐(0)

UVtool 工具解释1
摘要:appendIfUnique 是为了保证数组的唯一性, 所以这个还是很好的。但是在2008 之上应用。所以这个要进行处理。ps = createOLEobject "Photoshop.Application" ---在max 里面打开某个软件 就是这个函数了。--对于别的我也差别找newbitmaps=getclassinstances Bitmaptexture target:i.material --可以返回 一个物体不管使用了什么东西都是 一样的(返回材质贴图)---但是他是2011 新加入的,所以这里也是不可用的, 哭。不是9 里面也有只是在2011 中进行了加入 阅读全文

posted @ 2011-09-02 13:02 盖天00 阅读(340) 评论(0) 推荐(0)

缩放矩阵, 这里面有关于矩阵的 种种操作 这个要学下 很有用
摘要:fReflection = scalematrix (FetchReflection flip) 阅读全文

posted @ 2011-08-19 10:38 盖天00 阅读(212) 评论(0) 推荐(0)

这个非常好用,用数字和字符访问路径,效果很好,
摘要:symbolicPaths.getPathValue {<index> | <string>} 阅读全文

posted @ 2011-07-25 17:48 盖天00 阅读(134) 评论(0) 推荐(0)

dos 外部操作系类命令处理方式,这个效果很好。用的时候就从这里找吧,
摘要:DOSCommand 阅读全文

posted @ 2011-07-25 17:14 盖天00 阅读(156) 评论(0) 推荐(0)

路径的相关操作用的时候在这里看
摘要:pathConfig.GetDir 和 GetDir 用法是一样的 但是 pathConfig.GetDir 又引出了很多的东西pathConfig.doProjectSetupSteps() 用于浏览文件夹操作,pathConfig.doProjectSetupStepsUsingDirectory "c:\\" 改变使用路径。pathConfig.getCurrentProjectFolder() --返回当前的文件路径。pathConfig.getCurrentProjectFolderPath() 返回当前的文件夹定义文件pathConfig.getProjectF 阅读全文

posted @ 2011-07-25 16:46 盖天00 阅读(214) 评论(0) 推荐(0)

关于系统的操作全在这里了。这个看起来很重要。
摘要:View Code url = sysInfo.tempdir as string; --系统的内部储存 阅读全文

posted @ 2011-07-25 13:48 盖天00 阅读(137) 评论(0) 推荐(0)

两句话的区别在于目录的不同。
摘要:--调用这里的脚本进行显示,透视我也明白了 ("$userScripts\\ToTex\\Totex_Header.ms") 和("$Scripts\\ToTex\\Totex_Header.ms") 阅读全文

posted @ 2011-07-25 13:06 盖天00 阅读(158) 评论(0) 推荐(0)

点边同事移除的办法处理。
摘要:View Code /*DissolveEdge.ms over comes the problem of leaving the old vertices behind when you remove an edge using the edible poly command... - this should only be used on edge loops as results will be undesirable otherwise - select an edge loop and run the script...both the edges and the correspon 阅读全文

posted @ 2011-07-15 10:19 盖天00 阅读(141) 评论(0) 推荐(0)

关于旋转的变换处理方法。
摘要:View Code /*Script: Cycle_MOVESummary:Cycles 'Move mode' back and forth between 'View' and 'Local' coordinate space. Author: Chris Harvey*/---2011.7.15 盖天解释 --做视图坐标还有就是 自身的坐标的处理方法( max move --改成移动的操作方式 if getRefCoordSys() == #hybrid then setRefCoordSys #local else setRefCoord 阅读全文

posted @ 2011-07-15 10:02 盖天00 阅读(135) 评论(0) 推荐(0)

1 2 下一页

导航