Results 1 to 5 of 5

Thread: glnormal3f

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2005
    Posts
    20

    glnormal3f

    if i understand the function right it determines how light reflects off the surface right.

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: glnormal3f

    Yeah but it can be said for a lot of other GL commands ...

    glNormal defines the vector perpendicular to the next glVertex. It should be unit length.

    Have a look here, in the middle of the page there is a good image of this :
    http://pixwiki.bafsoft.com/mags/10/a...l-c/agl18.html

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2005
    Posts
    20

    Re: glnormal3f

    what are the light constants and examples of.

  4. #4
    Junior Member Newbie
    Join Date
    Jul 2005
    Posts
    20

    Re: glnormal3f

    im using gllookat to move around my world. the light position is suppose to be at 0,0,5,1. im not sure if its suppose to be 0,0,5,0 but i've tried both. when i move to the other side of the object its still lit up. im also using glnormal3f.

  5. #5
    Senior Member Regular Contributor
    Join Date
    Aug 2005
    Posts
    145

    Re: glnormal3f

    Can you post your code?

    Remember that the light position is transformed by the current modelview matrix when set.
    http://pyopengl.sourceforge.net/docu...lLight.3G.html
    http://www.rush3d.com/reference/open...chapter06.html

Similar Threads

  1. [Resolved] glNormal3f for a quarter cylinder
    By FoX_*D i E* in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-09-2010, 11:37 AM
  2. glNormal3f
    By iux in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 02-09-2003, 09:21 AM
  3. glNormal3fv or glNormal3f
    By ARES in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-17-2002, 10:46 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