WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-07-2010, 03:14 AM
omidbrb omidbrb is offline
Member
 
Join Date: Dec 2008
Posts: 27
About getAlpha function

Hi,

I have a problem using the getAlpha function. I'm calling getAlpha on the resulting object from the pick function:

Code:
intersect = win.pick(True, viz.WORLD, pos = [xNorm, yNorm])
alpha = intersect.object.getAlpha()
But whatever node I pick (even if transparent), getAlpha results 1, which means completely opaque.

Does anybody have an idea on that?

Thanks,
Omid
Reply With Quote
  #2  
Old 02-08-2010, 12:37 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Does the object have multiple sub-nodes with different material settings? If so, then this might be why you are not getting the correct alpha value.
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
return variable from keypress function starbug Vizard 2 01-07-2010 11:14 AM
window.pick function over sub-window omidbrb Vizard 4 10-02-2009 04:23 AM
Documentating function names aaThomas Vizard 5 05-15-2007 09:50 AM
Do you know how to send a value for 'pool' to the onActionEnd function? ghazanfar Vizard 1 03-22-2007 10:25 AM
timers and director function Jerry Vizard 1 06-22-2006 09:47 AM


All times are GMT -7. The time now is 04:29 AM.


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