filmov
tv
How to create a 3D scatterplot animation

Показать описание
In this video I explain how to create a 3D scatterplot animation using an Octave (also Matlab) script and Image Magick tool.
The source code is as follows:
# call octave to create all snapshots
octave create_snapshots.m
# reduce size of images, if needed
mogrify -resize 500x375 scatter*.png
# create animated GIF
# if you want to create a swf with the animation
file 2 - create_snapshots.m
clear all;
# define velues for each axis (in this case random values)
axis_X = rand(1, 400);
axis_Y = rand(1, 400);
axis_Z = rand(1, 400);
# create 360 snapshots (1 per degree)
figure(1);
t = 100;
for degree=1:360
# clear graph
clf;
# plot 3d snapshot with small dots "."
plot3(axis_X, axis_Y, axis_Z, ".");
# configure label names and axis intervals [0, 1]
xlabel("X Label");
ylabel("Y Label");
zlabel("Z Label");
axis([0 1 0 1 0 1]);
# rotate the graph according to current degree
view(degree, 30 + 15 * sin(degree/60));
# save the current snapshot file
plotname = ['scatter_t', num2str(t), '.png'];
print(plotname, '-dpng');
t = t + 1;
end;
The source code is as follows:
# call octave to create all snapshots
octave create_snapshots.m
# reduce size of images, if needed
mogrify -resize 500x375 scatter*.png
# create animated GIF
# if you want to create a swf with the animation
file 2 - create_snapshots.m
clear all;
# define velues for each axis (in this case random values)
axis_X = rand(1, 400);
axis_Y = rand(1, 400);
axis_Z = rand(1, 400);
# create 360 snapshots (1 per degree)
figure(1);
t = 100;
for degree=1:360
# clear graph
clf;
# plot 3d snapshot with small dots "."
plot3(axis_X, axis_Y, axis_Z, ".");
# configure label names and axis intervals [0, 1]
xlabel("X Label");
ylabel("Y Label");
zlabel("Z Label");
axis([0 1 0 1 0 1]);
# rotate the graph according to current degree
view(degree, 30 + 15 * sin(degree/60));
# save the current snapshot file
plotname = ['scatter_t', num2str(t), '.png'];
print(plotname, '-dpng');
t = t + 1;
end;
Blender Tutorial – How to Use AI to Create 3D Models (ChatGPT and Blender)
How to Generate 3D Models | Free | 2024
How To Make 3D Animation Videos free - This AI Tool Creates 30-Minute Videos With One Prompt
How to Animate 3D Characters in 1 Minute
Designing Your First Functional 3D Printed Parts | Basic Fusion 360 3D Printing
How to Make 3D Bottle in Adobe Illustrator
3D flashcard prototype in Figma
Blender Noob vs Pro Modeling a Pawn #blendertutorial #blenderforbegginer #blender #3d #tutorial
Create 3D Shadow Text Effects in Photoshop (Step-by-Step) #photoshop #photoediting #socialmediamagic
How I designed a SIMPLE 3D MODEL in twenty minutes that made me $100💰
Terrain - Unity in 30 seconds
3D Gear Icon Design in Adobe Illustrator | Illustrator Tips and Tricks
How To Make A 3D Text In After Effects
5 Tips to start designing your own 3D printed parts - Tinkercad
Simple ways to create your own 3D models for 3D printing
AutoCAD switch from 2D to 3D | AutoCAD 3D Settings | #Shorts
3D Printing for Blender users?😰 - Let's figure that out
How to connect 3D Printed Parts!
How to design things for 3d printing using Blender in 60 seconds. #shorts
3D printed illusion: Breaks the laws of physics! 🤯
World's Largest DIY Hologram!
How to create 3D Website Designs With No Code
How a 3D Printer works
Ceramic Mug from 3D Printed Mold
Комментарии