Pyvista: Image as background

Created on 20 Dec 2019  路  5Comments  路  Source: pyvista/pyvista

Description

I'm probably being too lazy, but I haven't found any example of setting a background of Plotter to an image. Is it possible at all? Plotter.set_background() seems to work only with colours.

Thanks.

feature-request

Most helpful comment

If you don't mind I can experiment with this one, I have a prototype running:

output

All 5 comments

Nope, you鈥檙e not being lazy! we don鈥檛 have this implemented at the moment.

Intermixing the needed code in this example could do it http://kwwidgets.org/Wiki/VTK/Examples/Python/BackgroundImage

Also note this requires layered rendering which is a very stale PR: https://github.com/pyvista/pyvista/pull/367

Sent with GitHawk

Thank you for the quick response!
The VTK example seems a bit intimidating, but I'll give it a go. It would be great to have it implemented in pyvista of course...

If you don't mind I can experiment with this one, I have a prototype running:

output

@GuillaumeFavelier! Super cool! I'd love to see your PR for this or if it fits into #367

Thanks @GuillaumeFavelier ! This is brilliant!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rodrigomologni picture rodrigomologni  路  3Comments

rodrigomologni picture rodrigomologni  路  4Comments

GuillaumeFavelier picture GuillaumeFavelier  路  5Comments

flothesof picture flothesof  路  4Comments

banesullivan picture banesullivan  路  3Comments