Tuesday, 5 July 2011

Week 04 Day 25, 5th July '11 (Tue)



Long weekend concluded, back to SESI office!
Janina taught me how to operate the coffee maker, don't have one back home - maybe we can consider it, seem like a good and fast way of making milo.

I had a slight experience creating terrain using height maps (you can look at it as displacement map, grayscale image created using softwares such as Adobe Photoshop) back in our Final Year Project.

Wanted to try another alternative of creating my molten surface and emboss text so here I go.
Again, credits to Khermah!

Height Map Video on Youtube by Khermah


00 - Create a "Grid", high # of rows and columns.















01 - Append "UVTexture SOP", we require "uv" attributes later.















02 - Dive into COP network, create "Color COP", set res to 1024 by 1024 - you can go lower or higher 512 by 512?















03 - Append "VOPCOPGEN2", the following network was created - it's simply adding 2 different noise together and outputting them. Noise patterns are grayscale unlike Surface Shading.















04 - There are 4 methods, this is the first. With the noise pattern created in COPs in mind, we jump back to SOPs.

Append "Point SOP", using tex() function inside Position Y parm - we will point it to the image generated inside of COPs and using it to transform the point positions giving us a mountainous result.

The long string "op:/obj/khermah_heightmap..." is pointing to where the image is located inside COPs.

"$MAPU" and "$MAPV" are the uv attributes and "L" stands for luminance (white to black).















05 - Second method, actually this one is the same as first but one extra step to simply stuff.
A custom attribute called "height" was created to represent the long tex() function from early.














Instead of having all that in Position Y, now we only have "$HEIGHT" in it!















06 - Third method, going back to VOPSOP! Append a new "VOPSOP".
We imported the "uv attributes" and used it for "Color Map node" which is fetching the noise pattern from COPs. The luminance value is then fed into Y point position. This gives the exact same result as using "Point SOP" with tex().

Before output.














After output.















07 - Fourth method, inside of the same VOPSOP from method 3 - Create "AddAttrib node", we want to add a "height" attribute that will be used by a "Point SOP" later.















08 - Using point() function with the height attribute in it, our mountainous landscape is back again.















09 - This part was learned it back in FYP. Use "ExtrudeVolume SOP" to for thickness.















The video side-tracked and showed another method of using VOPSOP.
It's just like how we isolated different color channels and altered their point position from earlier blog post, think it was day 22.

















R&D Molten Surface and Text
Decided to try out on my own, my plan is have a color being transferred from the fonts to the grid, then alter the point position in Y using that color information. Sounds simple, so let's do it.

00 - Having fonts transfer the color attribute to the grid via "AttribTransfer SOP".















01 - VOPSOP again!
Orange network is pushing the fonts upwards.
Green network is creating the cracks and noise through-out the grid.















02 - I would want a shader which can do light emission along the cracks in the later part but just couldn't wrap my head around it. How do you import the information (say the cracks area) into shader and tell Houdini to only shade those in red.

Approached Ari for help and he got me Charles, after understanding my problem - the solution was that we could copy the entire network from VOPSOP into a new material in SHOP context.

Then using a "Mix node" he fed the Crackle into the Bias Input and mixed 2 Lighting Models with different colors into it. But i'll have to update any parameter changes from VOPSOP and have the same values in SHOP, a copy/paste relative ref should do the trick i guess.















03 - Added "Material SOP", assigned the shader. Here comes another problem, the "LOS" fonts were gone. Thought having both Point Cd and Primitive Cd attribute was confusing it so i tried deleted them away then assigning material, still didn't work.















Before assigning material.


















After assigning material.


















Going to give forum a shot tomorrow, maybe someone can help.



Ari's Tornado Lesson with Metaballs, Force & Particle SOP

details coming soon...



end.

No comments:

Post a Comment