View Single Post
  #2  
Old 05-16-2014, 08:29 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Can you post a working example that shows the issue? I think some of your code is not showing up properly because of using the quote tags. Try using the code tags instead.

I'm not exactly sure what the issue you are seeing is. In Vizard 5, I've noticed if the alpha is set when creating the box the face set to red afterwards does not have the same alpha value as the rest of the box. To workaround this you can set the alpha later in the code:

Code:
import viz
import vizshape
import vizcam

viz.go()

standingBox = vizshape.addBox(size=[1,1,1],color=viz.GREEN,splitFaces = True,back=True) 
standingBox.disable(viz.CULL_FACE)
standingBox.color(1,0,0,node='back')
standingBox.alpha(0.6)

vizcam.PivotNavigate()
Reply With Quote