几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】how to ensure view direction (http://www.dimcax.com/hust/showthread.php?t=16659)

yang686526 2009-05-06 02:33 PM

【转帖】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.


所有的时间均为北京时间。 现在的时间是 09:50 AM.