cubemap_from_filenames#

cubemap_from_filenames(image_paths)[source]#

Construct a cubemap from 6 images.

Images must be in the following order:

  • Positive X

  • Negative X

  • Positive Y

  • Negative Y

  • Positive Z

  • Negative Z

Parameters
image_pathslist

Paths of the individual cubemap images.

Returns
pyvista.Texture

Texture with cubemap.

Examples

Load a skybox given a list of image paths.

>>> image_paths = [
...     '/home/user/_px.jpg',
...     '/home/user/_nx.jpg',
...     '/home/user/_py.jpg',
...     '/home/user/_ny.jpg',
...     '/home/user/_pz.jpg',
...     '/home/user/_nz.jpg',
... ]
>>> skybox = pyvista.cubemap(image_paths=image_paths)