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 4 of 4

Thread: Edges on mesh

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2009
    Posts
    2

    Edges on mesh

    Hello everyone!

    I'm trying to use the Shaders to visualize a (large) Finite Elements mesh.
    I use an indecies buffer to reduce memory usage.

    Besides drawing faces I also need to draw edges with another color.
    The only way I see to do it is using GS or declinig indecies.

    Is still there any way to detect edges in the PS without using GS or declinig indexes?

    Thanks in advance!

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,580

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2009
    Posts
    2

    Re: Edges on mesh

    Yes, that is the thing I need. But how can I
    Thus, for each vertex of, say, a triangle we must send the other two vertices as attributes in order to compute the line distance
    without GS if I use index buffer? How can I access the other two vertices within VS?

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Sep 2004
    Location
    Prombaatu
    Posts
    1,386

    Re: Edges on mesh

    Check out the NV SDK. They have a sample that implements something along these lines as I recall.

Posting Permissions

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