WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Turning a path into a wireframe (https://forum.worldviz.com/showthread.php?t=4198)

Salvar 04-11-2012 03:27 PM

Turning a path into a wireframe
 
Hi.

I'm currently trying to turn a set of coordinates that form a curved line into a wireframe of a road where these coordinates define the middle of the street.

The simplest I've come up with is using the coordinates to draw a very thick line (via viz.LINE_STRIP and viz.linewidth) and setting the polygon mode to POLY_WIRE, but it comes out as a filled line with very jaggy edges.

Any ideas? I'm probably missing something obvious here.

Thanks.

Jeff 04-13-2012 08:27 AM

Have you tried enabling anti-aliasing?
http://kb.worldviz.com/articles/831

Salvar 04-13-2012 09:46 AM

I have not. Thanks, I'll try that. But that still leaves the issue of POLY_WIRE giving me a filled area. Does this only apply to polygon shapes, and not lines?

Jeff 04-14-2012 06:35 AM

Yes, that applies to polygons. You'll have to create two parallel line strips with smaller widths.

Salvar 04-17-2012 05:25 PM

All right, thanks for the help.


All times are GMT -7. The time now is 02:40 PM.

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