WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-31-2011, 02:29 PM
Renato Lima Renato Lima is offline
Member
 
Join Date: Sep 2010
Posts: 54
Question Can I create a box like this in Vizard?

Can I create a box just like this in vizard ? I can easily make it transparent, but I would love to have this effect on its vertices. However, I could not find a way through add.vizbox.




Ideas? Thank you very much.
Reply With Quote
  #2  
Old 03-31-2011, 02:41 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Yeah, just create another box and set the polyMode to viz.POLY_WIRE. Here is some sample code that shows how to achieve this effect:
Code:
size = [1,1,1]

box = viz.addGroup()

box.faces = vizshape.addBox(size,splitFaces=True,cullFace=False,parent=box)
box.faces.alpha(0.5)
box.faces.color([0.77, 0.90, 0.13])

box.lines = vizshape.addBox(size,lighting=False,cullFace=False,parent=box)
box.lines.polyMode(viz.POLY_WIRE)
box.lines.lineWidth(6)
box.lines.color([0.24, 0.42, 0])
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Realistic Light and Shadows Using Vizard and 3DS Max jde Vizard 4 07-13-2012 10:58 AM
Vizard 4 Beta Testing farshizzo Announcements 0 02-01-2011 10:46 AM
Vizard 4 Beta Testing farshizzo Vizard 0 02-01-2011 10:46 AM
.3DS importing in Vizard and 3D Studio jde Vizard 1 08-28-2009 03:14 PM
Vizard tech tip: Using the Python Imaging Library (PIL) Jeff Vizard 0 03-23-2009 11:13 AM


All times are GMT -7. The time now is 07:57 AM.


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