WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   how to set the lightness of the dot (https://forum.worldviz.com/showthread.php?t=5229)

aaaa 11-17-2014 01:28 AM

how to set the lightness of the dot
 
Hi, I have a problem in setting the lightness of the dot. the code is below:

viz.startLayer(viz.POINTS)
viz.vertex(0,0,1)
viz.vertex(0,0.5,1)
aa=viz.endLayer()


I don't know how to set the lightness of the point.

Jeff 11-17-2014 05:36 PM

You can change the vertex color of the points:

Code:

import viz
viz.go()

viz.startLayer(viz.POINTS)
viz.vertexColor(0.5,0.5,0.5)
viz.vertex(0,0,1)
viz.vertex(0,0.5,1)
aa=viz.endLayer(pos=[0,1.8,3])



All times are GMT -7. The time now is 01:55 AM.

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