WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-14-2009, 02:22 PM
teresap teresap is offline
Member
 
Join Date: Oct 2009
Posts: 1
Create curved path/track

I have a question about creating a curved path/track that is visible to the user. I am able to make straight lines between various points in my environment using the code below, but I need a smooth curve (spline) to connect these points rather than straight lines. Any suggestions? I appreciate any help!

viz.startlayer(viz.LINES)
viz.vertex(0,0,-2)
viz.vertex(0,1.4,27.5)
viz.vertex(-1,-1.8,33.5)
viz.vertex(-1,-1.8,33.5)
viz.vertex(-4,0,38)
line1 = viz.endlayer()
Reply With Quote
  #2  
Old 10-16-2009, 12:10 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You will need to break the curve into smaller line segments. The more line segments you use, the smoother the curve will appear.
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
Create Button or Text Chrissy2009 Vizard 1 07-15-2009 05:34 PM
questions on how to create a form xingxing Vizard 15 06-13-2008 04:19 PM
How to create a sky? guxmy01 Vizard 1 05-28-2008 12:07 PM
Create my own animations michelcm3 Vizard 1 09-21-2007 09:53 AM
how to create morph from the comple characters CD michelcm3 Vizard 9 07-19-2007 10:15 AM


All times are GMT -7. The time now is 07:32 PM.


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