WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-17-2014, 01:28 AM
aaaa aaaa is offline
Member
 
Join Date: Nov 2014
Posts: 9
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.
Reply With Quote
  #2  
Old 11-17-2014, 05:36 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,448
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])
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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