#1
|
|||
|
|||
Polygon Tessellation Crash
Hi there,
I'm trying to plot lots of polygons in the Vizard environment. 99% of the time, the data is perfect. However, under certain circumstances, with ever-so-small data defects, Vizard has trouble handling the tessellation. Sometimes it is due to a tiny bow-bie, however in other instances, huge, valid polygons seem to do it too. GL_POLYGON primitives don't work properly by themselves because they can't handle concave polygons (they seem very similar to triangle fans to be honest)! I'm particularly interested in using a GL method of converting polygons to triangles, because supposedly the GL tessellation library chooses from various strategies, and it would be nice to choose the least GPU intensive way to keep a decent frame rate. The only problem is I don't seem to get access to this from Vizard from anything other than the 'optimize' function (I could be wrong). Ideally Vizard would return a tessellated version of a polygon, even if it was a bowtie. If it threw an exception that'd be better (though not perfect), but the total death of the program when a bowtie occurs is a bit of a bummer! Can you help me by suggesting a way I convert these polygons, or can you fix the bug with Vizard (and possibly suggest a workaround in the meantime)? Here's a simple way to cause the crash: Code:
import viz viz.go() viz.startLayer(viz.POLYGON) viz.vertex(0,0,0) viz.vertex(1,1,0) viz.vertex(1,0,0) viz.vertex(0,1,0) bowTie = viz.endLayer() bowTie.optimize(viz.OPT_TESSELLATE_GEOMETRY) |
#2
|
|||
|
|||
Thanks for the sample script that reproduces the crash. I'll pass this along to our development team.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Polygon angles | tsgk | Vizard | 3 | 10-21-2010 11:59 PM |
How to add texture to a polygon | tsgk | Vizard | 1 | 09-17-2010 12:28 PM |
Run Time Crash | enkeli | Vizard | 4 | 03-08-2006 02:36 PM |
crash on viz.waittime | vadrian | Vizard | 4 | 02-12-2005 04:36 PM |
Crash | softscan | Vizard | 6 | 12-01-2003 02:01 PM |