12 2019 档案

摘要:一、使用lookat函数处理摄像头问题 widget需要做一些修改,支持按钮wsadqe改变摄像头视角,鼠标左键和滚轮也可以改变位置 #include "widget.h" #include "ui_widget.h" GLuint VBO, VAO, EBO; Widget::Widget() { 阅读全文
posted @ 2019-12-26 19:00 习惯就好233 阅读(228) 评论(0) 推荐(0)
摘要:一、创建一个长时间运行的QT线程 #ifndef MYPRINTJOB_H #define MYPRINTJOB_H #include <QObject> #include <QThread> #include "MyOperation/myslicefile.h" class MyPrintJob 阅读全文
posted @ 2019-12-26 09:17 习惯就好233 阅读(441) 评论(0) 推荐(0)
摘要:进入3D shader头文件和cpp #ifndef SHADER_H #define SHADER_H #include <QObject> #include <QDebug> #include <QOpenGLShader> #include <QOpenGLShaderProgram> #in 阅读全文
posted @ 2019-12-23 16:04 习惯就好233 阅读(280) 评论(0) 推荐(0)
摘要:1、矩阵具有坐标变换的作用,例如:左乘一个旋转矩阵,实现点的坐标旋转,左乘一个平移矩阵实现,点的平移2、一个点可以同时串联相乘几个变换矩阵,实现坐标连续变换,根据左乘规则,右边矩阵先作用于点,作用顺序从右往左,例如:C*B*A*point(注:C,B,A分别为变换矩阵,point为一个vector3 阅读全文
posted @ 2019-12-23 13:54 习惯就好233 阅读(475) 评论(0) 推荐(0)
摘要:多纹理 #ifndef TRIANGLE_H #define TRIANGLE_H #include <QWidget> #include <QGLWidget> #include <QOpenGLShader> #include <QOpenGLShaderProgram> #include <Q 阅读全文
posted @ 2019-12-20 15:36 习惯就好233 阅读(215) 评论(0) 推荐(0)
摘要:#ifndef WIDGET_H #define WIDGET_H #include <QWidget> #include <QGLWidget> #include <QOpenGLShader> #include <QOpenGLShaderProgram> #include <QDebug> # 阅读全文
posted @ 2019-12-19 19:04 习惯就好233 阅读(327) 评论(0) 推荐(0)
摘要:#ifndef TRIANGLE_H #define TRIANGLE_H #include <QWidget> #include <QOpenGLWidget> #include <QDebug> #include <QOpenGLFunctions_3_3_Core> namespace Ui 阅读全文
posted @ 2019-12-19 13:39 习惯就好233 阅读(215) 评论(0) 推荐(0)