Thursday, 30 June 2011

Week 03 Day 18, 28th June '11 (Tue)

Lighting Boot Camp by Zack

Explaining difference between Spotlight, Arealight and Pointlight. Using Interactive Photorealistic Rendering (IPR) when lighting a scene for fast feedback and render region capability, i've used it excessively during my final year project as i was in-charged of lighting but was able to pick up some tricks from Zack.

It was a pretty long portion so i'll skip explaining them here, will be happy to answer them via email.



Geometry Light (Shelf Tool)
Using geometry light, a torus object is linked up with it and emits light. Say you have a torus-shaped bulb on the ceiling, you may want to use this to simulate that.














Sun Light (Shelf Tool)
An advanced version of Distant Light, with more parameters to play with. As the name suggest, it represents the sun. You can see the change in shadow when you adjust parameters.














Sky Light (Shelf Tool)
Simulate the sky, you can either set it to "Realistic" or "Ramp" where you can specify any color you like to make it stylized. There's even an option to pick a location, date and time, usually I used it together with the Sun Light and Maya have Sun/Sky Light as well.














Environment Light (Shelf Tool)
Similar to a skylight, you can either use it for direct fill light, ambient occlusion or raytracing background. One of many ways extract AO pass, but i only know of 2 so far. The other one is doing it in shader level (using an "Occlusion VOP").














Depth-Map Shadows
Zack explained what some differences between depth-map and raytrace shadows, played around with the settings and show what they do. Houdini's depth-map shadow offers another type called Deep Shadow, which is used for rendering volumetric effects (tick "Transparent Shadow" to activate it) which i believe Maya dont offer.

Basic yet important knowledge you need as CG artist.














3 Point Lighting (Key, fill and rim)
Screenshot coming soon...



end.

Tuesday, 28 June 2011

Week 03 Day 17, 27th June '11 (Mon)




Beginning of Day 17

Spent a fair amount of my time updating and documenting my hip files today, lost the whole morning to that. Was glad I sat down and did that before forgetting everything.

& also apologize for the sudden change of my title conversions, previously was a simple "Day ##" but now we have this long title "Week ## Day ##, DD MM YY (Day)" which is lengthy. It makes my life much easier when tracking images/videos/blog-entries, strongly recommend everyone to do similar method.



Displacement Shader Question
Had a question relating to displacement shader inside of SHOP context, was planning to approach Erik but unfortunately he returned to Sweden. Instead Corrine offered to give it a look and showed me how she would do it, at the same time she was trying to troubleshoot a problem which i was encountering but it was simply fixed by adding "Properties node" and installing Displacement Bound parameter via Edit Rendering Parameters options.

It was an issue i faced during my Final Year Project a month ago. She wasn't able to work on my hip file which had similar problems as i didn't have it on me so... maybe some other time.


















Reworking Previs
Looking back at the possible improvements pointed out by Steven, I was back onto my previs shots. Completed the changes on sh020 and sh030, rendered their flipbooks, hopefully i'll finish up sh010 tomorrow and put them back as a sequence.

sh023_mBlur_cShake


sh034_mBlur_cShake



HQueue (Render Farm)
Ziggy explained how we can learn to use the render farm and that there's priority thingy going on when it comes to sending our jobs there, but it's free for use as long as it's not a busy day. Got to pick that up when I hit the production stage!



end.

Monday, 27 June 2011

Week 02 Day 16, 26th June '11 (Sun)



Premium Outlets
with Steven and Miss Shih Peng.



There's more than one premium outlet in America and this was the one we went to,
http://www.premiumoutlets.com/outlets/outlet.asp?id=6

Everybody went on a shopping spree, purchasing gifts both themselves and families!
Plus we managed to obtain a booklet of coupon by registering at their website, more discounts!





Dinner time
We dined at a Malaysian Restaurant named "Penang" at Hong Kong Plaza, ordered chicken rice with little hesitation!
The amount of food started to overwhelm us as the waitress kept coming, were all too aggressive when she took our orders. Guess everybody just miss asian cuisines so badly! Steven and Shih Peng paid for our meals this time, O_O.

The food is incredible, if you have the convenience of driving around Los Angeles. You got to come here.




I had to bowls of "oily chicken rice"!





































Asian Supermarket
After dinner, we dropped by the asian supermarket next door. Saw rare items like Milo and Taiwanese cuttlefish strips! Had a short conversion with the store owner, he was from Taiwan and he was curious what we were doing in America (Holidays or studies?). Both him and the lady selling snacks were very friendly, kept smiling and offering samples like Bak-kua (BBQ pork).

Steven spotted this pack of item at the corner of a display shelf, CG-geeks will know what this is! Hahahaha.





















Heading home!

















Sunset on the freeway & Jim Carrey!



















































Another weekend over...



end.

Week 02 Day 15, 25th June '11 (Sat)

Visual Effects Society (VES) Career Fair @ Renaissance Hotel, Hollywood.

http://www.renaissancehollywood.com/index.asp

