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_TEXTURE and GL_COLOR) and transformation routines for these matrices;glLoadIdentity(),glTranslatef(),glRotatef(),glScalef(),glMultMatrixf(),glFrustum() andglOrtho().

These built-in matrices and routines are useful to develop simple OpenGL applications and to understand the matrix transformation. But once your application is getting complecated, it is better to manage your own matrix implementations by yourself for all movable objects. Furthermore, you cannot use these built-in matrix functions anymore in OpenGL programmable pipeline (GLSL) such as OpenGL v3.0+, OpenGL ES v2.0+ and WebGL v1.0+. You must have your own marix implementations then pass the matrix data to OpenGL shaders.

This article provides a stand-alone, general purpose 4x4 matrix class, Matrix4 written in C++, and describes how to integrate this matrix class to the OpenGL applications. This matrix class is only dependent on the sister classes;Vector3 andVector4 definedVectors.h. These vector classes are also included inmatrix.zip

注意:给出glRotate, glFrustum, glPerspective 等,等价的矩阵变换模式

OpenGL Transformation


OpenGL Normal Vector Transformation

上:解释为什么变换normal vector不能像变换点一样变换

OpenGL:Tutorials:Using Quaternions to represent rotation


飞行动力学中,roll, pitch 和 yaw 角通常分别采用符号\gamma,\alpha, 和\beta;但是为了避免混淆于欧拉角这里使用符号\theta_x,\theta_y\theta_z

任何 3 维旋转矩阵 \mathcal{M}\in\mathbb{R}^{3\times 3} 都可以用这三个角\theta_x,\theta_y, 和\theta_z 来刻画,并且可以表示为 roll, pitch 和 yaw 矩阵的乘积。



Tutorial 17 : Rotations


OpenGL:Tutorials:Picking



http://celestialcoding.com/opengl-147/opengl-ground-up-tutorial-5-adding-strafe/?prev_next=prev#new

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值