基于QT使用OpenGL,加载obj模型,进行鼠标交互

上传者: gb11235 | 上传时间: 2024-04-09 15:08:14 | 文件大小: 6.48MB | 文件类型: RAR
# 功能分析(需求分析) 1. 基于QT平台,使用OpenGL进行obj文件加载显示; 2. 使用鼠标对场景进行缩放、移动、旋转交互; 本资源有对应的项目介绍,详见同名CSDN博文。《基于QT使用OpenGL,加载obj模型,进行鼠标交互》 本项目资源整体框架简单,清晰,适合初步学习使用。 基于QT的QOpenGLWidget类进行派生,对鼠标事件进行重载,使用OpenGL可编程渲染模式开发,涉及着色器程序的编写,并进行了相机、渲染器、物体类的抽象。还编写了obj文件解析类,同时还可以基于本框架进行stl文件类的编写。资源还包含两个obj测试文件,一个是小兔子bunny.obj,一个是跑车Cayman_GT.obj。 使用开发环境:qt5.15.2, MSVC2019_64bit;使用mingw也可以运行

文件下载

资源详情

[{"title":"( 30 个子文件 6.48MB ) 基于QT使用OpenGL,加载obj模型,进行鼠标交互","children":[{"title":"mainwindow.h <span style='color:#111;'> 380B </span>","children":null,"spread":false},{"title":"qrc.qrc <span style='color:#111;'> 309B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"grid.cpp <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"coorsystem.h <span style='color:#111;'> 449B </span>","children":null,"spread":false},{"title":"genericRender.h <span style='color:#111;'> 889B </span>","children":null,"spread":false},{"title":"coorsystem.cpp <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"camera.h <span style='color:#111;'> 689B </span>","children":null,"spread":false},{"title":"shader","children":[{"title":"fsrc.frag <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"vsrc.vert <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"coordinate.frag <span style='color:#111;'> 321B </span>","children":null,"spread":false},{"title":"coordinate.vert <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false}],"spread":true},{"title":"genericRender.cpp <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"objLoader.h <span style='color:#111;'> 606B </span>","children":null,"spread":false},{"title":"Common.h <span style='color:#111;'> 131B </span>","children":null,"spread":false},{"title":"ObjLoader.cpp <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false}],"spread":true},{"title":"glwidget.cpp <span style='color:#111;'> 3.63KB </span>","children":null,"spread":false},{"title":"camera.cpp <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"box.h <span style='color:#111;'> 931B </span>","children":null,"spread":false},{"title":"grid.h <span style='color:#111;'> 602B </span>","children":null,"spread":false},{"title":"box.cpp <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"glwidget.h <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false}],"spread":false},{"title":"data","children":[{"title":"Cayman_GT.obj <span style='color:#111;'> 31.70MB </span>","children":null,"spread":false},{"title":"Cube.x_t <span style='color:#111;'> 6.75KB </span>","children":null,"spread":false},{"title":"bunny_10k.obj <span style='color:#111;'> 1.39MB </span>","children":null,"spread":false},{"title":"Cube.obj <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"Cube.mtl <span style='color:#111;'> 140B </span>","children":null,"spread":false}],"spread":true},{"title":"mainwindow.cpp <span style='color:#111;'> 312B </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 172B </span>","children":null,"spread":false},{"title":"mainwindow.ui <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"vis3d.pro <span style='color:#111;'> 957B </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明