Results 1 to 5 of 5

Thread: vertex buffer objects and elded vs unwelded vertic

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2011
    Posts
    2

    vertex buffer objects and elded vs unwelded vertic

    Folks

    Being a newbie to OpenGL (and not yet into shaders), I wonder if anyone can tell me if my thinking on VBO's and the use of welded (shared) vertices vs unwelded vertices in models is correct.

    If I use welded vertices with VBOs, then the advantages are:
    1/ Less memory space is used on the card.
    2/ Vertex array normals for shared vertices are algorithmically easier to compute.

    The disadvantages are:
    1/ Textures are harder to render correctly because texture coordinates are shared by vertices.

    And a general comment...
    1/ There is no speed advantage using welded vertices since the number of vertices drawn is the same whether vertices are welded or unwelded.

    So...if the above is fairly correct then I should use unwelded models where I'm using textures.

  2. #2
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,674

    Re: vertex buffer objects and elded vs unwelded vertic

    What do you mean by "welded vertices"? Are you talking about positions on the model that have more than one texture coordinate, normal, or other vertex attribute associated with them?

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2011
    Posts
    2

    Re: vertex buffer objects and elded vs unwelded vertic

    A single vertex defined as part of more than one polygon. i.e., in a vertex buffer object the vertex is defined once in the vertex array, but indexed two or more times in the vertex Indices Array - so the vertex is shared by more than one polygon.

    hope that makes more sense...

  4. #4
    Member Contributor Zenja's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    50

    Re: vertex buffer objects and elded vs unwelded vertic

    Your assumption is correct. If you dont have textures, use welded vertices to conserve memory. If you do use textures, unweld some of them since the texture coordinates *may* differ. OpenGL has no concept of welding, this is strictly a modeling tool convention.

  5. #5
    Senior Member Regular Contributor
    Join Date
    Oct 2010
    Location
    France
    Posts
    458

    Re: vertex buffer objects and elded vs unwelded vertic

    Also, be careful with normals, they could be different from the "same" vertex sharing two faces, mainly for hard-angle models (like cubes).

    For the texture coordinates, I don't see any reason that they could be different for the same vertex, since it will most certainly produce bad texture application.

Similar Threads

  1. Vertex Arrays, Buffer Objects, and Vertex Array Objects
    By dcox1776 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-09-2012, 02:26 AM
  2. Vertex Arrays vs Vertex Array Objects vs Buffer Objects
    By dcox1776 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-05-2012, 06:10 AM
  3. vertex buffer objects
    By stanigator in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 03-12-2009, 05:00 PM
  4. Vertex Buffer Objects
    By IndioCOLIFA in forum OpenGL: Basic Coding
    Replies: 22
    Last Post: 01-14-2008, 03:40 PM
  5. Vertex Buffer Objects
    By ToddAtWSU in forum OpenGL: Basic Coding
    Replies: 19
    Last Post: 02-23-2006, 05:59 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