download_dikhololo_night#
- download_dikhololo_night(load: bool = True) Texture | str[source]#
Download and read the dikholo night hdr texture example.
Files hosted at https://polyhaven.com/
- Parameters:
- Returns:
pyvista.TextureHDR Texture.
Examples#
Download Python source code | Download Jupyter notebook
>>> from pyvista import examples
>>> texture = examples.download_dikhololo_night()
>>> texture.dimensions
(4096, 2048)
Use resample() to downsample the texture’s
underlying image before plotting.
>>> _ = texture.to_image().resample(0.25, inplace=True)
>>> texture.dimensions
(1024, 512)
>>> texture.plot(cpos='xy')
See also
- Dikhololo Night Dataset
See this dataset in the Dataset Gallery for more info.
- Parched Canal 4k Dataset
Another HDR texture.
- Working with glTF Files
See additional examples using this dataset.