Wednesday, 27 July 2011

Week 06 Day 40, 20th July '11 (Wed)

You probably noticed the routine by now, every Wednesday there's internal activity going on so we'll spend the morning doing that. A few really exciting ideas came to me during the activity, going to work on some personal project when I return to Singapore! Back to work after lunch.



Research on Hammer's Material
http://www.temperaworkshop.com/tools/gold-hammer.jpg
After getting feed-backs from Steven and Ari, I make a decision to do some research on exactly what material should my hammer be made of, of course it's metal but there are many types (Iron, steel, bronze, copper, stone?).

Asked myself, if this is ancient era - had people already discovered steel or are they still using iron?
Which led me to the following sites and in the process gained more general knowledge,

Minerals & Hammer related links,
http://paleo.cc/paluxy/hammer.htm
http://www.rocksandminerals4u.com/properties_of_minerals.html
http://www.bestcrystals.com/hardness.html
http://en.wikipedia.org/wiki/Mohs_scale_of_mineral_hardness 
http://en.wikipedia.org/wiki/Steel
http://en.wikipedia.org/wiki/11th_century_BC
http://www.historyworld.net/wrldhis/PlainTextHistories.asp?historyid=ab16 

Index of Refraction (IOR) list from a cgsociety thread - bookmark this if you haven't got one,
http://forums.cgsociety.org/archive/index.php/t-513458.html

Conclusion - mine is going to be a steel hammer, moving on to next phase.



Painting Color Map
With the textures and custom Photoshop brushes (cracks/scratches) prepared last evening, I jumped into Photoshop. The last time i painted textures was months ago during Advanced Lighting & Photorealistic Rendering module conducted by Mr Pang where me & Pamela integrated Transformer, Bumble Bee into a live-still shot.

Focused most of my attention on places where the camera would see especially where close-up shots occur, will put more effort into it next time - priority now is to get this over with and move on, being a single man... it's not wise to be a perfectionist doing work which the camera can't see.

These are a few iterations I went through, v002, v004 & v006 respectively...

























Note: While i was working on this, I discovered that even though you activated "Color Map" option - if you don't untick "Base Color" option, it would still add on to the color contribution which i believe is bad since it changes the color of your actual map. What you want is what you see is what you get right?



Render 08_hammer turntable
With good progress on the color map, shall send this to render before heading home.
Had a new camera set up to render close up of the hammer head.

 



end.

Tuesday, 26 July 2011

Week 06 Day 39, 19th July '11 (Tue)

Molten Shader: Displacement Bound Fixed!
At last, somebody saved the day and today the somebody is Symek on odforce!
The problem was due to having displacement bound parameter installed on both Object and Shader level, apparently everybody got the presidency wrong - Object level overwrites Shader leve settings.

Check out his reply,
http://forums.odforce.net/index.php?/topic/13649-q-fixing-displacement-bound/

Before











After




Render 01_sh020
Was going to carry on refining the hammer so i threw the fixed shader into sh020 and send it off to the render farm.

01_sh020_shader_not_loaded
This one was initially rendering on a single machine, I interrupted the render and resumed it on the farm when it was available. The compiled shader (.otl) was not read by HQueue, making it not render the molten surface.

 

Troubleshooting compiled shader & HQueue issue
Went to check with Eric if it was my fault or HQueue's, maybe i broke something or missed a step when sending in the job. Eric checked the ROPs nodes and everything appears to be fine, he suspected the same that the .otl shader wasn't sent to the farm as it wasn't part of the hip file. 

He then suggested we go try google and as expected, we found some answers leading us to sidefx docs & odwiki (Wikipedia on odforce) with instructions to embed an otl into a hip file.

Below are the links,

We gave these a shot, going to the shader, right-click to "Operator Type Manager", "Configuration Tab" & ticked "Save Operator Definition to Hip File".
Surprisingly, it did not work! I just randomly ticked/unticked the rest of the options - none helped either.
Guess I'll live with this for the time being, ignoring this won't halt my entire project.

Meanwhile I am dropping this problem on forum, maybe some kind soul will provide the solution!

Went back to rendering the remaining sequence on a single machine, enjoy.

01_sh020 



Refining Hammer Model
Back to hammer... painting more scratch/dent/crack details onto the diffuse & displacement maps.
Here's a new render,
07_hammer
 



Image Textures Hunting
It's time to start putting some serious wear & tear on the hammer to make it ancient looking. Went through my textures library mostly from personal projects and some school assignments (It's good habit to have one, especially you wish to become a texture artist) and some free texture websites such as...

