DSPRelated.com
Forums

animation of rotating objects

Started by dupuyl December 13, 2002
Dear members,
I am trying to build an animation of a graphic object (isosurface)
rotating. I export image files of captures at different angles with
camorbit or view option, but the results are not good (camera target
seems to change).
Any suggestions?

n P;
axis off;
grid off;
for i=0:1:n

figure(1);
set(gca,'CameraTarget',[0,0,0]);
%camorbit(360/n,0);
%rotate(1,[0 0 1],360/n);
az = 360*i/n;
view(az,30);

filename = strcat('root',num2str(i),'.bmp')
print( '-dbmp','-r150',filename)
end