John Chen

04-18-2002, 06:25 PM

I had studying a program in advance97 linking of opengl official site called Projectx.c.According to some documents I had read,before OpenGL automatically generated the texture coordinates of projective texture,I have to translate the coordinate system from eye space to world space by multiplying inverse of eye viewing matrix. But in the code, it multiply the inverse of a matrix used to change the view direction of projector. I don't know wht it do this way.I have some thoghts but I don't sure if they are right.

1.The eye camera in this code is default setting so I don't need to calculate the inverse of eye viewing matrix. Because eye space is the same as world space.

2.Indeed,the inversed matrix in the code is used to change the projector's view direction. But I don't understand why using inverse matrix.

I hope anyone who understands my question can help me and correct my thoghts if wrong.Thanks.

1.The eye camera in this code is default setting so I don't need to calculate the inverse of eye viewing matrix. Because eye space is the same as world space.

2.Indeed,the inversed matrix in the code is used to change the projector's view direction. But I don't understand why using inverse matrix.

I hope anyone who understands my question can help me and correct my thoghts if wrong.Thanks.