-
Hi everyone, First off huge thank you to everyone contributing. I have been testing this package out and have been loving the performance and visuals it can produce. I was looking through the example code and specifically have a question about Is there a location that lists all of the available textures and maybe ways to add your own? Apologies ahead of time if it is in an obvious place, I looked around the GitHub and was unable to find anything. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hey @Hedonical! Thanks so much for the feedback - it's really appreciated indeed 🍻 So glad that you've found Okay, so yes, there are other textures available "out-the-box" with You can find them squirreled away in the geovista.pantry.textures module. So, for example you can do the following: import geovista as gv
import geovista.pantry.textures
p = gv.GeoPlotter()
p.add_base_layer(texture=gv.blue_marble())
p.show() As a convenience, these textures are explicitly imported into the import geovista as gv
import geovista.pantry.textures
p = gv.GeoPlotter()
p.add_base_layer(texture=geovista.pantry.textures.blue_marble())
p.show() Our texture mapping support is rather primitive at the moment, and is only available through the The deal at the moment is that the texture you provide to In the meantime, you can indeed give any e.g., rather than the stock NASA Blue Marble, you may alternatively want to use the lush NASA Black Marble. If you manually download the NASE Black marble, say to the file import geovista as gv
import pyvista as pv
texture = pv.read_texture("blue-marble.jpg")
p = gv.GeoPlotter()
p.add_base_layer(texture=texture)
p.show() Which will give the following: black-marble.mp4Does this help? |
Beta Was this translation helpful? Give feedback.
-
@Hedonical You've inspired me to raise issue #992, to add the NASA Black Marble to |
Beta Was this translation helpful? Give feedback.
-
@Hedonical Just out of curiosity, what platform are you running |
Beta Was this translation helpful? Give feedback.
Hey @Hedonical!
Thanks so much for the feedback - it's really appreciated indeed 🍻
So glad that you've found
geovista
and enjoying the experience so far 😄Okay, so yes, there are other textures available "out-the-box" with
geovista
You can find them squirreled away in the geovista.pantry.textures module.
So, for example you can do the following:
As a convenience, these textures are explicitly imported into the
geovista
namespace. Alternatively, the following is explicitly equivalent to the above: