what about tesselation ?

Started by broumbroum, September 20, 2009, 14:38:18

Previous topic - Next topic

broumbroum

HI! from the opengl book I read a chapter about tesselation which allows output of polygons with holes in it, something that'd be very useful in rendering of java Font characters that define WINDING RULES.

I can see the constants properties, but no method about tesselation. Is that planned or not ? (that thing is in GLU, as read from the book : gluNewTess(), gluTessVertex() and gluTessProperty() beyond others.)

kappa

there's already some tessellation stuff in lwjgl, not sure if its in LWJGL 2.1.0 but its definitely there in the current 2.2 stuff.

broumbroum


Ciardhubh

JME has a text class that does this if you're looking for an example, i.e. create polygons for characters from a Java Font and then tesselate them. Might be a bit of work to use it outside of JME, though as its parts are usually pretty tightly coupled. It's in com.jmex.font.Text3D/Font3D if I remember correctly.