WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   on the fly points (https://forum.worldviz.com/showthread.php?t=2153)

John P 07-13-2009 07:29 PM

on the fly points
 
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.

Code:

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:
Code:

p.disable(viz.CULLING)


All times are GMT -7. The time now is 09:43 PM.

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