查看: 2578|回复: 2

关于CompositeViewer的问题

[复制链接]

该用户从未签到

发表于 2008-7-12 20:17:54 | 显示全部楼层 |阅读模式
我用CompositeViewer加入一个view,然后发现设置其漫游方式无法正常工作!请版主帮我解决!
sg::ref_ptr<osgGA::KeySwitchMatrixManipulator> keyswitchManipulator = new osgGA::KeySwitchMatrixManipulator;

                keyswitchManipulator->addMatrixManipulator( '1', "Trackball", new osgGA::TrackballManipulator() );
                keyswitchManipulator->addMatrixManipulator( '2', "Flight", new osgGA::FlightManipulator() );
                keyswitchManipulator->addMatrixManipulator( '3', "Drive", new osgGA:riveManipulator() );
                keyswitchManipulator->addMatrixManipulator( '4', "Terrain", new osgGA::TerrainManipulator() );
除了TrackballManipulator,是正常的其他都是闪闪的!

该用户从未签到

发表于 2008-7-12 22:16:24 | 显示全部楼层
您所说的“闪闪”的是什么意思?
是否采用正确的方式来操作osgGA: DriveManipulator等漫游器(有些漫游器并不是使用鼠标拖曳来工作的,而是使用键盘和鼠标结合)?

该用户从未签到

 楼主| 发表于 2008-7-14 09:32:08 | 显示全部楼层
array,你好,问题我已经解决了,忘了一句mViewer->realize(),还没具体研究为什么!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表