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:
- Returns:
pyvista.TextureTexture with cubemap.
Examples#
Download Python source code | Download Jupyter notebook
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 = pv.cubemap(image_paths=image_paths)