Hi All,
I have been playing with openscad, and i love it:)
this is my toy project i have been working on:
https://github.com/e7dal/tribbles
basically what i have done is create a chain of my special triangular
blocks,which i will now call a tribble
after that i created a timeslice function, which animate each added block
in it's own time slice.
here is a sample image:
https://www.flickr.com/photos/e7dal/25135527145/in/dateposted/
here is a sample animation
https://www.flickr.com/photos/e7dal/24514525184/in/photostream/
please have a look at the tribbles.scad in animation mode at my repo, to
see the animation at work.
i wanted to do the same with a random chain of blocks, but that gave me
very unexpected results.
because the random list of block becomes a new random list and any value $t
for a given step.
That's why i had to introduce a randomizing variable, which will just
disable the whole animation with timeslices, which is not so cool:( i can
get the random list from the console and paste it in to new file to see it
animating. or to this kind of randomizing in an another tool, and just
preview the animation in openscad.
these are the questions i have now:
Any help or feedback is welcome,
Thanks,
Kind regards,
Erdal Yildiz
Erdal Yildiz wrote
these are the questions i have now:
Q1- Is there a way to generate random values for a single animation?
Q2- Is there any other setting or configuration i am missing?
Q3- is there a way to start openscad with a file, directly in animation
mode?
Q4- what is the best way to calculate/detect collision in openscad, that
some
of my random blocks are going to be in the same space?
and a more general question:
Q5- what is the best way make the animation perform faster, for larger
amount
of blocks?
Sorry haven't looked at your code, but;
Q1/2. Use the rands(seed_value=) parameter?
Q3. Not that I know of.
Q4. Complicated trigonometry? Sorry.
Q5. Get a faster PC. Use the dump feature and make a video.
Admin - PM me if you need anything, or if I've done something stupid...
Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.
View this message in context: http://forum.openscad.org/troubles-in-my-tribbles-questions-about-t-in-animate-mode-and-random-values-tp16219p16244.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Q3 : it's messy and requires scripting but i have implemented collision
detection by intersecting the two modules i'm interested in and exporting
that as STL. If the STL is empty then the two modules don't collide.
On Thu, Feb 25, 2016 at 10:26 PM, MichaelAtOz oz.at.michael@gmail.com
wrote:
Erdal Yildiz wrote
these are the questions i have now:
Q1- Is there a way to generate random values for a single animation?
Q2- Is there any other setting or configuration i am missing?
Q3- is there a way to start openscad with a file, directly in animation
mode?
Q4- what is the best way to calculate/detect collision in openscad, that
some
of my random blocks are going to be in the same space?
and a more general question:
Q5- what is the best way make the animation perform faster, for larger
amount
of blocks?
Sorry haven't looked at your code, but;
Q1/2. Use the rands(seed_value=) parameter?
Q3. Not that I know of.
Q4. Complicated trigonometry? Sorry.
Q5. Get a faster PC. Use the dump feature and make a video.
Admin - PM me if you need anything, or if I've done something stupid...
Unless specifically shown otherwise above, my contribution is in the
Public Domain; to the extent possible under law, I have waived all
copyright and related or neighbouring rights to this work. Obviously
inclusion of works of previous authors is not included in the above.
View this message in context:
http://forum.openscad.org/troubles-in-my-tribbles-questions-about-t-in-animate-mode-and-random-values-tp16219p16244.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