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

how to ensure view direction?
how to ensure view direction?
hi,
i my code before calling odgsbasevectorizeview::update(), i am doing,
odgematrix3d eye2screen(eyetoscreenmatrix());
seteyetooutputtransform(eye2screen);
doesn't it ensure that my view direction is perpendicular to device screen i.e. in z axis?
thanks,
harsha

hi,
eyetoscreenmatrix is a product of screen and projection matrices, so doesn't contain any transformation of view direction. view direction included in worldtoeye transformation, not in eyetooutput.
so you can be sure that view direction is perpendicular to device screen if you set eyetooutput transformation to eyetoscreen.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)