Results 1 to 4 of 4

Thread: tow basic questions

  1. #1
    Member Contributor
    Join Date
    Nov 2011
    Posts
    52

    tow basic questions

    Hi,
    1)i read about there are two methods to determine which face of a polygon is up,by specifying a normal verctor and by specifying wounding orientation of vertices(clock-wise or counter-clock wise)!How do i know which method do i use and when?
    2)I dont really understand why the color-tracking is the preferred than calling glMaterail...
    Thank u~

  2. #2
    V-man
    Guest

    Re: tow basic questions

    1) why do you want to know if a polygon is up? What do you plan to do with that information?

    2) They don't mater anymore. They are part of old GL and old GPUS (10 years ago). Technology has changed. Now (actually, since 2002), everything is shaders.

  3. #3
    Member Contributor
    Join Date
    Nov 2011
    Posts
    52

    Re: tow basic questions

    1)it just coufuse me,if i use a normal to specify which way is out and it is inverted as the wound-order,what hanppend?

  4. #4
    V-man
    Guest

    Re: tow basic questions

    The normal vector effects the lighting.
    Also, there are some cases that use the normal vector such as in texture coord generation => GL_SPHERE_MAP and GL_NORMAL_MAP and GL_REFLECTION_MAP
    http://www.opengl.org/wiki/Mathematics_of_glTexGen

Similar Threads

  1. gluLookAt basic questions
    By CoolBeanJ in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 04-10-2011, 06:10 AM
  2. Some basic questions
    By jide in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 05-09-2006, 11:06 AM
  3. Some basic questions
    By Polygon21 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-30-2004, 07:55 AM
  4. basic animation questions
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-19-2000, 05:35 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