Results 1 to 3 of 3

Thread: (real) viewing

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2002
    Location
    Rehovot/ /Israel
    Posts
    4

    (real) viewing

    I use gluLookAt to change the view-point. I
    "look" at a cube, and I would like to "go"
    to the side of the cube that has light on it,
    but the effect I get is IDENTICAL to rotating the cube, meaning - when I rotate
    the view-point and get to a (previously) dark
    face, the face becomes lit.
    I guess it's because the modelview-matrix
    transforms the light also. Is it so ??
    If yes - can I prevent it ??
    Is there other way (besides manually change
    light-position) to get the desired effect ??

    Tks in advance,

    Rami

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    3,574

    Re: (real) viewing

    Set the lighting after you call gluLookAt, not before.

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2002
    Location
    Rehovot/ /Israel
    Posts
    4

    Re: (real) viewing

    Originally posted by Korval:
    Set the lighting after you call gluLookAt, not before.
    Thanks. It works.

    Rami

Similar Threads

  1. Viewing
    By Mukund in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-11-2010, 10:02 PM
  2. 3-D Viewing
    By ToddAtWSU in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-26-2007, 01:34 AM
  3. Viewing bounds
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-15-2004, 03:51 AM
  4. Viewing with OpenGL
    By in forum OpenGL: macOS
    Replies: 1
    Last Post: 12-30-2001, 02:06 PM
  5. 3D viewing
    By mochi in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 08-22-2001, 06:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean