@OpenGL
GeoAnt
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
OpenGL记录——用glOrtho投影
glViewport()函数和glOrtho()函数的理解 void reshape(int width, int height) { int dis = width < height ? width : height; glViewport(0, 0, dis, dis); /*这里dis应该是500*/ glMatrixModel(GL_PROJECTION);原创 2013-08-04 16:50:28 · 1419 阅读 · 0 评论 -
Opengl+Qt 可视化文字显示模糊问题
结果如下,有重影: debug原因:以下代码调用两次,注释掉一次即可(有效的原因不明,待高手指教) #if 1 376 glClearColor(settings.backgroundColor.r, settings.backgroundColor.g, 377 settings.backgroundColor.b, settings.backg原创 2014-02-12 13:51:53 · 3637 阅读 · 0 评论 -
opengl overpainting renderText paintEvent 选择
若选择opengl在paintEvent中实现,可以实现overpainting, 但将不能使用renderText函数 若在paintGL中实现,不能实现overpainting, 但可以使用renderText函数原创 2013-11-30 13:40:33 · 1007 阅读 · 0 评论 -
opengl旋转次序理解(1)
http://content.gpwiki.org/index.php/OpenGL:Tutorials:Using_Quaternions_to_represent_rotation 上面说的不清楚,更直观的是:人的头只能围绕Y转动,不能沿着X转动(人的右边手臂) void Camera::rotatex(float xrmod) { Quaternion nrot(Vec原创 2013-11-01 17:50:17 · 3397 阅读 · 0 评论 -
opengl笔记——OpenGL好资料备忘
Plane Equation 注:面可理解为:连接面上的点与原点,投影相同(为:a*x1+b*x2+c*x3) OpenGL Matrix Class (C++) Overview OpenGL fixed pipeline provides 4 different types of matrices (GL_MODELVIEW, GL_PROJECTION, GL_TEXTU原创 2013-08-05 15:45:46 · 1420 阅读 · 0 评论 -
opengl笔记——旋转,一段代码的理解
重看:opengl笔记——OpenGL好资料备忘 在找到这段代码,对理解opengl旋转很有帮助 ... glPushMatrix(); // initialze ModelView matrix glLoadIdentity(); // First, transform the camera (viewing matrix) from world space to eye spa原创 2013-09-09 02:50:34 · 1554 阅读 · 0 评论 -
opengl笔记—— glMultMatrixf() 区别 glLoadMatrixf()
能找到最好的解释来自:http://www.gamedev.net/topic/489879-glpushmatrixglpopmatrix--glloadmatrixf/ 原理: glPushMatrix didn't fail to push onto the stack; it's job is to push a copy of the current matrix onto a原创 2013-09-09 03:27:14 · 10230 阅读 · 1 评论 -
OpenGL笔记——轨迹球实现资料
OpenGL Programming/Modern OpenGL Tutorial Arcball OpenGL背景回顾篇以及实现一个轨迹球[arcball] Arcball原创 2013-08-05 18:18:59 · 2604 阅读 · 0 评论 -
OpenGL笔记——从实现理解gluLookAt
opengl 中gluLookAt函数 gluLookAt http://www.manpagez.com/man/3/gluLookAt/ 理解gluLookAt的关键是,up向量不一定与另两个向量垂直,所以需要两人次,cross原创 2013-08-05 16:53:37 · 1057 阅读 · 0 评论 -
OpenGL笔记——Marching cubes算法
Poisson Surface Reconstruction原创 2013-08-05 18:38:19 · 2020 阅读 · 0 评论 -
opengl 光照资料
OpenGL - Lighting (光照) Independently Moving the Light Now suppose you want to rotate or translate the light position so that the light moves relative to a stationary object. One way to do this is原创 2014-02-16 20:05:49 · 839 阅读 · 0 评论
分享