Bryan and myself hopped on Ari's vehicle together with Charles (iPad navigator), it had a lot of leg room!
Ari was pointing to us all the cool places as we were traveling towards Hollywood, one of them was Los Angeles County Museum of Arts (LACMA) where Director Tim Burton had his work exhibited! Charlie and the Chocolate Factory, Corpse Bride and Alice in Wonderland (which we watched a couple days ago) were some of my favourites.

For more info, click here!
http://en.wikipedia.org/wiki/Tim_Burton


















Central Courtyard, where lots of stores are located.
There's a long balcony area on level 3 & 4 which has telescopes where people are trying to snap or catch a glimpse of the famous Hollywood sign!

















Hollywood sign in the middle up on the mountains,
sorry that's the best my iPhone can do.

















Arrived at ballroom where the career fair is!

















That's Charles, a SESI intern graduated from SCAD!
He's awesome at shader programming too.

















That's me, i was helping with the setting up too.
Ari was the camera man. Hehe.

















Ari's Houdini Demonstration, if you are wondering what's on screen, it's a Copy SOP.

















John giving demonstration on FLIP Fluids.


















Legacy Effects

http://www.legacyefx.com/index1.html
Managed to speak to one of the guys there, they worked on Iron Man 1 & 2, Avatar & Tron. All the Ironman suits were built by them and they are searching for hard-surface modelers and compositors!




























































Walt Disney Animation Studios
Although I wasn't planning to become an animator, wanted to talk to somebody from Disney!
Managed to speak to the lady on the right, her name is Stephanie (very courteous and beautiful lady) , she shared information on a summer training program (you will be paid) where anyone from around the world can apply for it. It may even be hired upon completion of the program if you fair well!

NYP SIDM Animation students, this is for you,
http://www.disneyanimation.com/careers/student_programs.html

& by the way, she said what would really help is to have good animation reel and include your sketching/drawings, more importantly... have your own style of characters with good appeals. Might had missed some points, sorry for my poor memory!


























Digital Domain
This studio was involved in production like Titanic (James Cameron), Transformers (Michael Bay) and many more.

The queue was really long, there were constantly more than a dozen people queuing to speak to the Digital Domain guys. Tried might my luck after a couple of hours and managed get one of their attention, they too offer training program but wasn't able to provide me details. Instead i was given a name card and was told to email them to receive more information!














































end.

Sunday, 26 June 2011

Week 02 Day 14, 24th June '11 (Fri)




Visual Effects Society (VES) Jobs Fair
Ari was encouraging us to participate in a Houdini logo challenge which would happen tomorrow (Saturday) at Visual Effects Society (VES) jobs fair where Autodesk, Adobe together with Side Effects will be there to showcase their reels and demonstrate their softwares! At the same time, a bunch of visual effects house will be there seeking for potential employees.

For those who aren't familiar with VES, there is a ceremony called VES Awards which honors people from the visual effects industry with great achievements. It's simply equivalent to the Oscars, but only got visual effects!








For more info, look here http://www.visualeffectssociety.com/



Houdini Flying Logo Challenge

Thought of doing a side-project while i was in Singapore and thought this would be an excellent opportunity. Plus Ari said the winners would get a free Houdini Apprentice HD license which was pretty tempting. It would be also refreshing to work something unrelated to our main industrial attachment project for a day.

My head mysteriously brought me to the "Point SOP" technique documented on Daniel's blog (student previously attached to SESI) which Rap spoke about. Where points scattered on a teapot could transform into a torus, scanned Daniel's blog and found the page. Attempted to recreate that network but missed the mark slightly.

Look at Day 30 to see Daniel's render,
http://soomld.wordpress.com/page/4/

Ziggy was super nice, he sat down and patiently explained what I got wrong and what each expressions were doing. I'm going to share them right now so get ready!



01 - Create a teapot (It's off the shelve tools called Platonic Object if you're new)















02 - Create a torus too, translated the teapot along x-axis (you can use z-axis too) so we have space for the particles to work between the 2 objects.















03 - Append "Scatter SOP" for both the teapot and torus, use less number of points when you are building the network to avoid lag... my settings are set for final render.
Note: The following instructions are going to get very long-winded but they are also the most crucial part for understanding why and how this works, so don't skip anything.















04 - Append a "Point SOP", Add Colors, delete the channels by RMB on "Color" parameter & "Delete Channels", type in the following expression $F/100+rand($PT)-1

This expression makes the teapot turn from black to red color, play your animation.

$F is the current frame number you are on, say you're on frame 50 so $F/100 gives you a value of 0.5

rand($PT) give you a random value between 0 to 1, $PT stands for the point's number, go to Windows menu, Hscript Textport, type the following "exhelp rand" and an explanation will be given, you can do the same if you encounter any unfamiliar functions.

$F/100+rand($PT) gives you values from 0 to 1, but we want everything to start from negative value so the teapot will transform from pure black and have no red values at all, we are currently working with an expression inside of the red channel.

so we need to subtract all these values by 1 to force them to negative, hence $F/100+rand($PT)-1

Result when you hit play

















