Inspiration
https://vimeo.com/85053197
https://vimeo.com/46176321
These two videos convey the idea of what I was aiming for. I wanted to leverage the power of proceduralism in Houdini to create animation. In my last project I couldn't render out things in time, so I spent more time in this project to get the lighting and texturing on this good. The reason these two videos work is because they did a good job of taking a sample representation from the generation and render it in High quality as opposed to rendering all or showing all the generations! I probably need a year to render all the animation that I create!
Lessons learnt in decision making:
- Adding a plate to the animation. I couldn't imagine Noodles falling on the ground. So I decided to keep the plate and only render representational genes that doesn't have chopsticks going through the plate. A lot of animations that I am generating has the Chopsticks going right through the plate or going underneath the ground plane. (Like the one I have right now, which is generation 1)
- Doing an evolutionary animation as opposed to still work. Having to parse 120 Frames of animation just made the process more time consuming.Each gene takes 2 minutes to sim (10 generation takes you 200 minutes of just watching the same simulation and waiting.) and 3-4 hours to render. If I were to do evolutionary algorithms again, I would definitely do something related to procedural modeling.
The Setup:
I have a Wire solvers to simulate Noodles and they fall the same way throughout the generations. Plate is a rigid body object that reacts to wire solvers.
Chopsticks : The starting and ending points of the chopsticks are the same. they are keyframed. The algorithm randomly assigns the Slope and Acceleration of the Animation curve. these two parameters determine the way Chopsticks are oriented and how low it will reach.
I only have two parameters that I am trying to optimize. (Slope and acceleration of the animation curve of Chopsticks) Each generation, I create 10 genes.(10 Houdini files) These two parameters get random values assigned initially. In subsequent generations the values assigned depends on the fitness function of each simulation.
Fitness function (Semi Automated) is determined by how much the bounding volume of the Noodles is moved. Depending on the Centroid(in Y axis) of the bounding volume over 120 frames, Fitness function could be high(Noodles has moved up) or low. (Noodles has stayed where it was) This fitness value determines the range of values that gets assigned in each generation. However 2 out of 10 genes still get random values assigned in each generation. (Mutation rate 0.2)
Manual part of all this is opening each houdini file to run the simulation! Houdini cannot simulate files which are not open! (Maybe there is a solution to this) So each time I have to open the file and hit run and wait for it to complete the sim and write out that value to a text file.
Also in many of these files, the chopsticks goes right through the Plate/Ground plane. Sometimes the Physics engine of the wires mess up and wires will actually be hanging in the air! Also there was an option to just reduce number of wires to 2 or 3 and get a really fast simulation and go to maybe 50 generations. I chose not to do it because I wanted this piece to be presentable and even with say 5 generations, we can chose the genes smart enough to convey the idea that it is improving over generations. Although this is not the perfect system that I hoped for, this system gives the Artist to hand pick and render the good simulation that it actually generates. I have only one gene rendered in this submission and I will render few more in a day. This was generation 1. Gene 8.
I will have 4 such videos rendered in High Quality in my final submission.
P.S : hey my first project is coming together pretty well!