New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_opacity argument for point doesn't seem to work #335
Comments
Is this _opacity argument work to fade the color of the particles? |
@sparkingdark opacity is meant to basically manipulate the transparency of the points. Points with opacity = 1 will be fully opaque and points with opacity = 0 will be fully transparent (we'll be able to see through them) |
Okay in the mean time I try to reproduce it in my computer and try to make
a fix of it.
…On Wed, 25 Nov 2020, 10:13 Sajag Swami, ***@***.***> wrote:
@sparkingdark <https://github.com/sparkingdark> opacity is meant to
basically manipulate the transparency of the points. Points with opacity =
1 will be fully opaque and points with opacity = 0 will be fully
transparent (we'll be able to see through them)
I haven't tested it on other OS but I don't think the results would be any
different on other OS as the function that generates points does so by
making use of the function that generates spheres and the function that
generates spheres has no way of manipulating the opacity thus the point
function technically has no way of manipulating the opacity.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#335 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL7XHCDTAPMNMV2RMKNQR5TSRSDQHANCNFSM4TF7HKQQ>
.
|
I think the problem is coming from the _opacity variable in actor.py and similar problem going after changing to 0.0 as you told. |
I don't see anything which take _opacity value and pass to sphere function,sphere function takes only centers, colors, radii=1., theta=16, phi=16,vertices=None, faces=None parameter.I think there something need to add to make it work.
|
Thanks @sparkingdark. I think I've fixed it. Earlier, with opacity=0.2 and 1.0 respectively: Now, with opacity=0.2 and 1.0 respectively: @skoudoro Should I make a PR? |
Yes, go ahead, do not forget to add a unittest. 👍 |
That's awesome, where was the problem??
Can you tell...
…On Thu, 26 Nov 2020, 23:22 Serge Koudoro, ***@***.***> wrote:
Yes, go ahead, do not forget to add a unittest. 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#335 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL7XHCFTGQOTZDYYCBAVQQDSR2IVVANCNFSM4TF7HKQQ>
.
|
@sparkingdark sure |
Description
The "_opacity" argument for fury.actor.point doesn't seem to work. Manipulating the values for the _opacity doesn't seem to change the opacity of the rendered points.
From what I could figure from the documentation, this occurs as the function which generates the points (fury.actor.point) utilises the sphere function (fury.actor.sphere) in generating the points and the function for generating spheres doesn't have any means to manipulate the opacity of the spheres that it generates.
Way to reproduce
From the code, it's evident that the desired output requires that the point on the left be transparent (opacity=0) and the point on the right be opaque. But the output rendered has both the points as opaque.
{'fury_version': '0.6.1', 'pkg_path': "C:\Users\Tzu's Pc\AppData\Local\Programs\Python\Python38\lib\site-packages\fury", 'commit_hash': 'ee4e85c8f1358105700c156b20ba1db83a004261', 'sys_version': '3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)]', 'sys_executable': "C:\Users\Tzu's Pc\AppData\Local\Programs\Python\Python38\python.exe", 'sys_platform': 'win32', 'numpy_version': '1.19.2', 'scipy_version': '1.5.3', 'vtk_version': '9.0.1', 'matplotlib_version': '3.3.2'}
The text was updated successfully, but these errors were encountered: