Tuesday, October 21, 2014

Monday, October 20, 2014

2 Generative artists

Ansel Hsiao - http://fractalsponge.net/
Procedurally generates spaceships. But it's pretty hard to get information on what methods he uses though.

Kenneth Huff - http://www.kennethahuff.com/
Creates life like qualities to 3D models that has simple composition but the textures make them really stand out.

Sunday, October 19, 2014

Final Project Ideas

1.  Procedural city (detailed)
Since I already made a procedural city in my first project. I want to take that to the next level by adding procedural trees, detailed buildings to that. From the 2d map data I can use the area of each building plot to guess how many storied building it is. I need to start with a building generator and then instancing those buildings based on the map data.

I can assume the map area which are not named to instance trees. These two videos sort of inspired me to take the project 1 further. If I do this right, this could be a useful Games asset as well.
https://vimeo.com/85581391
I like the way they divide the scene into communities and randomly generate communities. I think that's a good way to make things more manageable.
https://www.youtube.com/watch?v=V04dswEIcQU This channel belongs to a commercial software that creates buildings and environments. This could be useful reference as well.
https://www.youtube.com/watch?v=-d2-PtK4F6Y This serves as a good starting point as well.

2. 3D maze generator 
 I was reading about Maze generation and generating a Maze with only one solution. I think I can make a 2D Maze generator and convert that to 3D model. That sounds like something that can be done in Houdini.
http://en.wikipedia.org/wiki/Maze_solving_algorithm


Saturday, October 18, 2014

Evolutionary Chopsticks Final Video

Here's the link to the Final Animation. 
https://vimeo.com/109168758
Here's the code that I used inside a Python SOP in my Houdini network.I had to take a screenshot since I couldn't upload txt files in this blog.
Here's a screenshot of some of the files that were generated.
The reason for delay was that our Grad lab which has the render farm has Houdini 12.5 which is 3 years old. Old versions of Houdini does not have the Python Sop that I used extensively. I had to render everything in the Game lab and each file had to be rendered on different machines locally. I am pretty happy with the final output. But I wish I had a screen capture software license, the video would ve made more sense if I showed the process of creating the hip files.



Tuesday, October 14, 2014

Evolutionary Chopsticks - Honest trailer

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: 

  1. 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) 
  2. 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!