Results 1 to 2 of 2

Thread: Creating a mesh of triangles with different collors

  1. #1
    Junior Member Newbie
    Join Date
    May 2003
    Posts
    4

    Creating a mesh of triangles with different collors

    Hi everyone:

    I'm using opengl integrated with the cad software "solid edge".

    I need to create a mesh of triangles, all with different colors, according to a specific criterion that is not important right now.

    My problem is that if I use glBegin with GL_TRIANGLES, creating a lot of independent triangles, it gets to heavy to work with solid edge, but I canít figure out any other solution because if I use glBegin with GL_TRIANGLE_STRIP, which would optimize the visualization in solid edge, I canít give different colors to different triangles.

    Can anyone help me?

  2. #2
    Member Contributor
    Join Date
    Mar 2003
    Posts
    88

    Re: Creating a mesh of triangles with different collors

    Try using vertex arrays, var or the new vbo extensions.
    with those youīll get the performance you need , without changint to triangles strips
    As shadows into darkness, the Ninja fades away

Similar Threads

  1. Parsing an OBJ file to add triangles to a Bullet Physics Triangle Mesh
    By zsloan112 in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 05-05-2018, 09:39 AM
  2. Creating new triangles with GL_TRIANGLE_STRIPS
    By jmfurlott in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-29-2013, 05:23 PM
  3. creating non overlaping triangles?
    By sidhu in forum OpenGL: General
    Replies: 10
    Last Post: 10-12-2009, 04:06 AM
  4. creating non overlaping triangles?
    By sidhu in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-02-2009, 01:02 PM
  5. Creating 3D mesh from points
    By kp8693 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-20-2008, 12:02 PM

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