GithubHelp home page GithubHelp logo

Comments (13)

larsoner avatar larsoner commented on June 11, 2024 3

Okay I figured out the problem, enable_anti_aliasing gives me a black canvas:

import pyvista as pv
from pyvistaqt import BackgroundPlotter

p = BackgroundPlotter()
p.enable_anti_aliasing()
p.add_mesh(pv.Cone())

from pyvistaqt.

GuillaumeFavelier avatar GuillaumeFavelier commented on June 11, 2024 1

To move forward with this one, @banesullivan could you maybe try a very simple example like the default QVTKRenderWidgetConeExample and confirm that everything works fine for you?

I think the priority here is to understand where is the issue.

from pyvistaqt.

larsoner avatar larsoner commented on June 11, 2024 1

Possibly related to initialize/start/show ordering?

https://discourse.vtk.org/t/vtk-9-pyqt-macos-no-rendering/3358/22

from pyvistaqt.

larsoner avatar larsoner commented on June 11, 2024 1

(This thread also explains why macOS rendering worked for me at one point when building the wheels myself, but stopped working once I switched to using the official VTK wheels)

from pyvistaqt.

cbrnr avatar cbrnr commented on June 11, 2024 1

FWIW, toggling the "Eye Dome Lighting" setting made a figure change from completely black to actually show the figure correctly.

from pyvistaqt.

larsoner avatar larsoner commented on June 11, 2024 1

I think this was fixed by VTK in https://gitlab.kitware.com/vtk/vtk/-/merge_requests/7420 / 9.1, so we might as well close I think

from pyvistaqt.

GuillaumeFavelier avatar GuillaumeFavelier commented on June 11, 2024

I know that we have a job on Travis configured with vtk 9.0.0 for MacOS but I'm not 100% sure it runs all the tests, it might skip a lot. We still have to get reports from users on MacOS that did the upgrade to vtk 9.0.0

from pyvistaqt.

banesullivan avatar banesullivan commented on June 11, 2024

Thanks for the tip, @cbrnr - I will have to look into why that is...


FYI: VTK 9.0.1 fixed this issue for me (see #16 (comment)) but @larsoner is still having trouble?

from pyvistaqt.

larsoner avatar larsoner commented on June 11, 2024

I'm still having trouble with MNE examples, but it might be something we're doing at our end

from pyvistaqt.

larsoner avatar larsoner commented on June 11, 2024

... and also the VTK widget controls we have are only controllable by mouse clicks at 1/2 the correct location, meaning the VTK has some HiDPI problem with its widget controls and clicks...

from pyvistaqt.

cbrnr avatar cbrnr commented on June 11, 2024

And if you then toggle eyedome lighting, it works!

from pyvistaqt.

larsoner avatar larsoner commented on June 11, 2024

The widgets work? Or antialiasing works? Or you need AA off / commented out plus eyedome toggle to see the simple example above?

from pyvistaqt.

cbrnr avatar cbrnr commented on June 11, 2024

Your example initially looks like this:

Screen Shot 2020-06-29 at 20 59 44

After clicking on View - Toggle Eye Dome Lighting, it looks like this:

Screen Shot 2020-06-29 at 20 59 55

from pyvistaqt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.