WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-06-2014, 07:17 AM
GregEnj GregEnj is offline
Member
 
Join Date: Jul 2013
Posts: 2
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)
I've found sometimes running that optimization on complex scenes causes crashes too (if you use viz.OPT_ALL for some OSG objects loaded from disk).
Reply With Quote
  #2  
Old 08-11-2014, 06:51 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Thanks for the sample script that reproduces the crash. I'll pass this along to our development team.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 12:35 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC