查看单个帖子
旧 2009-05-07, 05:12 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】ransformations

transformations
transformations
should all the matrices in the transform stack be applied when transfroming a geometry, or just the top matrix in the stack?
regards
steve
well, you have 2 choices -
one is to push the matrices in the stack as is.
then when you have to apply transformation, to multiply from the bottom to the top of the stack.
but it is quite useless.
so the second (much clearer): when you push a matrix in the stack, always multiply it to the current top of stack. then when you need to apply the trasnformation, use only the top of the stack.
i would reccommend the second one. faster and cleaner.
regards
chudomir
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)