In this tutorial, we will show how to create a sphere with a texture.
Create a scene to start.
Load an image (png, bmp, jpeg or jpg) using
io.load_image. In this
example, we will use
read_viz_textures to access an image of the
Earth’s surface from the fury Github after using ‘’fetch_viz_textures()’’
to download the available textures.
Dataset is already in place. If you want to fetch it again please first remove the folder /Users/koudoro/.fury/textures
actor.texture_on_sphere to add a sphere with the texture from
your loaded image to the already existing scene.
To add a texture to your scene as visualized on a plane, use
Lastly, record the scene, or set interactive to True if you would like to manipulate your new sphere.
Total running time of the script: ( 0 minutes 5.088 seconds)