Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2008-12-07
年龄: 36
帖子: 5
声望力: 0 ![]() |
![]()
怎么吧这个会移动的球体的旧图像消除啊???????????
程序和图片没关系,我只是把图片纹理映射到球体上而已。主要是球体在移动的时候,以前的就图像没有消去,我用了几个方法都不管用。 代码:
h(1) = axes('Position',[0 0 1 1]); [x,y,z] = sphere(30); I = imread( 'diqiu.jpg' ); earth=warp( x, y, z, I ); axis vis3d off for i=0:0.05:0.6; drawnow; h(2) = axes('Position',[i 0 .4 .6]); [x1,y1,z1] = sphere(30); I1 = imread( 'moon3.bmp' ); moon=warp( x1, y1, z1, I1 ); camlight right h=[h(1),h(2)]; set(h,'Visible','off') end |
![]() |
![]() |
![]() |
主题工具 | |
显示模式 | |
|
|
![]() |
||||
主题 | 主题作者 | 版面 | 回复 | 最后发表 |
[求助]关于三维画图的问题 | duckliton | MATLAB论坛 | 6 | 2008-12-15 18:55 |
[求助]matlab编程 | huanghuan | MATLAB论坛 | 0 | 2008-11-23 21:42 |
GM(1,1) | lvlianggan | MATLAB论坛 | 2 | 2008-11-07 22:52 |
[求助]在SIMULINK里,如何将inegrator上方的箭头移到下面去 | yijianmei | MATLAB论坛 | 1 | 2008-07-24 10:15 |
Simplify Instrument Communication: Using Instrument Drivers with the Instrument Contr | TechnicalArticles | MATLAB技术文章 | 0 | 2008-01-06 16:32 |