abhi_vg

12-25-2005, 10:31 PM

Hi,

I would appreciate if anyone can help me with the following:

Is it possible to obtain the seperate transformation matrices like translation, scaling, rotation, etc. from the modelview matrix that is obtained from

"glGetDoublev(GL_MODELVIEW_MATRIX,modelMat);"

If yes, can anyone tell me how?

My exact problem is:

I am calling my OpenGL code in a MFC window, whose base class implements zoom in and out for mouse scroll wheel. As a result anything I draw by calling OpenGL code in the window, is scaled according to the scaling(zoom in/out) transformation applied in that window's base class. I want to display some text in the window, which I do not want to be scaled when I zoom in/out. Is it possible to do it? If yes, how?

(The orthogonal/parallel projection is being used, so I am assuming that the given window's base class is implementing zoom in/out by using the scaling transformation.)

Please help!!

I would appreciate if anyone can help me with the following:

Is it possible to obtain the seperate transformation matrices like translation, scaling, rotation, etc. from the modelview matrix that is obtained from

"glGetDoublev(GL_MODELVIEW_MATRIX,modelMat);"

If yes, can anyone tell me how?

My exact problem is:

I am calling my OpenGL code in a MFC window, whose base class implements zoom in and out for mouse scroll wheel. As a result anything I draw by calling OpenGL code in the window, is scaled according to the scaling(zoom in/out) transformation applied in that window's base class. I want to display some text in the window, which I do not want to be scaled when I zoom in/out. Is it possible to do it? If yes, how?

(The orthogonal/parallel projection is being used, so I am assuming that the given window's base class is implementing zoom in/out by using the scaling transformation.)

Please help!!