WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   About getAlpha function (https://forum.worldviz.com/showthread.php?t=2497)

omidbrb 02-07-2010 03:14 AM

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

farshizzo 02-08-2010 12:37 PM

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.


All times are GMT -7. The time now is 08:50 AM.

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