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

浙公网安备 33010602011771号