From: Tony Zhao on
I've also tried using view and camorbit but ultimately, I am trying to show the Earth rotating and have the viewer's perspective be stationary. I don't think this is possible using view/camorbit but thanks for your help anyways.

Tony

Walter Roberson <roberson(a)hushmail.com> wrote in message <i2a54s$g4o$1(a)canopus.cc.umanitoba.ca>...
> Tony Zhao wrote:
>
> > %Create a spherical Earth model
> > [x,y,z] = ellipsoid(0,0,0,Earth_radius,Earth_radius,polar_radius,npanels);
> > Earth = surf(-x,-y,-z);
> >
> > %Load Earth image for texture map
> > cdata = imread(image_file);
> >
> > set(Earth,'facecolor','texturemap','cdata',cdata,'facealpha',alpha,'edgecolor','none');
> >
> >
> > The image_file is a .jpg file of the Earth from a NASA website. I am
> > essentially superimposing this image on my Earth model. My problem
> > earlier was rotating this .jpg file so that when I animate it, it looks
> > like the Earth is essentially rotating.
>
> Perhaps just change the view(), or use camorbit() ?