PDA

View Full Version : on the fly points


John P
07-13-2009, 07:29 PM
I'm doing a project where I use lots of on the fly objects. I'm trying to draw a single vertex but there seems to be a bug in that you must draw two or more vertices.

viz.startlayer(viz.POINTS)
viz.pointsize(10)
viz.vertex(0,2,5)
#viz.vertex(0,2,5.5) #this line will make it work..
p = viz.endlayer()

It seems that even with two vertices, if they are so close that they translate onto the same screen coordinate they will be culled. It could be a graphics card issue. This was really confusing me for a while so I thought I would drop this note.

Thanks

farshizzo
07-15-2009, 05:22 PM
A single point will be culled by the scene graph. You can disable culling on the object using the following code:p.disable(viz.CULLING)