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