download_cubemap_space_4k#
- download_cubemap_space_4k(load: bool = True) Texture | str[source]#
Download the 4k space cubemap.
This cubemap was generated by downloading the 4k image from: Deep Star Maps 2020 and converting it using https://jaxry.github.io/panorama-to-cubemap/
See data/cubemap_space for more details.
- Parameters:
- Returns:
pyvista.TextureTexture containing a skybox.
Examples#
Download Python source code | Download Jupyter notebook
Display the cubemap as both an environment texture and an actor.
>>> import pyvista as pv
>>> from pyvista import examples
>>> cubemap = examples.download_cubemap_space_4k()
>>> pl = pv.Plotter(lighting=None)
>>> _ = pl.add_actor(cubemap.to_skybox())
>>> pl.set_environment_texture(cubemap, is_srgb=True)
>>> pl.camera.zoom(0.4)
>>> _ = pl.add_mesh(pv.Sphere(), pbr=True, roughness=0.24, metallic=1.0)
>>> pl.show()
See also
- Cubemap Space 4k Dataset
See this dataset in the Dataset Gallery for more info.