Gamasutra: The Art & Business of Making Gamesspacer
View All     RSS
August 23, 2014
arrowPress Releases
August 23, 2014
PR Newswire
View All
View All     Submit Event





If you enjoy reading this site, you might also want to check out these UBM Tech sites:


 
2D Art: Quick Manual for rendering line art in Maya
by Junxue Li on 09/02/13 06:29:00 am   Expert Blogs

The following blog post, unless otherwise noted, was written by a member of Gamasutra’s community.
The thoughts and opinions expressed are those of the writer and not Gamasutra or its parent company.

 

 

 
  Today, 2D game art  production employs lots of 3D procedure. For example, 3D model aided 2D design, and 3D render plus 2D overpainting.
   Now I give you a tip, which is useful in the design process: how to render 2D line art out of 3D models. Which is especially helpful for complicated objects or scenes, for example vintage furniture, regal interiors.
  Let’s start with a simple example. We have this cabinet model, let’s see how to render its line art with Mental ray in Maya.




1. Create a lambert shader, here is lambert2. Go to its shading group node, open the tag mental ray/contours.

 
 
Check the box Enable Contour Rendering. Here the Color is the color of the lines, you may want to change it to black. Width is the width of the lines. Please note it is not measured in pixels.

 
2. Go to the Render Settings editor, open this tag Features/Contours. Check the box Enable Contour Rendering. In a common sense, line art is black lines on white paper. So check Hide Source then change Flood Color to white.
Give a higher number for Over-Sample, for example 12, to produce clear cut lines.
And at the bottom section, link 2 contour shaders, which names are as indicated below.

 

These two shaders, find them in the Mental Ray contour shader groups.
 

 
3. If you have linked the right shaders, you should find these two node in Hypershader, the Utilities tag. As below:
Click the  contour_contrast_function_levels shader(the one with the circle icon), open its attributes.
 
 
Check the boxes: Diff Label, Contrast 
 


4. Assign the shader you have just created, lambert2, to the cabinet. If you click render now, it should be the line art. 




5. The lines are generated based on an algorithm which checks the surface of the geometries(Curvature, angles,etc). Some times there are not lines at the places you want them, you may need to tweak 2 parameters in step #3, ZdeltaNdelta. It’s complicated to explain them in mathematical terms, so the best way is to experiment different values by yourself. 

 


Related Jobs

FarSight Studios
FarSight Studios — Big Bear Lake, California, United States
[08.22.14]

Lead Android Engineer
Glu Mobile
Glu Mobile — Bellevue, Washington, United States
[08.22.14]

Lead Engineer
Machine Zone
Machine Zone — Palo Alto, California, United States
[08.22.14]

Project Manager
Retro Studios - Nintendo
Retro Studios - Nintendo — Austin, Texas, United States
[08.22.14]

FX Artist






Comments



none
 
Comment: