Friday, May 22, 2015

Setting Up HDR Lighting using 3ds Max and Mental Ray

One question I am often asked by students is how to set up nice lighting for a model. In most cases, the model is a character or a prop. (Environment models require a different way of lighting.) In this post, I will walk through the process of lighting a model. I am using 3ds Max with Mental Ray renderer in this tutorial.

To illustrate, I will use this head model.
Figure 1. Plain model
I start by using a HDR image as the environment map.
A few words about HDR. HDR stands for "high dynamic range". Dynamic range means the possible range of brightness that an image has.
  • Images that we are familiar with, such as JPG files, are said to have a standard or low dynamic range because they are limited to the range of black (brightness value 0.0) to white (brightness value 1.0).
  • High dynamic range images (HDR images) have a range beyond 0.0 and 1.0. The brightest pixel, such as lights or the sun, can have a value like 120.48. Much larger than 1.0!
Practically, this means that a HDR image has a different format and is usually larger in size. Typical formats are .HDR and .EXR. For the case of the HDR image I will use below, it has the dimension of 4000x2000 and file size of 22.9 MB. The low dynamic range version, a JPG file, with the same dimension has a file size of 3.8 MB.
I recommend reading the Wikipedia article on HDR to learn more.

I used the "Luxo Jr" HDRI map provided by Pixar (who kindly put it in public domain). Figure 2 shows how to create a Bitmap map that uses a HDR image file:
  1. Create a Bitmap map using Material Editor. (Press "M" to open the Material Editor.)
  2. Make sure to override the image gamma to 1.0.
  3. Click "Setup" button.
  4. Make sure "Enable Color Correction" is disabled.
  5. Set Mapping to "Spherical Environment".
  6. Set U Tiling to -1.0 to flip the image horizontally.
Figure 2. Preparing a Bitmap map to be used as the environment map
I then dragged and dropped "HDR map" into Environment Map slot. (Press "8" to open the Environment and Effects dialog.)
Figure 3. Setting the Bitmap to the Environment Map slot
 At this point, I get this render. As expected, the background is now an image.
Figure 4. Rendered image after setting the Environment Map

In case your render is much darker, make sure you enable gamma correction.
Figure 5. Enabling Gamma Correction

Next, I created a Daylight system.
Figure 6. Creating a Daylight system

Using a Daylight system means that we need to turn on Exposure Control in Environment and Effects
dialog. I will cover this below. Here are the settings for the Daylight system:
  1. Set Position to "Manual", then move the Daylight to the appropriate position. I used the background image to guide the placement.
  2. Set Sunlight to "mr Sun" and Skylight to "mr Sky". ("mr" stands for Mental Ray; though I find myself reading them as "mister Sun" and "mister Sky".)
  3. Set Red/Blue Tint of mr Sun to 0.1.
    • This makes the sun color a little yellow.
Figure 7. Daylight system and its settings

And here are the settings for Exposure Control in Environment and Effects dialog.
  1. Drag and drop "HDR map" from Material Editor to Environment Map slot.
  2. Set Exposure Control to "mr Photographic Exposure Control".
  3. Set Exposure Value (EV) to 14.125.
    • This will make rendered image not overly bright.
    • If I set the Exposure Value to 0, the rendered image will by almost totally white because the strong mr Sun overexposes the image.
Figure 8. Setting Exposure Control

Some of the settings above are my attempt to match the lighting in the background image. Matching lighting in this case involves 3 steps:
  • Placing the Daylight approximately where the sun is in the background image;
  • Setting the Exposure Value such that the brightness of the Daylight is similar to the background image;
  • Setting the Red/Blue Tint parameter of mr Sun to match how yellow the sunlight is in the background image.

Finally, I turned on Final Gather (FG).
  1. Check Enable Final Gather.
  2. Set the three parameters (Initial FG Point Density, Rays per FG Point, and Interpolate Over Num. FG Points) as shown below.
Figure 9. Enabling Final Gather
 After all these setups, we are done with our lighting setup. Here is my final render.
Figure 10. Rendered image with the HDR lighting

Bonus: Image-Based Lighting (IBL)

An alternative method is Image-Based Lighting (IBL). IBL is faster to set up (you do not need to match the lighting in the background image), but slower to render.

The first two steps are identical to the previous method:
  1. Create a Bitmap map that uses a HDR image.
  2. Drag and drop the Bitmap map to the Environment Map slot in "Environment and Effects" dialog.
Next, we create a Skylight. Make sure to select "Use Scene Environment".
Figure 11. Creating a Skylight
 We then enable IBL in the "Global Illumination" tab.
Figure 12. Enabling Image-Based Lighting (IBL)
Here is the render that I get.
Figure 13. Rendered image using IBL

Sunday, May 17, 2015

Preparing a Job Application part 3 - How to Prepare within a Limited Time

As an instructor at CG Protege, I had a number of occasions helping students preparing a demo reel (as a part of their job applications) within a limited time period. In this article I will cover a planning method I used. Admittedly, the degree of success varies with how discipline a student; but I think this is to be expected.

There are 3 major steps in the planning.

The first step is to clarify your goal.

Your goal is to submit an application to a specific company, by a specific date. There are 3 components in this goal: the application, the company, and the deadline.
Therefore, your goal consists of:
  1. Writing a cover letter specifically for the company, explaining why you are the best fit for the job opening;
  2. Customizing your resume to what the company is asking for;
  3. Assembling a demo reel (+ portfolio) to show that you have the skills that the company needs; and
  4. Submitting these to the company before the deadline.
The dominant factor here is the limited preparation time before the deadline. If you have not organized your works, allow yourself four to six weeks preparation time. If you have organized your work, one week should be enough.

You may ask, "How can I allow myself six weeks before deadline? After all, job application deadline is set by the company." My answer is, "Consider an different point of view. Assign yourself six weeks to finish your reel and apply for jobs with deadline after your estimated finish date." I admit that this is easier to say than to do.

The second step is to plan steps to your goal.

First, you should have a list of works you want to include in your demo reel.

Resist any temptation to go into a specific work file and do fixes. You may we end up spending most of the available time on one work (or two) and practically neglect the rest. We want to avoid this.

Next, you list what improvements or fixes you would like to do on each work (while keep resisting the tendency to fix anything). At this stage you can be as detailed as you want, no restraint yet. Spend up to 15 minutes for each work.

Now that you have considered all the improvements you want to do within the time available, you will realize that you need to prioritize. This is the next step. Create a timeline from today until the deadline. Move items from your improvement list into the timeline based on priority. In this way, you will have a daily plan to cramp in the most important improvements.

Here is a sample template:

Things to look out for:
  • If you have not rendered your reel, how long does it take to render a frame? How many frames are there in your reel? This sets the latest date you can still improve your 3D work.
    • Make sure you have time for rendering as well as fixing render problems.
  • Where are you uploading your reel? If you upload your video to YouTube, your video will be available almost instantly after uploading finishes. If you upload your video to Vimeo, your video will be available only around an hour after uploading finishes.
    • Make sure you have enough time to make your reel available for viewing.
  • Remember to include writing your cover letter and resume in your plan.
    • Make sure you have enough time to write an excellent cover letter.
    • Make sure you have enough time to customize your resume to the job position.
  • How do you submit your application?
    • Make sure you have enough time to submit.
From experience, I realize I am rather fanatical about planning. You can create a loose plan if you prefer, but I recommend to at least list all improvements you want to do so you can prioritize.

The third step is to carry out your plan.

Make sure to review your progress periodically. If your deadline is days away, review at the end of each day. If your deadline is further, you can review once every two days or even weekly.

During such review, compare what you planned to achieve with what you actually achieved. Update your plan for the remaining time accordingly so that you can get as many improvements as time allows. The update can be re-prioritizing to do items, removing to do items, or, very rarely, adding new to do items. You may end up with less than what you planned in the beginning, but you will achieve something better than what you started with.

I hope this simple planning help you.

Let me close this post with my story behind these articles. To you, this is the last part of a three-part article. To me, this is the article I started with. As I wrote this article, I found myself having to explain the details of writing cover letter and resume, as well as demo reel and portfolio. I ended up with a very long blog post. I decided to break them into three. As I fleshed out my outline, the content shifted a little from my original plan. I felt especially the second article felt not as sincere as I intended.

As always, if you any thoughts you want to share, please comment below.

Sunday, May 10, 2015

Preparing a Job Application part 2 - Demo Reel

In the previous post, we saw that a job application usually consists of 3 components: cover letter, resume, and demo reel. We also saw how you can prepare your cover letter and resume quickly.

In this post, I will cover how you can prepare your demo reel (plus a portfolio). Unlike the previous post, however, I cannot offer a fast process to create a demo reel from scratch. You should spend most of your time working on your demo reel, long before applying for a job. This way, when it is time to apply for a job, you already have a number of works ready to assemble in your demo reel.

In this post I assume that you already created your works; the question is how to present them in the form of a demo reel. I also assume modeling reel for simplicity.

Demo reel preparation for 3D animation industry is a well-covered topic:
Still, I have a point or two to add in. The theme I am emphasizing is the same as the one in previous post: Make it easy for the recruiter to remember you.

Demo Reel


A demo reel is a short video, usually around 2 to 4 minutes.

Remember why a recruiter watches your demo reel: the recruiter wants to see what you can do. So, make sure that:
  1. your demo reel demonstrates your skills and
  2. the skills you are showing are relevant to the recruiter's interest.

Demonstrating Your Skills

In the video How to Prepare Your Showreel for the Industry David Kwok covered what kind of works you include in your demo reel to demonstrate your skills; so I will not repeat this point.

Let me emphasize this: make sure that the first 15 seconds make the recruiter interested. You can test this by showing your reel to a person you trust and ask for an honest opinion. If the opening of your reel is boring, then make sure you fix it.

In my experience with students, there are common scenarios:
  • Opening screen (where you put your name and contacts) shows for too long or fades off too slowly.
    • Fix: Show your opening screen for shorter than 2 seconds; fade it off quickly, perhaps half a second or shorter.
  • Turntables are too long.
    • Fix: Keep testing your reel timing; make sure it is just right.

Showing Skills Relevant to Recruiter's Interest

Make sure your demo reel is appropriate for the company you are applying to.
  • If you apply to Industrial Light & Magic (ILM), do not show models like Pororo or Doraemon. ILM aims for teenagers and adults; while Pororo and Doraemon are for children.
  • If you apply for Pixar, do not show models like rugged, battle-worn Batman. Pixar aims for family, so show works that appeal children and adults.
Almost all my students think that an artist has only one demo reel and this demo reel is what he/she sends for all job applications. This is only partly right.

You should have a personal demo reel that you put on your portfolio website. In addition, you should create a customized demo reel for each job applications. How do you customize a demo reel?

Suppose you are a 3D modeler. You have 2 models so far: Pororo and battle-worn Batman.
  • When applying for studios that produce family entertainment or pre-school series, your reel should show only your Pororo model.
  • When applying for studios that produce products for teenagers and adults, your reel should show only battle-worn Batman.

Be precise. Make it easy for the recruiter to remember you.

Portfolio


A portfolio is a collection of physical artworks. This means physical drawings and paintings. Your portfolio should show your skills that are relevant to the recruiter's interest.
  • Studios that produce family entertainment probably will ask for appealing designs and strong shapes.
  • Studios that target teenagers and adults will ask for human anatomy, animal anatomy, perspective, and surface texture quality.
In Singapore, not all companies ask for a portfolio. On the other hand, if you do have a good one, you will stand out among other applicants (this is true at least for Singapore companies).

Preparing Your Reel and Portfolio

So how exactly do you prepare you demo reel? I suggest this process:
  • Before applying for a job:
    • Keep creating new works.
      • You will want to be able to apply to as many different companies as possible, so make sure you create a variety of styles. Maximize your opportunity.
    • When you finish a work, present it the best you can.
      • You will keep reusing this presentation, so make sure it is excellent and not just good or acceptable.
    • Collect all your work presentation in a portfolio folder. (For safety, you may want burn this folder into a DVD once a year for backups.)
  • When applying for a job:
    • Read the job description. Identify what the company wants.
    • Go through your portfolio folder. Identify works that match what the company wants.
    • Assemble these relevant works as your customized demo reel for this job application.
      • If you have taken care to make your presentations excellent, assembling a demo reel will take less effort.
      • Otherwise, not all is lost. You just have to put in time and effort to make your reel polished. We will see how to do this in the next post.
This process requires discipline, unfortunately. There is no shortcut in demo reel preparation. The earlier you start, the better.

Hopefully this post convinces you that the best time to start preparing your demo reel is now. In the next post, I will cover a planning method to make sure your job application (cover letter + resume + demo reel + portfolio) will be done on time. As always, please let me know what you think by leaving a comment below.


(Edited on 11 May 2015: Elaborated on points, improved wordings, and rearranged points.)

Friday, May 1, 2015

Preparing a Job Application part 1 - Cover Letter and Resume

Right now I am helping modeling students at CG Protege to prepare their applications for Jedi Masters Program, so I will share my preparation process in a series of posts. There are usually 3 things needed in a job application: a cover letter, a resume, and a demo reel (plus a portfolio).

In this post, I will cover how you can write a cover letter and a resume in half a day.
(Edit: I am writing this article in the context of 3D computer graphics industry. My points may be irrelevant in other fields.)

Around half of my students are afraid of cover letter and resume. I will tell them that these two are the easiest to finish. Even if you do not have these, you can finish a draft for both in 2 hours. Here is how.

Cover Letter

What do you write in a cover letter? In the minimum, it must:
  • introduce you and what job you are applying, and
  • make a strong case why you are the one for the job.

Spend 10 minutes researching cover letters, then start writing your draft. While writing, you may feel the need to research specific details. Do research more while writing.

Almost all my students felt that they need to type one full page. This is a wrong idea. If the company you are applying to gets 100 applicants, then the people who look through the applications will need to read 100 letters. Make their life easier. Write only 3 paragraphs:
  • paragraph 1: introduce yourself and the job you are applying.
  • paragraph 2: explain why you are the best fit for the job. (Not just a good fit, but the best fit.)
  • paragraph 3: thank the person and close the letter.

Spend at most 30 minutes to type your cover letter draft. You can take a brief break from writing if necessary, then move on to your resume.

Resume

A resume must have 3 critical sections: Work Experience, Skills, and Education. Spend most of your time on these sections. Your contact info at the heading should take you 5 minutes max.

Spend 15 minutes researching resumes, then start typing the skeleton of your resume. At this point, you should have (1) your contact info at head of the resume and (2) section headings.

What do you write in these 3 critical sections?

