|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
- ap=0;
- load topo
- figure('colormap',topomap1,'Color',[.8 .8 .8]); % <6>
- [x,y,z] = sphere(50);
- azzy.DataAspectRatio = [1 1 1];azzy.PlotBoxAspectRatioMode = 'auto';
- fa = axes('Visible','off', azzy);
- szzy1.AmbientStrength = 0.1;szzy1.DiffuseStrength = 1;
- szzy1.SpecularColorReflectance = .5; szzy1.SpecularExponent = 20;
- szzy1.SpecularStrength = 1;
- surface(x,y,z,szzy1,'FaceLighting','phong','FaceColor','texture',...
- 'EdgeColor','none','Cdata',topo,'Parent',fa);% <13>
- if ap==1,set(fa,'CameraViewAngle',0.1*get(fa,'CameraViewAngle'));end
- light('position',[-1 0 1],'color',[0.5 1 0.5]);
- light('position',[-1.5 0.5 -0.5],'color',[.6 .2 .2]);
- light('Position',[1.5 1.5 -1]);
- light('Position',[0 -1.5 0],'color',[0.6 0.6 1]);
- view([-17 26])
- set(gca,'CameraViewAngleMode','manual')
- ang=get(gca,'CameraViewAngle');
- kk=(1:50)/50;nk=length(kk);
- for i=1:nk
- newang=ang+kk(i)*(180-ang);
- set(gca,'CameraViewAngle',newang)
- drawnow
- end
复制代码
[ 本帖最后由 suffer 于 2006-10-9 19:14 编辑 ] |
|