osg for android 学习之九:相机
16lz
2021-01-23
Camera设置viewMatrix和projectionMatrix,使用setViewMatrix和setProjectionMatrix不管用,原因可能是:
If you are setting your own view matrix then do not register a camera manipulator with the viewer, and avoid calling viewer.run() as it’ll attach one automatically, so just use an expanded frame loop. i.e.
viewer.realize();
while(!viewer.done())
{
Viewer.getCamera->setViewMatrix(viewMatrix);
Viewer.getCamera->setProjectionMatrix(projectionMatrix);
Viewer.frame();
}
更多相关文章
- Android下基于OpenGL的程序会发生纹理丢失的原因
- Android实现开机自启动及开机自启动失败原因
- imageButton被边框包围的原因、解决办法
- Android 5.0使用android:onClick属性出现崩溃的原因及解决方案
- android 工程里缺少 R.java 文件原因和解决方法
- 将服务器端字符读取至android的文本控件,换行符变成了黑方块的原
- Android build失败 原因总结:
- android 4.3之前的版本 播放hls获取不到总时长的原因