pyvista.examples.downloads.download_cubemap_park

pyvista.examples.downloads.download_cubemap_park#

download_cubemap_park(load=True)[source]#

Download a cubemap of a park.

Downloaded from http://www.humus.name/index.php?page=Textures by David Eck, and converted to a smaller 512x512 size for use with WebGL in his free, on-line textbook at http://math.hws.edu/graphicsbook

This work is licensed under a Creative Commons Attribution 3.0 Unported License.

Parameters:
loadbool, default: True

Load the dataset after downloading it when True. Set this to False and only the filename will be returned.

Returns:
pyvista.Texture

Texture containing a skybox.

Examples

>>> from pyvista import examples
>>> import pyvista as pv
>>> pl = pv.Plotter(lighting=None)
>>> dataset = examples.download_cubemap_park()
>>> _ = pl.add_actor(dataset.to_skybox())
>>> pl.set_environment_texture(dataset, True)
>>> pl.camera_position = 'xy'
>>> pl.camera.zoom(0.4)
>>> _ = pl.add_mesh(pv.Sphere(), pbr=True, roughness=0.1, metallic=0.5)
>>> pl.show()
../../../_images/pyvista-examples-downloads-download_cubemap_park-1_00_00.png

See also

Cubemap Park Dataset

See this dataset in the Dataset Gallery for more info.

Cubemap Space 4k Dataset

Cubemap Space 16k Dataset

Sky Box Cube Map Dataset