|
±¾Ìû×îºóÓÉ nononono ÓÚ 2014-9-25 12:02 ±à¼
¾µäÀý×ÓTravelManipulator.cppÖУ¬ÎªÊ²Ã´ÒªÄ¬ÈϽǶÈÖµm_vRotation = osg::Vec3(osg:I_2, 0.0f, 0.0f);
ÄѵÀÉãÏñ»úĬÈÏÇé¿öÊÇÖ¸Ïòz = -1µÄ·½ÏòÂð
ÎÒÉèÖÃÁËTravelManipulator¿ØÖÆÆ÷µÄm_vPoisition±äÁ¿µÄÈ¡Öµ£¬µ«ÉèÖÃÈ¡ÖµÖ®ºó£¬²é¿´center¡¢eye¡¢upÈý¸öÖµ£¬»¹ÊÇ·Ö±ðΪcenter(0, 0, 0), eye(0, -1, 0), up(0, 0, 1)¡£ÕâÈý¸ö²ÎÊýµ½µ×ÊÇûÓÐÆð×÷Ó㬻¹ÊDzÎÕÕϵ²»Ò»Ñù¡£
TravelManipulator¼Ì³Ð×ÔCameraManipulator£¬CameraManipulatorĬÈÏcenter(0, 0, 0), eye(0, -1, 0), up(0, 0, 1)¡£Èç¹ûÎÒÉèÖÃm_vPosition = osg::Vec3(0, -200, -430)ºó£¬ÄÇôeyeÖµ²»Ó¦¸Ã±äΪ£¨0£¬ -200£¬ -430£©Âð |
|