5°5cm animation
This commit is contained in:
parent
b552d671d5
commit
b8ff57922b
11
.gitignore
vendored
11
.gitignore
vendored
@ -1,6 +1,17 @@
|
|||||||
*.code-workspace
|
*.code-workspace
|
||||||
*.ist
|
*.ist
|
||||||
|
|
||||||
|
# additional folders not required
|
||||||
|
BundleTrack-master/
|
||||||
|
TEASER-plusplus-master/
|
||||||
|
20objects/
|
||||||
|
quellen/
|
||||||
|
|
||||||
|
# ffmpeg
|
||||||
|
frame*.png
|
||||||
|
palette.png
|
||||||
|
*.gif
|
||||||
|
|
||||||
## Core latex/pdflatex auxiliary files:
|
## Core latex/pdflatex auxiliary files:
|
||||||
*.aux
|
*.aux
|
||||||
*.lof
|
*.lof
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 9.8 KiB |
@ -1,5 +0,0 @@
|
|||||||
color([1,0,0]) rotate([0,0,0]) translate([0,0,0]) cube(10,true);
|
|
||||||
color([0,0,1,0.5]) rotate([5,5,5]) translate([5,5,5]) cube(10,true);
|
|
||||||
|
|
||||||
translate([20,-5,-8]) rotate([90,0,90]) text("<-------->", 2);
|
|
||||||
translate([20,-3.5,-10]) rotate([90,0,90]) text("10 cm", 2);
|
|
BIN
assets/5grad5cm/5grad5cm.png
Normal file
BIN
assets/5grad5cm/5grad5cm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
25
assets/5grad5cm/5grad5cm.scad
Normal file
25
assets/5grad5cm/5grad5cm.scad
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
// Set viewport
|
||||||
|
$vpt=[0,0,0];
|
||||||
|
$vpr = [58, 0, 138];
|
||||||
|
$vpd = 70;
|
||||||
|
|
||||||
|
// working with 25 FPS and 100 steps
|
||||||
|
move = $t*5;
|
||||||
|
echo(move);
|
||||||
|
|
||||||
|
// side-length of cube
|
||||||
|
length = 10;
|
||||||
|
|
||||||
|
// move to origin
|
||||||
|
translate([length/2, length/2, length/2]){
|
||||||
|
// blue origin position
|
||||||
|
color([0,0,1]) rotate([0,0,0]) translate([0,0,0]) cube(length,true);
|
||||||
|
// red translated and rotated position
|
||||||
|
color([1,0,0,0.9]) rotate([move,move,move]) translate([-move,move,move]) cube(length,true);
|
||||||
|
// arrow
|
||||||
|
translate([5,-5,-8]) rotate([90,0,90]) text("<-------->", 2);
|
||||||
|
// text annotation
|
||||||
|
translate([5,-3.5,-10]) rotate([90,0,90]) text("10 cm", 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
// to export check "Dump Images" on the animation view
|
2
assets/5grad5cm/creategif.sh
Executable file
2
assets/5grad5cm/creategif.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
ffmpeg -i frame%5d.png -vf palettegen palette.png
|
||||||
|
ffmpeg -v warning -framerate 25 -i frame000%2d.png -i palette.png -lavfi "paletteuse,setpts=6*PTS" -y sample.gif
|
Loading…
Reference in New Issue
Block a user