Work Experience
  • List your past jobs. Include only jobs that are related to what you are applying and jobs that show significant responsibilities.
  • For each job, describe what you did. Start each description with a verb in the past tense. Examples:
    • Solved customer problems...
    • Researched and developed look and feel...
    • Fixed geometry problems...
  • Include only relevant descriptions and descriptions that show your ability to take responsibility. Keeping the list short is better (remember to make the recruiter's life easier).
Skills
  • List the software that you use.
  • For each software, describe (1) what you use it for and (2) at what level of proficiency (beginner, intermediate, or expert user).
    • Examples:
      • 3ds Max: Expert user (level of proficiency) for 3D modelling and texturing (usage).
      • Nuke: Expert user for 2D compositing.
      • ZBrush: Intermediate user for digital sculpting, texturing, and detailing.
    • What is the difference between intermediate and expert? My rule of thumb is this. Imagine you are in your first day of the new job. The company gives you the software and a task to do. Can you immediately launch yourself into 100% productivity, hitting shortcut keys as fast as other veterans in the company?
      • If you can, then you are an expert user.
      • If you need some time to grope around the User Interface (UI) or to remember which commands to use, then you are an intermediate user.
  • Include only relevant software. If the position requires proficiency in word processing, then do include word processing (assuming you do have the skill). Otherwise, keeping the list short is better (remember to make the recruiter's life easier).
Education
  • List the highest qualification you have, which school you got it from, and when you got it.
  • If you have multiple equivalent qualifications (usually diplomas in different aspects of arts), then list these.
If you are focused, you should finish a draft in one and a half hours.

Polishing the Drafts

You may feel that this is too easy. You are right. What you have at this point are drafts. You need to polish them now.

First, research more about the particular job you are applying. Make sure you know clearly (1) what requirements are and (2) what you will do if you get the job. Next, research about the company you are applying to. Get familiar with what they worked on.What you want to do is to eliminate as many blind spots that you have as possible. This will help you in polishing your drafts.

A student who was preparing for a modeling internship position for Lucasfilm Singapore wondered why the company needed 3D modelers since he thought the company did not do modeling that much. I answered by showing him these videos:
I finished off by mentioning "Pacific Rim" (so many giant robots, kaijus, and buildings; not mentioning different extent of damage for each model).
Just by reminding him about past films ILM worked on eliminated his blind spot that ILM (and therefore Lucasfilm) does not create model much. In addition, he realized the scope of modeling needed, both in complexity and volume, giving him a clearer idea of what he would be doing if he got the job.

How do you polish your cover letter draft?

You can mimic the process I follow for all my students. I read through what they wrote, pretending that I were a recruiter who has to read tens of cover letters.

By now, you should know more about the job and the company compared to when you started writing your draft. Identify anything that tells the recruiter that you are not clear about the job or the company. Rephrase or delete such sentences or paragraphs. If your draft as a whole draft gives off such impression, then you may want to rewrite your draft.

Next, strengthen your argument that you are the best fit for the job. You can cite past experience or explain how your background makes you that best fit.

Finally, work on the language. Here are a number of common mistakes I saw so far:
  • Bombastic words. Tune down such words because they make you sound as if you are sucking up.
  • Certain points are repeated. Eliminate repetitions.
  • Some paragraphs essentially say nothing. Delete such paragraph.
  • Some paragraph elaborate a point mentioned in another paragraph. Combine those paragraphs.
Edit ruthlessly until you have 3 short paragraphs.

Now you are ready to show your draft to people you trust who can help you to improve the grammar, word choice, et cetera. You can ask your parents, your instructor, or even cross-check with your classmate (you check your classmate's and your classmate check yours). I recommend getting feedback from a person who is meticulous about language. This can be a never ending process, so be reasonable.

How do you polish your resume draft?

Same process as polishing cover letter draft. Read your resume as if you were a recruiter who has to read tens of resumes. Again, the first thing you must do is eliminate anything that tells the recruiter that you are not clear about the job you are applying.

After that, the edits are relatively minor:
  • Make sure the recruiter can find the 3 critical sections in one glance. Adjust font size and spacing to make the 3 headings easy to find.
  • Any past jobs or past responsibilities that will not interest the recruiter must be removed.
  • On the other hand, if researching about the job and the company remind you of a past experience you forgot to write, then do add this.
Edit and format ruthlessly until you fit your resume within 2 pages.

Now you are ready to show your resume draft around and get feedback.

(One point to note here. I am in Singapore where the words "resume" and "CV" mean the same thing. If you are not in Singapore, please make sure you write what the company asks for.)


I hope this post convinces you that writing a cover letter and a resume in half a day is possible. I am sure you give yourself more time than half a day, so you can definitely finish yours with reasonable quality. In the next post, I will cover the demo reel (and possibly a portfolio).

If you have a different take, please leave a comment below. I would especially like to hear what recruiters want :)

(Edited on 2 May 2015. Added elaboration on levels of proficiency and closing line.)
(Edited on 15 May 2015. Pointed out the I assumed the context of 3D computer graphics industry.)