How can I project a jpeg over a sphere?
4 views (last 30 days)
Show older comments
I am trying to model a spacecraft orbiting around Jupiter, and I would like the sphere to actually look like the planet. Is there an easy way to do this?
I have seen that is possible to do it with the Earth, with something like topomap commands.
In case a jpeg is not a format directly supported by Matlab, do you recommend another way to achieve the same result, such as using an additional software package or even another program?
Thank you a lot.
0 Comments
Answers (2)
Bjorn Gustavsson
on 11 Jun 2013
You should take a look at: http://www.mathworks.se/matlabcentral/fileexchange/3777-tcolor-a-fast-pcolor-that-likes-rgb-images
If it doesn't do exactly what you want it to it should be perfectly simple to make a modified version that does exactly what you ask for.
HTH
0 Comments
Walter Roberson
on 11 Jun 2013
You can use a surface() object as described in http://www.mathworks.com/support/solutions/en/data/1-15PCO/?solution=1-15PCO and also http://www.mathworks.com/help/matlab/visualize/coloring-mesh-and-surface-plots.html#f0-9250
You can also use patch() objects instead of surface() objects.
0 Comments
See Also
Categories
Find more on Earth and Planetary Science in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!