Tuesday, April 19, 2011

Day 32

Today I continued working on the dust render. But I kept encountering the same problem that I have experienced yesterday. The render came up looking like spheres and points.

I consulted Mr Ron on this and he helped me uncheck point instancing and the render works already.

Below is the before and after:



Mr Ron also took a look at my instancing file. He advised me that, the method I am using for the point instancing takes up too much time to cook. Hence, making the scene work slower. He helped me set up something which works the same way and also runs faster. Below is how the hierarchy looks,

And how the instancing looks,

Hierarchy:









































This is the parameters view on the instance node on the geometry level. Mr Ron suggested that the instancing shouldn't be done here as there are limitations to what it can control.

He suggested doing on the point sop inside the geometry.





















As you can see, at the bottom of the parameters view for the point sop, there is also an instance tab. The expression is then keyed in here.

I made 2 instanced objects:

Geometry 1:





















This is made from a box and a mountain node.


Geometry 2:





















This is created the same way.

Back to the expression, the expression " /obj/geo`$ID%2` " is keyed in.

What this expression does is, it gives the particle ID a alternate value of 0 or 1.

Then a new attribute seed is created. And the same expression is keyed in.

After that is done, as shown in the details view, the last column,





















The particle ID is replaced by the variable seed. And after that, the instanced geometry is shown at the end.

particle ID 0 = instance/geo0
particle ID 1 = instance/geo1

Below is how it looks,

No comments:

Post a Comment