Results 1 to 4 of 4

Thread: tesselate VG path data to triangles

  1. #1

    tesselate VG path data to triangles

    hi all:
    i implement a svg-t software engine on opengles, but the biggest problem is the tessellation.
    i need to tessellate the path data to triangle vertices.

    any one give me some hint, where can i got the tessellation algorithm??

    thank a lot.

  2. #2
    Senior Member
    Join Date
    May 2008

    Re: tesselate VG path data to triangles

    Yes, the path tessellation can be a bit of a pain. If you don't mind GPL code, you could refer to an open-source implementation of openvg on opengl called ShivaVG.

    Alternatively, you can use the stencil buffer to render complex polygons (e.g. vg paths). For more information, refer to the "Drawing Filled, Concave Polygons Using the Stencil Buffer" section of chapter 13 of the redboook found at:

  3. #3
    Junior Member
    Join Date
    Jul 2006
    Rimini, Italy

    Re: tesselate VG path data to triangles

    ShivaVG uses stencil buffer (as explained in the redbook). Instead, you should look at the gluTess code.
    Michele Fabbri - Mazatech Srl

  4. #4

    Re: tesselate VG path data to triangles

    hi both:
    thanks for your reply,
    i think the stencil buffer solution is easier understand than GLU tessellation NOW, but the shiva (or red book)only implement even/odd fill rule,
    i am not sure how to implement non-zero fill rule, using two side stencil??

    by the way, does google map use svg-t 1.1??

Similar Threads

  1. how to get out path data from a vgPath
    By akaiwall in forum OpenVG
    Replies: 1
    Last Post: 06-02-2009, 10:54 AM
  2. Sometimes, render some strange triangles
    By cobrahc in forum OpenGL ES
    Replies: 6
    Last Post: 10-11-2007, 12:58 AM
  3. Anti Aliased triangles
    By akhil in forum OpenGL ES
    Replies: 1
    Last Post: 09-20-2007, 12:19 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