QQ聊天

Max2008之前版本旋转视图的函数

Fn RotateViewPort inputAxis inputDegrees =
(
ViewPortMatrix
= inverse(ViewPort.GetTM())
RotationMatrix
= (quat inputDegrees inputAxis ) as Matrix3
ViewPortMatrix
*= RotationMatrix
ViewPort.SetTM (inverse ViewPortMatrix)
)

RotateViewPort [
0,0,1] -1
posted @ 2011-07-08 10:44  SITT  阅读(276)  评论(0编辑  收藏  举报
QQ聊天