Why I need two points for viz.startlayer(viz.POINTS)
Hi, I want to show the points as mouse moves, and I program like below:
Code:
def plotGraph(x,y): Code:
viz.vertexcolor(viz.RED) Can anyone tell me why? Is it because startlayer needs at lease two points? Thank you |
OpenSceneGraph will cull objects that appear very small on screen. Since you have one point, it is computed as infinitely small on screen and not rendered. You can disable viz.CULLING on the node to prevent this from happening:
Code:
line.disable(viz.CULLING) |
All times are GMT -7. The time now is 05:59 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC