#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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) |
#3
|
|||
|
|||
Thanks very much
|
|
|
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 06:32 AM |
animate an object using 5dt data glove 5 ultra | agrima | Vizard | 3 | 07-01-2014 12:17 PM |
Draw a triangle instead of a point | Chrissy2009 | Vizard | 1 | 07-21-2009 10:46 AM |
data glove navigation | arielasso | Vizard | 6 | 10-24-2007 03:15 PM |
looking at a point | vadrian | Vizard | 5 | 06-07-2005 06:43 PM |