Results 1 to 2 of 2

Thread: Creating new triangles with GL_TRIANGLE_STRIPS

  1. #1
    Newbie Newbie
    Join Date
    Jan 2013
    Posts
    1

    Creating new triangles with GL_TRIANGLE_STRIPS

    Hello all,

    Trying to render a model using GL_TRIANGLE_STRIPS and its working fine, however, at certain arbitrary points I want to break off the the triangle strips and essentially start a new set of triangle strips (that are completely separate from the original strips). How should I go about doing this? Multiple VBOs? I currently have only one VBO that holds all my vertices.

    Thanks!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,117
    Use an index buffer with a restart flag see glPrimitiveRestartIndex

Similar Threads

  1. creating non overlaping triangles?
    By sidhu in forum OpenGL: General
    Replies: 10
    Last Post: 10-12-2009, 04:06 AM
  2. creating non overlaping triangles?
    By sidhu in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-02-2009, 01:02 PM
  3. GL_TRIANGLE_STRIPS
    By ThunderSoul in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-01-2005, 07:47 PM
  4. Creating a mesh of triangles with different collors
    By Sofia Gameiro in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-12-2003, 09:43 AM
  5. GL_TRIANGLE_STRIPS
    By Diapolo in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-06-2000, 10:14 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