2011年9月5日

转换到正交视图的算法。

摘要: --- 在高版本中 出现了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 阅读(262) 评论(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 阅读(2719) 评论(0) 推荐(0)

颜色的成功转换,这个就是颜色的一些操作。

摘要: magenta=color 255 255 0 255 -- create colors using constructorsaqua = [0, 6, 2] as coloraqua.v /= 2. -- reduce "strength" of aqua color---这里是求出,.v 的最大的值,这个很重要。aquaaqua.alpha=128 -- set aqua to 50% opacityaqualightGray=white/4 -- create light gray color by dividing-- each component of white 阅读全文

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

导航