05 - Append a new "Point SOP" under the 2 "Scatter SOP" we created earlier, feed teapot's "Scatter SOP" into 1st input and torus' into 2nd input of the "Point SOP".

This step will animate the points forming the teapot shape to travel over and form the torus shape.

Delete Channels on the "Position" Parameter, type in the following expression
fit01($CR,$TX, $TX2) in X channel,
fit01($CR,$TY, $TY2) in Y channel &
fit01($CR,$TZ, $TZ2) in Z channel

fit01() will fit a values between 0 to 1, what we want is for the teapot points to start animating towards the torus when their red channel is greater than 0 and reach their destination torus when the red channel reaches a value of 1.

$CR is the red color variable aka Cd[0] (look at Details View), we are using this value to translate the points.

$TX is the translate X of our 1st input, teapot.
$TX2 is the translate X of our 2nd input, torus.

We want to translate all the points in XYZ so same applies to translate Y and Z so we have similar expressions in the other 2 channels too. Now you should have points transforming from a teapot to a torus!

Result when you hit play

















A test before moving further,
tiny donuts forming big donuts.




From here onwards, it's mostly my own creativity (completely different from Daniel's) with Ziggy pointing me towards the light along the way.

First was deciding what logo to use, had 3 in mind - Apple, Green Lantern (I see it everywhere in LA) and Google Chrome. Ended up with Green Lantern as it had the simplest vector shape plus it's my classmate's personal favourite!

http://i.swebee.com/facts/apple-logo-1976-1988.jpg



http://www.yourdailymac.net/wp-content/uploads/2011/04/googlechromelogo_copy.jpg


06 - Made my logo back in Houdini, you can choose other designs though.















07 - I wanted the tiny logos to rotate as they travel to their destination points.

Ziggy came by, gave it a thought and came up with the idea of driving their rotation animation based on on $CR value, when $CR = 0, logos will stop rotating.

The Details View shows our $CR aka Cd[0] value is a mess, all kinds of numbers which will not help. We will remap them on the next step.















08 - Create new "Point SOP", Add Color, type clamp($CR, 0, 1) in red channel.

As you can see, Cd[0] value are being clamped to 0 at first frame and will only go up to maximum of 1 at last frame. clamp() only allows the attribute to go between 0 and 1.

See next 3 screenshots to understand better.











































09 - Now we have $CR increase from 0 to 1, but we need them to go from 1 to 0 in order to drive the logos' rotation and have them stop at the their goal.

So we have 1-$CR expression to force $CR back to 1 at start frame and decrease to 0.















10 - In the image below we have both Ziggy's approach and mine - both uses stamp() function.

Mine could make random rotation to the logos but i am unable to stop them from rotating upon reaching their destination nor am i able to make them orient the desired direction when they stop.

Create "Copy SOP", Stamp Tab, tick "Stamp Inputs" checkbox, type a Variable - in my case it's named "myrot", type in $CR*360*2.5 in Value.
$CR which is now equals to 1.
$CR*360 which will be equals to 360 rotation.
*2.5 simply means I want them to rotate 2.5 cycles which is 900 degrees.

All these may sound quite intimidating at first. No worries, I am no fan of math too - it took me a while to get the hang of it even though it basic add/subtract/multiply/divide!

With that in mind, we can use the stamp() function in rotate XYZ in the next step.















11 - Append a "Transform SOP" at the bottom of your logo network,
type in the following:

stamp("../copy1", "myrot", 0)*0.025 in X,
stamp("../copy1", "myrot", 0)*0.025 in Y and
stamp("../copy1", "myrot", 0) in Z

*0.025 because i wanted to minimize the rotation on XY.














Now we have a bunch of tiny logos flying to form the big one,
Point and Copy SOP are the two key nodes behind everything.
Houdini Documentations didn't lie about them being one of the most powerful nodes around!















We see all the logo rotating and stopping as they play to their goals



12 - I was trapped at this stage for a good 30 minutes trying to get the motion blur to render out! was adding normals using "Point SOP" to get motion blur as i recalled Eric saying they can inherit velocity from normals. Lucky for you guys, you wont have to wait 30 minutes, haha.

The thing i overlooked was i wasn't using a POP_network so there's no way points could inherit velocity hence my motion blur wasn't rendering!

Instead, on the same "Point SOP" i added velocity but using $CR (0 to 1) in vel XYZ so motion blur on logo will gradually die off as they traveled further away from my render camera, probably not the most accurate solution but it works.















13 - I want to add my own material, but Cd attribute already exist, using "Attribute SOP" we delete the Cd attribute, This was covered during Eric's attribute & variable class.















14 - There we go, I subsequently replaced Clay with Mantra Surface Material after Charles' Material lesson. He taught us how to create a tinted glass material.














15 - Animated the render camera, added 3 point-lighting, enabled motion blur and Mantra ROP settings etc. Sorry, won't be explaining these.















Test render with alternate 10 frames before final render.


Final render



Thanks to Ziggy, Eric & Charles!
Might improve it further when get back to Singapore, out.



end.