Animation fun with LDCad - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html) +--- Thread: Animation fun with LDCad (/thread-20337.html) |
Animation fun with LDCad - Philippe Hurbain - 2016-02-02 I wrote a few animation scripts for LDCad that build/explode/dissolve a model... You may see the results in this Youtube playlist. The scripts are attached here, as well as the model used for the videos: a "flattened" (submodels inlined) of Makou's CAD model of 10018 - Darth Maul To test these scripts on you own model:
Re: Animation fun with LDCad - Joel Hoornbeek - 2016-02-02 Thank you, Philippe! I just saw your sample video over on Eurobricks. I've never worked with Lua before, so I really appreciate having some useful samples to play with and learn from. Re: Animation fun with LDCad - Philippe Hurbain - 2016-02-02 Thanks Don't forget the examples provided by Roland (available in LDCad example models) and his tutorial videos (LDCad animation tutorial part 1/2/3)! Re: Animation fun with LDCad - Roland Melkert - 2016-02-02 Scripts are fun aren't they Just be sure to reload the model (F05) before using a different script while an existing one is linked. This to prevent a known bug related to the active animation. Sorry about that. Also you can drag and drop the script from e.g. explorer into the program to link it. Re: Animation fun with LDCad - Jaco van der Molen - 2016-02-03 Wow! This is so cool. I was looking for this kind of animation a while ago (I asked Roland about it then). The bottom up and brick layer have my particular interest. Would it be possible to do something like this: https://www.youtube.com/watch?v=KDSCBbUbgUA So whilst the bricks come flying in slowly turn the model too? I am not talking about the rendering quality or background, just the movement of the bricks and the model. Re: Animation fun with LDCad - Philippe Hurbain - 2016-02-03 I think it's possible, yes. Roland promised scripted camera control in 1.6 making this easier, but rotating the whole model is not so difficult either... Re: Animation fun with LDCad - Jaco van der Molen - 2016-02-03 OK, I got that to work! Two more questions though: 1. Can I change the background 2. How do you create a Youtube clip? Re: Animation fun with LDCad - Philippe Hurbain - 2016-02-03 Actually both questions are related: to make the clip I use LDCad "export animation" that saves frames as png images. You are given the choice of image size and background color. Then I assemble the images with AviDemux (just load the 1st images from the images folder, Avidemux loads the other ones). Save clip in the format you want (eg. avi format, codec H264, default settings) Re: Animation fun with LDCad - Jaco van der Molen - 2016-02-03 Ah, yes. OK thanks Philo. Alas my old laptop does not support OpenGL stuff, so I cannot export. I'll try on my work PC... :-) Re: Animation fun with LDCad - Roland Melkert - 2016-02-03 Jaco van der Molen Wrote:Alas my old laptop does not support OpenGL stuff, so I cannot export.OpenGL >=3.0 is needed for the exports (due to FBO usage). Rendering it self can go as low as OpenGL 1.1 Re: Animation fun with LDCad - Philippe Hurbain - 2016-02-04 As suggested by Roland, I made a single script with all animations, get it here. Re: Animation fun with LDCad - Philippe Hurbain - 2016-02-04 Here is the script with rotation (that applies to a model whose parts are all contained in a single subpart named "main.ldr", and the properly subparted Darth Maul model. Youtube video is here Re: Animation fun with LDCad - Jaco van der Molen - 2016-02-04 Philippe Hurbain Wrote:Here is the script with rotation (that applies to a model whose parts are all contained in a single subpart named "main.ldr", and the properly subparted Darth Maul model.Love it! Got to try it! :-) Re: Animation fun with LDCad - Trevor Sandy - 2016-02-04 Fabulous ! Re: Animation fun with LDCad - Roland Melkert - 2016-02-04 Much easier to use. I think the layered drop one is my favorite. Only thing missing is a 'sudden gravity' one with dropping / bouncing bricks |