LWJGL
May 23, 2012, 04:09:56 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Camera with gluLookAt vs translates  (Read 3542 times)
Soulice
Newbie
*
Posts: 14


« on: October 13, 2004, 10:34:41 »

Found this in Redbook (v1 I think)
Quote
"Note that instead of moving the camera (with a viewing transformation) so that the cube could be
viewed, you could have moved the cube away from the camera (with a modeling transformation). This
duality in the nature of viewing and modeling transformations is why you need to think about the effect
of both types of transformations simultaneously. It doesn't make sense to try to separate the effects, but
sometimes it's easier to think about them one way rather than the other. This is also why modeling and
viewing transformations are combined into the modelview matrix before the transformations are applied."


If I understand the process here, use gluLookAt to move the "camera" around, its orientation and where it is looking.  Use translate on objects inthe scene to move them around.
Logged

S
princec
Nerdus Imperius
*****
Posts: 1782



WWW
« Reply #1 on: October 13, 2004, 11:52:21 »

Yes.

Cas Smiley
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!