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
    Posts
    100

    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: http://fly.srk.fer.hr/~unreal/theredbook/chapter13.html

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

    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??
    HOW?

    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 and VGU
    Replies: 1
    Last Post: 06-02-2009, 10:54 AM
  2. Sometimes, render some strange triangles
    By cobrahc in forum OpenGL ES general technical discussions
    Replies: 6
    Last Post: 10-11-2007, 12:58 AM
  3. Anti Aliased triangles
    By akhil in forum OpenGL ES general technical discussions
    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
  •