|
发表于 2009-2-11 18:51:18
|
显示全部楼层
帮你查了下osg mailing list,里面有个人想做汽车的后视镜的效果,robert的建议是这样的:
For the timing being one could use osgViewer::Viewer in your case by
making the rear-view mirror a slave Camera, or a nested Camera being
placed in the scene graph. The osghud example should provide some
inspiration as it has support for doing HUD as part of the scene
graph, as part of osgViewer::Viewer as a slave Camera, or as a
separate View in CompositeViewer.
我觉得他的意思大概是 在viewer下面加多一个slave camera 来渲染镜子,然后用hud的方式加到场景中。不过这样会听影响速度的(降一半的fps)。不过这是07年的事了。至于后来有没有什么好方法我也不知道。我是新手所以也帮不上多少忙,抱歉。
原文的连接在:
http://lists.openscenegraph.org/ ... -August/000489.html |
|