English 中文(简体)
光谱和蓝皮书中使用一流式
原标题:The use of column-major format in the spec and blue book
  • 时间:2011-11-11 09:47:31
  •  标签:
  • opengl

我刚刚读过一个开放的GLFAQ:。 http://www.opengl.org/resources/faq/ Techno/transformations.htm

Look at their section entitled "9.005 Are OpenGL matrices column-major or row-major?" Toward the bottom it says:

“因此,在光谱和蓝皮书中使用一栏jor格式,在开放式GL方案拟定社区造成了无休止的混乱。 Column-major的 not表示,矩阵不会被记为方案管理员。

Now, I ve been going out of my way to always pass matrix data to OpenGL in column-major order so as not to waste OpenGL s processing time on transpose operations. But does this FAQ s answer imply that I don t need to be doing that?

最佳回答

土木结构本身已经过时。 在技术方面,与开放式G-3公司一样,可以通过确定transpose>参数(glUniformMatrix)来通过按行顺序排列的矩阵表。

然而,我个人认为,一栏主要为: 它允许直接接触协调系统(翻译)的基本病媒。 审视你典型的转变矩阵

X_x Y_x Z_x T_x
X_y Y_y Z_y T_y
X_z Y_z Z_z T_z
W_a W_b W_c W_w

X、Y和Z是协调系统的基本载体,你们重新转化成T,被抵消。

现在看看着开放式GL所使用的指数

0 4 8 c
1 5 9 d
2 6 a e
3 7 b f

页: 1 你们可以直接接触他们,把他们带给病媒操纵功能,如病媒操纵功能。

float vec4_length3(float v[4]);

in a direct way:

float M[16] = {...};

float T_length = vec4_length3(&M[c]);

instead of first having to scrap those vectors from the matrix piece by piece.

问题回答

暂无回答




相关问题
OpenGL 3D Selection

I am trying to create a 3D robot that should perform certain actions when certain body parts are clicked. I have successfully (sort of) implemented picking in that if you click on any x-plane part, it ...

CVDisplayLink instead of NSTimer

I have started to implement cvDisplayLink to drive the render loop instead of nstimer, as detailed in this technical note https://developer.apple.com/library/archive/qa/qa1385/_index.html Is it ...

Can the iPhone simulator handle PVR textures?

I have a really weird problem with PVR textures on the iPhone simulator- the framerate falls through the floor on the iPhone simulator, but on the iPhone itself it works just fine. Has anyone had any ...

Calculate fps (frames per second) for iphone app

I am using an opengl es iphone application. What is the most accurate way to calculate the frames per second of my application for performance tuning?

Java - Zoom / 3D Data Visualization Libraries

What are the best libraries/frameworks for doing 3D and/or Zoom interfaces in Java? I d like to be able to do some prototyping of creating new types of interfaces for navigating within data and ...

FLTK in Cygwin using Eclipse (Linking errors)

I have this assignment due that requires the usage of FLTK. The code is given to us and it should compile straight off of the bat, but I am having linking errors and do not know which other libraries ...

热门标签