pyvista.examples.downloads.download_dikhololo_night

pyvista.examples.downloads.download_dikhololo_night#

download_dikhololo_night(load=True)[source]#

Download and read the dikholo night hdr texture example.

Files hosted at https://polyhaven.com/

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

HDR Texture.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> gltf_file = examples.gltf.download_damaged_helmet()
>>> texture = examples.download_dikhololo_night()
>>> pl = pv.Plotter()
>>> pl.import_gltf(gltf_file)
>>> pl.set_environment_texture(texture)
>>> pl.show()
../../../_images/pyvista-examples-downloads-download_dikhololo_night-1_00_00.png

See also

Dikhololo Night Dataset

See this dataset in the Dataset Gallery for more info.