Animation fun with LDCad


Animation fun with LDCad
#1
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:
  • Load model in LDCad
  • Model -> edit header -> scripting tab
  • Browse to the script you want to try / OK
  • Click on model name on top right of edit window and choose "animation" mode
  • Play and enjoy!


Attached Files
.mpd   10018 - Darth Maul-flat.mpd (Size: 85.27 KB / Downloads: 49)
.zip   LDCad animation scripts.zip (Size: 6.76 KB / Downloads: 65)
Reply
Re: Animation fun with LDCad
#2
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.
Reply
Re: Animation fun with LDCad
#3
Thanks Wink
Don't forget the examples provided by Roland (available in LDCad example models) and his tutorial videos (LDCad animation tutorial part 1/2/3)!
Reply
Re: Animation fun with LDCad
#4
Scripts are fun aren't they Smile

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.
Reply
Re: Animation fun with LDCad
#5
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.
Jaco van der Molen
lpub.binarybricks.nl
Reply
Re: Animation fun with LDCad
#6
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...
Reply
Re: Animation fun with LDCad
#7
OK, I got that to work!
Two more questions though:
1. Can I change the background
2. How do you create a Youtube clip?
Jaco van der Molen
lpub.binarybricks.nl
Reply
Re: Animation fun with LDCad
#8
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)
Reply
Re: Animation fun with LDCad
#9
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... :-)
Jaco van der Molen
lpub.binarybricks.nl
Reply
Re: Animation fun with LDCad
#10
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
Reply
Re: Animation fun with LDCad
#11
As suggested by Roland, I made a single script with all animations, get it here.


Attached Files
.zip   model-build-animations.zip (Size: 1.82 KB / Downloads: 43)
Reply
Re: Animation fun with LDCad
#12
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


Attached Files
.mpd   10018 - Darth Maul-flat-sub.mpd (Size: 84.91 KB / Downloads: 23)
.zip   brick drop build rotate.zip (Size: 1.57 KB / Downloads: 29)
Reply
Re: Animation fun with LDCad
#13
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.
Youtube video is here
Love it! Got to try it! :-)
Jaco van der Molen
lpub.binarybricks.nl
Reply
Re: Animation fun with LDCad
#14
Fabulous !
Reply
Re: Animation fun with LDCad
#15
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 Smile
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)