http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenGL question....



Hey-

It seems to be that you wouldn't need to isolate those matrices to be able 
to do that.

All you would have to do is draw you scene normally (zooming away), then 
push that matrix onto the stack, translate (zoom) to where you want to draw 
the object, draw it there and then either pop your original matrix to 
continue drawing the scene or load the identity into the modelview matrix.

Did that make sense, or am I not quite grasping what you want to do here?

-Brian


>   Hello all,
>
>   Quick OpenGL question : Does anyone know how to isolate the object 
>matrix or the camera matrix?
>Such that all transformations calls manipulate either one of those. This 
>proboaly seems like a
>no brainer, but the GL_MODELVIEW matrix is the product of the two formerly 
>noted matricies. The advantage
>of being able to manipulate each seperately is that you can, for instance , 
>pan the camera away whilst moving
>the object towards the camera to create an effect commonly used in movies. 
>Any help is appreciated;
>
>    Josiah.
>
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html