首页 > TAG信息列表 > aspectRatio

OSG 嵌入到Qt 后 模型拉伸变形的解决方法

double aspectRatio = static_cast<double>(this->width()) / static_cast<double>(this->height() ); getOsgViewer()->getCamera()->setProjectionMatrixAsPerspective(30.0, aspectRatio, 1.0, 1000.0); this指的是当前显示的控件,就是osgQOpenGLWidget的对