|
高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|