WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-13-2014, 04:24 PM
aaaa aaaa is offline
Member
 
Join Date: Nov 2014
Posts: 9
how to draw a single point

Excuse me, the code bellow can't draw a single dot:

import viz
viz.go()
viz.startLayer(viz.POINTS)
viz.vertex(0,1.8,1)
viz.endLayer()

the code bellow can draw two points:

import viz
viz.go()
viz.startLayer(viz.POINTS)
viz.vertex(0,1.8,1)
viz.vertex(0,1.7,1)
viz.endLayer()


My problem is how to draw a single dot.
Reply With Quote
  #2  
Old 11-13-2014, 05:48 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You will need to disable culling on the object, since a single point will result in a infinitely small bounding box. Try the following code:
Code:
import viz
viz.go()
viz.startLayer(viz.POINTS)
viz.vertex(0,1.8,1)
points = viz.endLayer()
points.disable(viz.CULLING)
Reply With Quote
  #3  
Old 11-17-2014, 01:26 AM
aaaa aaaa is offline
Member
 
Join Date: Nov 2014
Posts: 9
Thanks very much
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
how to draw a line on the 2D screen with mouse aaaa Vizard 1 11-10-2014 05:32 AM
animate an object using 5dt data glove 5 ultra agrima Vizard 3 07-01-2014 11:17 AM
Draw a triangle instead of a point Chrissy2009 Vizard 1 07-21-2009 09:46 AM
data glove navigation arielasso Vizard 6 10-24-2007 02:15 PM
looking at a point vadrian Vizard 5 06-07-2005 05:43 PM


All times are GMT -7. The time now is 08:36 AM.


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