上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 36 下一页

2011年11月9日

视图刷新

摘要: with redraw off 阅读全文

posted @ 2011-11-09 13:25 盖天00 阅读(152) 评论(0) 推荐(0)

2011年11月8日

这句话是我在渲染 程序贴图用到的代码

摘要: superclassof meditMaterials[1]map_sample =renderMap meditMaterials[1] size:[200,200] scale:200TestMapSamples.bmp_slot1.bitmap =map_sample 阅读全文

posted @ 2011-11-08 16:54 盖天00 阅读(173) 评论(0) 推荐(0)

2011年11月1日

关掉在打开的做法很有必要

摘要: rollout unnamedRollout "Untitled" width:162 height:300( button btn1 "Button" pos:[35,48] width:73 height:80 on btn1 pressed do ( DestroyDialog unnamedRollout for i in 1 to 199 do print i CreateDialog unnamedRollout )) CreateDialog unnamedRollout 阅读全文

posted @ 2011-11-01 14:51 盖天00 阅读(148) 评论(0) 推荐(0)

2011年10月31日

。net 换字符

摘要: MaxString = "abcdefg"DotNetString = DotNetObject "System.String" MaxString DotNetString.Replace "a" "z" --返回值就是MaxScript中的StringDotNetString.toString() --从.net中取值 阅读全文

posted @ 2011-10-31 11:09 盖天00 阅读(206) 评论(0) 推荐(0)

2011年10月29日

这样的结构很常用

摘要: for i in 1 to 10 do ( for a in 1 to 30 do ( if a == 10 do exit print a ) print i ) 阅读全文

posted @ 2011-10-29 15:59 盖天00 阅读(151) 评论(0) 推荐(0)

2011年10月25日

把组 保存

摘要: fn save_by_Group sel dir = ( local ss = #(), s for i in sel where isGroupHead i do ( setGroupOpen i false append ss i ) for i in ss do ( s = for o in i.children collect i append s i saveNodes s (dir+i.name+".max") quiet:on ))save_by_Group objects "d:\\" 阅读全文

posted @ 2011-10-25 09:01 盖天00 阅读(203) 评论(0) 推荐(0)

2011年10月24日

创建 平面求交点

摘要: 如果两个平面只是方向不同的话,它们与射线的交点应该是相等的吧?下面算法计算出来的不相等吧? 平面方程为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)

2011年10月21日

3dmas 的硬显示 这个就是其中既各个 最后两个是 对应显示操作的

摘要: meditMaterials[3].showInViewport= true meditMaterials[3].showInViewport= falseokMtlForScene $.materialshowHWTextureMap $.material trueenableHardwareMaterial $.material false 阅读全文

posted @ 2011-10-21 18:48 盖天00 阅读(180) 评论(0) 推荐(0)

看看显卡信息 这个很全

摘要: IViewportShadingMgr.ReviewGPUDiagnostics() 阅读全文

posted @ 2011-10-21 18:42 盖天00 阅读(167) 评论(0) 推荐(0)

设置到基础层

摘要: modPanel.setCurrentObject $.baseObject 阅读全文

posted @ 2011-10-21 18:29 盖天00 阅读(143) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 36 下一页

导航