#1
|
|||
|
|||
Transparency issues in Viz5?
Here is a snippet of code that produces different results in Viz4 and Viz5.
It works correctly in Viz4, producing a semi-opaque green box with 1 red side. In Viz5, it produces a black box (no transparency). Quote:
|
#2
|
|||
|
|||
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() |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
transparency control | hankiwan | Vizard | 1 | 02-14-2012 08:02 AM |
How to vary the transparency of the scene | whj | Vizard | 2 | 04-04-2010 09:16 PM |
Transparency on multiple objects | NASA GRC | Vizard | 0 | 03-15-2010 01:46 PM |
Read file....many issues | Uttama_vizard | Vizard | 9 | 07-08-2008 03:16 PM |
Quicktime movie with transparency channel | aaThomas | Vizard | 7 | 11-12-2007 10:54 AM |