www.cgtextures.com
www.filterforge.com

These are my 2 favourite sites as they provide decal textures!



New IT Tech came into SESI
Met SESI's new IT Tech - Adam. This post was updated later so i've already known him for almost a week now, he's helpful and approachable - couple of us had packages come in since we did some shopping on www.amazon.com and he was kind to hold onto them for us. Felt bad making me sign these items as he sits closest to the door. Welcome and thanks again, Adam!




end.

Sunday, 24 July 2011

Week 06 Day 38, 18th July '11 (Mon)

Skipping the boring start of my day, what i did were:
- Update blog
- Browse the forums and checked e-mails
- Updating documentations on molten shader after clarifying doubts with Charles





Broken Molten Shader, Fixed!
I sent my progress to Steven last week and brought up the issue where the shader breaks upon copy/pasting from one Houdini session to another. His suggestion of compiling the shader worked, compiled it as an .OTL and installed it back on sh020 scene file helped the shader function properly!

RMB the shader to compile, select "Compile VEX as..." & save it to your folder (create a folder named "otl", helps keeping yourself organized).















Molten Shader WIP: Tweaking shader and grid size
This shader was being built and tested on a different hip file so i guess i should have the same grid size and rows/columns on both this and sh020 hip file so i don't get any unexpected results when i compile it and install it as a digital asset back later.

Here on, all that's left is continue improving, tweaking and adding new features to the shader, finally promote the necessary parameters and send it out, wish to get this done by mid of next week!
















Problem: Shader Displacement Bound
Despite having a working shader after compiling, i still have to tackle the displacement bound problem.
I have vm_displacement_bound parameter installed and tried different values (This usually works like a charm), the artifacts remained the same.
Going to seek help from forum...

 




WARNING: Non-Disclosure Agreement (NDA)
A couple days back Ziggy was telling me that it's not exactly a good habit to share your working files, especially when you are working on a production. When you join a studio/company, you will be asked to signed a non-disclosure agreement which forbids you to share any confidential materials - everything you create are properties of your employer and not yours! If you really wish to share something, you can rebuild a simple example file which demonstrates the principles of your work.

Even shots you worked on belongs to the company, he explained when he was at Sony Pictures - if you want the materials you created on a project, you could write in and they will be sent to you upon approval. But different companies have different policies and practices so don't assume everywhere is like this, I guess it's always best to ask.

Another alternative method to get your work is to buy it's "original" DVD when it's released. Paid to make it - paying again to get it, duh. Lastly don't do silly stunts which will jeopardize your career as both visual effects/film and human resource world are really small here. A lot of good information shared by Ziggy, thank to him again!



Understanding Toon Shader
 https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihSXGaLMV4UnpFqYKRB2xK_Dw8Dqk8EMK3d_7CEfZTlD3xhcRoWcyAVRHTit-_qL9hQ8W_DBwYiRty3qsI2F8W7a5eedv9xxo4nbGJENj-FwefixQXyzFaznVnvgviPJHgPc6-O_6KLGM/s1600/hatchOld.png
Image above belongs to Ryan Hurd, www.hurdfx.blogspot.com

Tanner found this toon shader created in Houdini on some blog & wanted to understand how it was made & how it worked to generated the sketchy wire-frame look. Managed to decipher most of network except the Dot Product portion, explained it to Tanner and he approached Charles about Dot Product - according to him, that part is trying to simulate fresnel without using "Fresnel VOP".

Simply using where area being lit and area under shadow to control the wire-frame's width, cool stuff.

Here's the toon shader page,

& it appears to be on odforce's gallery too,

If you are keen to know more, can always email me. Will give my best shot at explaining it, hehe.



Trick from Ziggy: Rest Position SOP
Was taught while explaining me to about "DOPImport SOP" where both "DOPImport" & "Rest" nodes are automatically created in SOPs level when you use "RBD Object Tool". I implemented it on my hammer's handle to fix the animated wooden shader. May explain this in more details later or e-mail me.


05_hammer
Did a render to see if "Rest Position SOP" is taking effect.
Seems like it's working, nice!



end.

Week 05 Day 37, 17th July '11 (Sun)



Dream World - Comics & Action Figures
Website: www.dreamworldcomics.com
(Don't be disappointed yet, the store is much better than the website)

This place was spotted while we were travelingon Bus 14 to meet Steven & Shih Peng for dinner at Sakura Japanese. Tanner and myself decided to travel down and see what they had to in the store today, i lost my 1st skateboard in the process... It was a long story, will fill you guys in next time - if somebody took it, darn him/her!

We arrived at Dream World and the piece was about to close, Ray (store-tender) was kind enough to let us in and buy stuff, the store was partially lit though. Spoke to Ray a bit and found out he's school was actually across the street of Activision Blizzard!

He studies Image-processing and media stuff if i didn't recall wrongly, so I shared that we are visual effects students from Singapore currently attached in SESI - introduced him to Houdini and gave him the website to download the free apprentice version. Hope he looked at it... hahaha. Liked guys like him, extremely friendly!

Click here if you want to go, Dream World.

There's will be tons photos and videos on next Sunday's post,
if you are a comics and figurines fan like us, stay tuned!

 



Hotcakes (Just next door)

My impression when i first stepped in was... clean, neat and smells good.  Both of us went in a bought a couple of cup cakes and cookies, the owner was nice - introduced us to some cupcake which won prize in Food Network show or some sort and was asking if we came over from Dream World.

Seems like people can't resist the temptation of dropping by after purchasing their lovely comics/figurines, he says people from this stretch of stores all know each other etc- they get to watch out for one another! The owner looked distracted when talking to us or he couldn't understand our ascent very well, think he is French and wasn't too used to speaking with Asians. *Shrug*


















That's right, Kobe Bryant bought his birthday cake here back in October 2008!




 



This is what i gotten from Dream World
World of Warcraft Action Figurine - Magni Bronzebeard aka King of Khaz Modan!
If you play WOW, Magni Bronzebeard resides in his throne room within the central district.





Bed time, good night.



end.



Week 05 Day 36, 16th July '11 (Sat)

Laundry Day
Doing laundry and folding clothes with my trusty fold-clothes-easily board, hahaha. Guys who suck at it should get one of these!







Making Breakfast
Ham & egg sandwich, nothing fancy but tasty - may be i was starving, that's why...






Grabbing Lunch
Hehe, lunch time and I'm at 3rd Street Promenade. Spotted a Japanese bento store hiding right behind MacDonalds, seems promising so here's my order!


















Harry Potter and the Deathly Hallows, Part 2
It's the finale of the Harry Potter Franchise, it all ends...
I watched it and felt the ending was a little funny and cheesy, be sure to catch it!
http://www.kyledallman.com/wp-content/uploads/harry-potter-and-the-deathly-hallows-part-2-movie-poster.jpg














 It all ends... for real, rolling credits!
















Dinner Takeaway @ Poom Thai Cuisine
While skating back, i decided to take a detour at Lincoln Boulevard instead of heading up along Pico Boulevard. Happen to come across this small authentic Thai cafe named Poom Thai Cuisine, their walls were filled with customers' hand-written comments and looks like everybody loved the food here.

Made me look forward to their menu, went on and ordered yellow curry chicken and i am rating it 8/10!
If you wish to try it, click here Poom Thai Cuisine.


















On the way home
Came across this peaceful neighborhood on my way home, it's a different route - usually i skate up Pico Boulevard but wanted to explore the nearby areas a bit. Some random snaps, beautiful & quiet place and it's excellent for biking and skating!

Down hill and empty road, perfect for cruising, still best to watch out for cars!


By the way, I was flying solo today. O_O



end.

Monday, 18 July 2011

Week 05 Day 35, 15th July '11 (Fri)

Moving project folder to new directory
We intend to use the render farm soon so Eric was explaining we should move our project folder to a new location where everybody uses, which is still in the server. We could send our render jobs from there and have our renders output there. Actual work begins immediately after this!

Troubleshoot Watermark Renders
Bryan encountered watermarks on his render while we were all testing out the procedures of sending jobs to farm and receiving correct outputs. Recreating new mantra/hqrender rops, reopening and saving as another iteration didn't help - i was guessing it was related to the Houdini license so i tried rebooting the computer and reinstalling the licenses, that worked & now you know!



Adding more repetitions to handle's weave texture
This was one of the comments from Ari and Aliza, current hammer's scale seem small so adding more repetitions on the weave image texture would help. Was trying to do so within "Mantra Surface Shader", Color Map > Texture Width setting, thought that was the parameter i needed - appears it's not.

Charles gave us a material class some time ago, decided to approach him. The solution was simple, all i had to do was go to "UVProject SOP" of hammer's handle and adjust "U Range" & "V Range". You can see the results in the turntable render below.


 













Reshaping hammer handle
Wanted the lengthen the handle, this way it would help make the over-all proportion of hammer seem longer and gives the hammer head a heavier feel.

Had a few more issues i had to deal with while reshaping it & while i was at it - did some tweaking of weave material's specular intensity (Feedback from Ari & Aliza), finally set wood shader's Rest Position VOP to "object-space". Not going into details - here are the new hammer turntable renders,

If you want to do a comparison, click here for 02_hammer,

03_hammer

04_hammer 
(It's actually 03_hammer with a change of lighting rig with final colour scheme)
 



Practices & Tips on HQueue (Render farm) from Eric Araujo
Eric happen to be the only person in the office when i stepped in today, he was nice to share some information with me on usage of render farm. Putting them into point forms so you guys don't to read a story!

1) Optimize your render settings and be as efficient as possible as the render farm is a shared resource.
    (You don't want to steal all the processing power)

2) Start with low settings and resolutions, you want to see the colours and lighting, you don't need a huge resolution render to see.

3) MPR versus PBR, if your scene got no reflection or refraction - you probably could settle for MPR which is faster.

4) Got no reflection or refraction? Stick to depth-map shadow and avoid using raytraced shadows.

5) Know when to stop connecting nodes & make a separate system. Having everything connected will slow the entire dynamic network. (e.g. you are combining various types of simulations, if you tweak a certain setting down the chain - you'll probably affect something else up hence you have lesser control)

6) You always think it's the final render after this last tweak of settings, that's not always the case - so don't casually bump up all your render settings etc and think this is going to be final.

It may sound like a pain following all these rules or guidance, look at it as courtesy at work - adopting and adapting to a professional and productive work-flow!



Questions to Charles
1) coming soon...



Week 05 Day 34, 14th July '11 (Thur)

Strange blocky specular highlights solved
People pointed out some areas which I could look at and one of them resolved the problem. Thanks again to are2d2 and zarti!

Thread:
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=22644




 







It was due to tangents which could be fixed by diving into the shader, go to "Surface Model VOP" and switch Tangent Style to "Object-Space".

Squarish highlights














Squarish highlights fixed














Tested on different options to see results, appears that all of them can fix the problem.
Blocky Specular














Intrinsic World Space














Intrinsic Object Space
Compute from UV
Use connected - utan vtan
This one give a different look, the reflection and specular highlight became more obvious...
Not sure what's going on. At least my problem is gone!




















02_Hammer Turntable
With that silly highlight fixed, I send it to render while I moved on to work on the molten shader.

02_hammer

 



Documenting/Tweaking Molten Shader
Documented everything I understood from yesterday, it was quite a lot to digest. Afraid i'll have to go back to Charles for a bit more explanation on some part of the shader. 

Played around with the parameters and feeding different part of the network into the Cf Output to see what kind of results are being generated visually.
 


These are some of the patterns (Cracks, Noise &Polka-Dots) generated with noise operators used as a mask for both surface and displacement shading.


























Came a long way in a short time, felt like speeding through the freeway.


























Broken Molten Shader Problem
Everything was working well over here when i'm testing it on a grid, wanted to copy the shader over to my scene file and see how my embossed text and surface would look with this shader assigned.

It weren't the "UVProject SOP", uv attributes & this isn't a PBR shader "yet"... might have to give forum a shot.















Expression Training by Charles
(Rolling horse animation driven by expressions)
The lesson was about usage of expressions followed by a practical demonstration of animating a rolling horse using chain of xform nodes with various expressions consisting of sin() & cos(). Won't go into details, will try to flipbook the sequence as soon as the laptop stops giving me fatal error when i do it!












Charles happen to show us his demo reel before starting the practical, to illustrate what we're trying to do - one of his project where a walking toy was animated using expressions, awesome!

There you go,
http://www.youtube.com/user/cteffects#p/a/u/1/45ztiviXqMU



Review by Ari and Aliza
Ari and Aliza would be looking at our progress, Steven isn't in today due to work. I showed leica reel, previs, hammer turntables, molten shader R&D, sh020 test renders respectively, it was Aliza's first time checking out our progress, admit i was slightly nervous!

They gave their comments on what I've got so far and making sure none of us are behind schedule & are managing our time well. Was acknowledged with a "good progress" at the end of the review, don't know why - those words kept ringing in my head that day, hehe.




Dinner Time
Believe the guys went to buy Burger King tonight, wanted to avoid fast food as much as i can, prepared my own at home. Rate it 7/10, it was above average!

The bun thingy was purchased at Vons (Supermarket) though.

















end.