Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: GL_TRIANGLE_STRIP and Normals

Hybrid View

  1. #1
    Intern Newbie
    Join Date
    Jul 2002
    Posts
    45

    GL_TRIANGLE_STRIP and Normals

    How does one go about setting up normals for a triangle strip? For example, if I am creating four faces of a cube using a triangle strip, The vertices could have two different normals(one for each of the faces it is a part of). Should I just average them, or should I create seperate faces as separate triangle strips? How is this taken care of? Thanks for the help.

    -Drew

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    680

    Re: GL_TRIANGLE_STRIP and Normals

    in a triangle strip, a vertex that is part of several triangles is only specified once (that is the sense of triangle strips) and as only one normal. There is no way of giving a vertex that several triangles inside of a strip share separate normals for each face. If you need this, these faces simply cannot be inside of the same triangle strip. Same of course is for texture coordinates.

    This, I guess, is the reason why triangle strips are not very much supported in 3d model formats.

    Jan

  3. #3
    Intern Newbie
    Join Date
    Jul 2002
    Posts
    45

    Re: GL_TRIANGLE_STRIP and Normals

    Thanks. I was afraid of that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •