-
Notifications
You must be signed in to change notification settings - Fork 285
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
Resolution parameter in points3d is sometimes ignored #618
Comments
It sort of defeats the purpose of using a high-level API, but anyway there's a temporary workaround by simply setting the
|
Thanks a lot. Your workaround works perfectly. Do you know what the underlying problem is that causes the resolution parameter to not work? |
Unfortunately not; I'm pretty much an end user of mayavi. That being said I took a peek at the source, and saw that Now, there are handlers in this class which look like they're supposed to be called as callbacks, such as Since you've noted that the problem is intermittent, and either it works for a session or it doesn't, my best guess would be that whatever callback mechanism should be calling Also note these few lines:
The above might suggest that depending on the version of VTK my workaround might not work; in those cases it's likely that one has to omit a
I don't know whether or not this works and whether different VTK versions that would merit this change reproduce the original bug in the issue to begin with. Also note that a similar check is not performed for
I'm not intimately (or remotely, to be honest) familiar with the machinery of VTK, but this might be a bug in itself. |
I will check later this week and get back on this thread. |
I am unable to reproduce this. Could you try with the latest released version of mayavi and traits. I would also appreciate a tiny example so I am on the same page, this is what I used:
|
My versions are:
suffices. |
I've also been using a separate script executed directly with python, just like Jannick. I can reproduce the problem with that example. My versions are
As for me this is an older version where I compiled VTK by hand. I've been using python 3.6 (and recently 3.7) but I couldn't get mayavi working with an appropriate backend by just using pip, so I fell back on my old working install. |
I just tried with master on this example:
The wireframe is to just see if it is changing and I changed resolution to 10, 20, 40 and it works as expected. Am on MacOS, using probably traits from master at some point, traitsui, VTK 8.1.1 and mayavi from master. This is going to need more investigation to see where the issue is. Would it be possible to test this with Mayavi master? Thanks. |
With your example with the wireframe setting the bug is gone, i.e. the wireframe always has high resolution. If I use |
@prabhuramachandran just to be sure we're on the same page, the problem is that plotting a As for the above change killing the bug: is it possible that modifying the |
OK, I've managed to install mayavi+vtk+pyqt5 for python 3.6. The issue we're discussing has gone away, but I'm now facing #656. Not exactly an improvement ;) Current versions:
Using debian in case that matters. As I understand it, there's not much use checking master, since the current issue is fixed with the update, and the rendering issue I see is unrelated to mayavi. Update: what I see is actually the combination of the above issue and another one that is solved by #491 (comment). Even though I have no opacity set in the call, I see the weird sphere rendering in our test case which goes away with Update 2: while the problem I see seems to be the same, your suggested workaround with depth peeling doesn't seem to work for my case, not even with |
With mayavi 4.5.1 and vtk 8.1.0 the resolution parameter in points3d is sometimes completely ignored. This is for example reproducible with test_molecule(). Whether it is ignored or not is determined at startup of the program and will then be consistent further on.
The text was updated successfully, but these errors were encountered: