Monday, March 9, 2015

Day 1 - Procedural Forest

Procedural Forest
Moving on next, I did a procedural forest.
I created a grid and dived in to the node. Then I created a box and a copy node. I linked them together and this is what I get.

I added an uniform scale to scale it down. Then I added a mountain node.



After that, I added a scatter node and changed the points to about 500.



Next, in order to have the box scaled in different sizes, I added an attribute create node and named it as "pscale"

I added a paint node to make the terrain able to paint and make different sizes of the box.


For the paint tool, I could actually changed the merge mode to either add or subtract. Add will allow me to make the boxes bigger randomly while subtract will be the other way.


I'll need to create the trees now so I'll add in a lsystem node.


Next, I added a switch node. This node allows me to switch in between boxes and trees.



I went on to add a copy node. Then, I ticked on the stamp input so that it will allows me to activate whatever expressions that I've entered.
For the first variable, I wanted to make the trees rotate randomly, so I named it as "trRot" and added rand($PT)*360. 
Initially, I had problems making the random rotation but after that, I found out that I typed the wrong expression. I typed rand($PT*360) which it won't work.
The place where we put in bracket is important as it will determine if your expression would work a not.
I went back to the switch and switched it back to the terrain which works now.



I've completed the procedural forest tutorial part.

No comments:

Post a Comment