WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-14-2014, 06:35 AM
performlabrit performlabrit is offline
Member
 
Join Date: Oct 2013
Posts: 77
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:
self.standingBox = vizshape.addBox( boxSizeInfo,alpha = 0.7,color=viz.GREEN,splitFaces = True,back=True)
self.standingBox.disable(viz.CULL_FACE)
Reply With Quote
  #2  
Old 05-16-2014, 09: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
Reply


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
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


All times are GMT -7. The time now is 02:53 AM.


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