If I was to put my video and code up as an example on the OpenSCAD site
where would I put it? And please remember, what I have is not nearly as
cool as Trygon's and the code to do this may not be the best way to do it
but what I came up with works. But maybe if someone looks at it they can
make suggestion on ways to make it better or easier to do. Once I had the
animation steps completed in OpenSCAD dumping the frames and creating the
separate videos and then merging them together only took about 30 minutes.
On Wed, Jan 27, 2016 at 3:56 PM, Rob Ward rl.ward@bigpond.com wrote:
I second that, it is rather inspiring.
On 28 January 2016 9:01:16 AM AEDT, Peter Falke <
stempeldergeschichte@googlemail.com> wrote:
It would be cool to put your video and, if your willing, your code up, as
an exaple on the OpenSCAD website.
2016-01-27 20:48 GMT+01:00 fractorr fractorr@gmail.com:
FFMPeg is pretty cool, I was able to create a video from several
animations
(25) captured from Open SCAD and stitch them altogether to make one
video.
Not nearly as bad ass as your video but it worked well for what I was
after.
--
View this message in context:
http://forum.openscad.org/Product-Video-produced-with-OpenSCAD-tp15783p15947.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
You could put it on github, and then link to it, that way you will be able
to update it and have multiple contributers to improving it, a sort of nano
open source project.
Put the sample video on youtube where it can be linked to, put the
refferences to the video, github repo and the openscad site url into the
video description on youtube, and into the README.md file on github.
On Jan 28, 2016 2:49 PM, "Trevor Orr" fractorr@gmail.com wrote:
If I was to put my video and code up as an example on the OpenSCAD site
where would I put it? And please remember, what I have is not nearly as
cool as Trygon's and the code to do this may not be the best way to do it
but what I came up with works. But maybe if someone looks at it they can
make suggestion on ways to make it better or easier to do. Once I had the
animation steps completed in OpenSCAD dumping the frames and creating the
separate videos and then merging them together only took about 30 minutes.
On Wed, Jan 27, 2016 at 3:56 PM, Rob Ward rl.ward@bigpond.com wrote:
I second that, it is rather inspiring.
On 28 January 2016 9:01:16 AM AEDT, Peter Falke <
stempeldergeschichte@googlemail.com> wrote:
It would be cool to put your video and, if your willing, your code up,
as an exaple on the OpenSCAD website.
2016-01-27 20:48 GMT+01:00 fractorr fractorr@gmail.com:
FFMPeg is pretty cool, I was able to create a video from several
animations
(25) captured from Open SCAD and stitch them altogether to make one
video.
Not nearly as bad ass as your video but it worked well for what I was
after.
--
View this message in context:
http://forum.openscad.org/Product-Video-produced-with-OpenSCAD-tp15783p15947.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Peter,
You are more than welcome to embed the video on the OpenSCAD website if you
want to.
The code is not very pretty in many places and lacking in comments, so I
don't think that posting it as an example is a good idea at present. It is
also dependent on a number of libraries that I have written and that just
adds to the issues.
Cheers,
Trygon
--
View this message in context: http://forum.openscad.org/Product-Video-produced-with-OpenSCAD-tp15783p15962.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Here is my first attempt at using the animation feature in OpenSCAD. Nothing
fancy, just me trying to figure out how to do multiple animations to create
one big animation.
https://youtu.be/PqcUOKnN2P8 https://youtu.be/PqcUOKnN2P8
--
View this message in context: http://forum.openscad.org/Product-Video-produced-with-OpenSCAD-tp15783p15964.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
A few more tips on using FFmpeg:
In some scripting languages (you will soon get bored typing in FFmpeg
commmand options) % is a special character and has to be included by
escaping it using a preceeding % so:
-i frame%05d.png on the command line becomes:
-i frame%%05d.png within a script
If you want a particular video resolution, you can set up the OpenSCAD
window so that it is too large and then crop the images using FFmpeg:
-vf crop=1280:720
The -y option stops FFmpeg asking before overwriting the output file,
useful while iteratively perfecting a video sequence:
ffmpeg -y -start_number 0 -framerate 25 -i frame%05d.png -vf crop=1280:720
-c:v libx264 -pix_fmt yuv420p segment1.mp4
file 'segment1.mp4'
file 'segment2.mp4'
file 'segment3.mp4'
The following command glues the segments specified in "GlueList.txt" into a
video called "MyVideo", video (& audio) is copied without re-encoding:
ffmpeg -f concat -i GlueList.txt -c copy MyVideo.mp4
Cheers,
Trygon
--
View this message in context: http://forum.openscad.org/Product-Video-produced-with-OpenSCAD-tp15783p15971.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Not sure how everyone else does animations with multiple sequences but this
is what I came up with.
Step #1. I create sub directories for each step, so if there is 25 steps I
create 25 sub directories (step-01 through step-25).
Step #2. I turn on animation, enter in my values, I used 30 for FPS and 25
for Steps.
Step #3. I click Dump Pictures. When dump pictures unchecks I move all of
the frames into the appropriate sub directory.
Step #4. I then change the variable step from 2 to 3 and repeat Step #3
until all 25 animations have been dumped.
I then use ffmpeg to combine all the frames into single mp4 files and then
concatenate all 25 mp4 files into one larger mp4.
When this runs part1() is called and moves the part for the duration of the
animation and then when the animation is completed it draws it into its
final position and then calls the next part module: part2() and the process
is repeated. When the variable step is at say 3 then modules part1() and
part2() only draw the object in the final position and the step3() module
does it's animation.
I would like to hear feedback on this process, if there is any easier way to
do this I would love to hear but being a newbie to OpenSCAD this is what I
came up with. As far as I could find there are not run time variables so I
could not figure out a way to have one module to do the animation that would
just accept a bunch of parameters.
Inch = 25.4;
function i2m(inches) = inches * Inch;
step = 2;
part1();
module rectangle() {
import("rectangle.stl");
}
module part1() {
translate([i2m(0), 0, 0])
rotate([0, 0, 0])
rectangle();
part2();
}
module part2() {
if (i2m(1.5-($t4)) > 0 && step==2) {
translate([i2m(3.0-($t4)), 0, 0])
rotate([0, 0, 0])
rectangle();
} else if (step >= 2){
translate([i2m(1.5), 0, 0])
rotate([0, 0, 0])
rectangle();
part3();
}
}
module part3() {
if (i2m(1.5-($t4)) > 0 && step==3) {
translate([i2m(4.5-($t4)), 0, 0])
rotate([0, 0, 0])
rectangle();
} else if (step >= 3){
translate([i2m(3.0), 0, 0])
rotate([0, 0, 0])
rectangle();
part4();
}
}
--
View this message in context: http://forum.openscad.org/Product-Video-produced-with-OpenSCAD-tp15783p15972.html
Sent from the OpenSCAD mailing list archive at Nabble.com.