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

Thread: from voronoi-faces to voronoi-diagram in pixel-space??

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2002
    Location
    Bremen, Germany
    Posts
    1

    from voronoi-faces to voronoi-diagram in pixel-space??

    Hi...

    my goal is to draw a voronoi-diagramm for a number of single points which represent obstacles for my path-finding-problem. In order to solve this I draw a unique colored cone for every point with its apex matching the obstacle-point. With the help of z-buffer and orthogonal projection i get the voronoi-faces in pixel-space, but my problem is to generate just the voronoi-diagram that consits of a line-mesh in the frame-buffer which exactly matches the intersection-lines of the cones.

    I will be pleased for every helpful comments ;-)

    cmandel@uni-bremen.de

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    2,704

    Re: from voronoi-faces to voronoi-diagram in pixel-space??

    You can post-process by using edge finding (i e, only output data where there are neighboring pixels of different color).

    This can be done using ARB_fragment_program if you bind your first output to a texture, and then use that as input for the second draw pass.

    However, this sounds a lot like something you should solve with computational geometry (look for "delaunay triangulation" on MathWorld or Google) and just submit lines to GL.
    "If you can't afford to do something right,
    you'd better make sure you can afford to do it wrong!"

Posting Permissions

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