tag:blogger.com,1999:blog-18745575605484016942024-03-18T20:52:28.608-07:00Cell Shading Tutorial with 3Ds MaxUnknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-1874557560548401694.post-44436398337613925392008-02-25T22:01:00.001-08:002009-05-26T01:57:05.335-07:00Cell Shading Basics (10-20min)<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6RwOVVW1P-_nrjNWxLK_r_vbB4bwanxFqyL4HOedTY-L-CWdu03ENjnFtaMhVC-at-DrYu0e3PfwrW6OYmry7xzY6OvahscRFy1MvPWhY3JsR2yEAcLSuJGsjA3lRGLjlVrLYH2bclyzh/s1600-h/Smithy_Complete.gif"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 400px; height: 320px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6RwOVVW1P-_nrjNWxLK_r_vbB4bwanxFqyL4HOedTY-L-CWdu03ENjnFtaMhVC-at-DrYu0e3PfwrW6OYmry7xzY6OvahscRFy1MvPWhY3JsR2yEAcLSuJGsjA3lRGLjlVrLYH2bclyzh/s400/Smithy_Complete.gif" alt="" id="BLOGGER_PHOTO_ID_5340050732227847186" border="0" /></a>Topic: Materials & Rendering<br />Length: 10-20 min<br />Difficulty: Easy<br /><br />In this short tutorial you will learn how to render 3d models in 3<span class="blsp-spelling-error" id="SPELLING_ERROR_0">ds max</span> into 2D <span class="blsp-spelling-error" id="SPELLING_ERROR_1">manga</span> looking images with cell shading. You will learn how to create an Ink & Paint material and how to set up the <span class="blsp-spelling-error" id="SPELLING_ERROR_2">renderer</span> to render cell shading.<br /><br />Above is an example of cell shading on a japanese building. I made this image for a small scale strategy game using the method of cell shading.<br /><br />Note: If you already have a model that you would like to cell shade please skip step 1.<br /><br /><strong>Step 1:</strong> For the purposes of this tutorial we're going to use a simple torus shape to practice cell shading. First create a Doughnut in your perspective view from the standard primitives <span class="blsp-spelling-error" id="SPELLING_ERROR_3">rollout</span> and make it look something like this one below. If we were to render this now it would look quite plain and boring, but we will soon fix that.<br /><br /><img id="BLOGGER_PHOTO_ID_5171200453983145298" style="margin: 0px auto 10px; display: block; text-align: center;" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Vd3y5t_sJ9Q7602-WlcJKU1RzKgIbGZ0WO_1RjYaTiE1skWRWH9dOPump9WUvk3PoTWB56jEL5kcCYTAWcr90tBkBIWN5xnuTKhkShf-d5HConkyaySC0KayZubPeiQnJ4tsOg1aohFz/s400/Step+1.JPG" border="0" /><br /><strong>Step 2:</strong> Now open the render scene dialog box and check the radio button at the bottom of the window that says Activate <span class="blsp-spelling-error" id="SPELLING_ERROR_4">shader</span>. This will allow the render to render the cell shading properly. It is also a good idea at this time to change the render background to white so that the outline of the doughnut will be visible. (rendering - environment and change background colour to white)<br /><br /><img id="BLOGGER_PHOTO_ID_5171204426827894114" style="margin: 0px auto 10px; display: block; text-align: center;" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz8UjArQ_Q6ePVv1Uzh-mxUenxVVb9QCeFp8DP1QZwLc1KTrW52__p-5DFsJxZePUX0PmsWhaUTkABz-XKQH2BgPJ7A_fVq4qbYv52RpeGpf6gja9mu8MU0VDEwRhyphenhyphen2hk6vBuZOyjxHcHU/s400/Step+2.JPG" border="0" /><br /><strong>Step 3: </strong>Now it's time to make the material for your <span class="blsp-spelling-corrected" id="SPELLING_ERROR_5">immensely</span> complex doughnut. Open the material editor by pressing m. Now we don't want a standard material so click on standard and from the choices in the dialog box that appears choose <em>"Ink & Paint". </em>Now you should have a basic cell <span class="blsp-spelling-error" id="SPELLING_ERROR_6">shader</span> material that is blue by default as shown in picture 3 below. Apply the texture to the <span class="blsp-spelling-corrected" id="SPELLING_ERROR_7">doughnut</span> be either dragging and dropping or by clicking the 'Assign Material to Selection button'.<br /><br /><div><img id="BLOGGER_PHOTO_ID_5171207282981145970" style="margin: 0px auto 10px; display: block; text-align: center;" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5POSCUs7rYNGolQ3wpXrlleMuRzCiR6sE1NPGZZmulvqcP-Q9DgL1Eqov6kZkQPENc6gtgpoQiyEEigO4-VgYuqk4RiJPLJSwHaXa2lIhI7pU-VREpvVqUc0ydgsVhgHOW268mr8-3pzL/s400/Step+3.JPG" width="503" border="0" height="298" /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmI61ChJthelrBbtr4fqfztZFUjxjnioAf79t-vE2odr9ED-xf8AWlpe97cvJhof6UFq9VmK7DPjKB4NJ-WFcSAazhZkXUQQOhcY6b9-B-FEITXyXelS77qHzfb_C0mQ_mU5whIsLoGfRv/s1600-h/dong+1.jpg"><strong><img id="BLOGGER_PHOTO_ID_5171215159951166850" style="margin: 0px 10px 10px 0px; float: left;" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmI61ChJthelrBbtr4fqfztZFUjxjnioAf79t-vE2odr9ED-xf8AWlpe97cvJhof6UFq9VmK7DPjKB4NJ-WFcSAazhZkXUQQOhcY6b9-B-FEITXyXelS77qHzfb_C0mQ_mU5whIsLoGfRv/s200/dong+1.jpg" border="0" /></strong></a><strong>Step 4. </strong>If you were to render the image now it would come up something like this on the left. As you can see this is not very convincing and more tweaking is needed to make it more <span class="blsp-spelling-error" id="SPELLING_ERROR_8">'cartoonistic'</span>. (Note: For cell shading to render properly it must be in a perspective or camera view or else it will not work properly)<br /></div><br /><p>In the paint control <span class="blsp-spelling-error" id="SPELLING_ERROR_9">rollout</span> of the material editor, set paint levels to 3 and check the box that says highlights. This will add an extra level of shades for a 3d look and highlights to show reflectivity.<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaYqB4jc_GNFHPqjxlN6yxkzF_gpiXrKlrrLDHgzuwahqZLWuWRnXo7CuaTkfjkgD5uKM_HR72L7wyYRTxqAc2zfj4yg9wyO8GMox4rYM4Ml8ri9rB3Hu8VtB8OGNfFqjQmwzDGoPsargI/s1600-h/dong+2.jpg"><img id="BLOGGER_PHOTO_ID_5171216487096061330" style="margin: 0px 10px 10px 0px; float: left;" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaYqB4jc_GNFHPqjxlN6yxkzF_gpiXrKlrrLDHgzuwahqZLWuWRnXo7CuaTkfjkgD5uKM_HR72L7wyYRTxqAc2zfj4yg9wyO8GMox4rYM4Ml8ri9rB3Hu8VtB8OGNfFqjQmwzDGoPsargI/s200/dong+2.jpg" border="0" /></a><br />Render the image by pressing <span class="blsp-spelling-error" id="SPELLING_ERROR_10">ctrl</span>-Q. As you should notice the quality of the image is improved a lot just by doing these two small things. For most cell shading only 3 paint levels are needed but you may want to try more for whatever reasons. Play around with the paint levels and see what happens when you render the image at 4, 5, 6, etc paint levels. </p><p>You can also change the colour of your object here by clicking on the colour swatch at the top of the rollout and choosing a different colour.<br /><br /><strong>Step 5: </strong>Step 4 may be as far as you want to go but from now onwards you may want to tweak your cell shading to get the affect that you want most. In the paint <span class="blsp-spelling-error" id="SPELLING_ERROR_11">rollout</span> change the shaded value from 70 to 30 and render the image. Now change it from 30 to 0 and render it again. As you probably noticed, this increases the darkness of the of the rendered image. Change this value until you get the look that you want.</p><img id="BLOGGER_PHOTO_ID_5171225502232415794" style="margin: 0px auto 10px; display: block; text-align: center;" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtpuTt0ry6lmJFGu3SKyfJQERiOtht44X_TAL1zslMMPsX2_JhrMrdaBUjrjZcnkrglvLTTdJn6Y1Dd1LZ2CYnUZr6-35G4a0ezorYYv5rHUgH_daCjyY-ICqkMSwyGF3_2t2GR_WHsW5o/s400/Dongs+1.JPG" border="0" />Also change the glossiness value as well. Set it to 0 and render it. Then set it to 80 and render it. The higher the value in this box the smaller the highlights and, likewise, the lower the value, the bigger the highlights. <img id="BLOGGER_PHOTO_ID_5171226228081888834" style="margin: 0px auto 10px; display: block; text-align: center;" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgerom9dZlFs9s3lXmCWF_QB4bo4Pd6TnXVSPqlgPjS3rZgpyjOdDCGLeRnwdE_MOySQFIbEINvTTk9j4_wgVipnBlQR2FhNGrebwquNqPVac2cn374CP1dl4WV8W3QA2EXDSHhwsHofNOJ/s400/Dongs+2.JPG" border="0" /><br /><strong>Step 6:</strong> We'll leave paints for now and go onto ink controls. Just scroll down to the ink control <span class="blsp-spelling-error" id="SPELLING_ERROR_12">rollout</span> on your material map editor and have a look. Most <span class="blsp-spelling-error" id="SPELLING_ERROR_13">manga</span> and cartoons utilize variable pen line widths to make the art look better and 3<span class="blsp-spelling-error" id="SPELLING_ERROR_14">ds</span> max has this function as well. Check the box that says 'Variable width and set the min value to 0.5 and the max value to 4. You won't notice the difference on the <span class="blsp-spelling-corrected" id="SPELLING_ERROR_15">doughnut</span> too much but on a more complex model you should. <p><img id="BLOGGER_PHOTO_ID_5171229058465336914" style="margin: 0px auto 10px; display: block; text-align: center;" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilVqeXwf625DCVblQR488M5d_fbcYqkLFCmhRIAuD1nBhAQSMBPcTlekPghG3SYkSzLYGj9gik2TkmSDLpkpj1Zfg2HO9tTpM7VL2hzhFvHhOuo7WS5f1Q7sbXUa4LFJgBQdUCd8Q_6Vs8/s400/Step+5.JPG" border="0" /></p><p>The rest of the ink control <span class="blsp-spelling-error" id="SPELLING_ERROR_16">rollout</span> is very self explanatory and <span class="blsp-spelling-corrected" id="SPELLING_ERROR_17">I'll</span> leave you to play around with that. Make sure you try everything and see what it does. For now don't worry about the swatches that say 'NONE', I will address those in a later tutorial. </p><p>I hope this tutorial helped. Keep checking back in the future for the intermediate cell shading tutorial and other 3<span class="blsp-spelling-error" id="SPELLING_ERROR_18">ds</span> max tutorials.</p><p>Below are some more examples of cell shading. These are animated and they are also from the same small scale Japanese strategy game I helped create:</p><p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrdFminQUwZ_BfTM_CBc8Hgd3ur9B6HCeSqRCSaap-c5D0jkyNyNTk1Mtq4ICLcf9EnoA67do1K2bv2lF_B_EFtrbgu0YkOPav3w1NBEpfI16Pn1O519FXrg4TqnB0QrnqqhtbGV7amchx/s1600-h/villi_atta_sling_sw.gif"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 80px; height: 96px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrdFminQUwZ_BfTM_CBc8Hgd3ur9B6HCeSqRCSaap-c5D0jkyNyNTk1Mtq4ICLcf9EnoA67do1K2bv2lF_B_EFtrbgu0YkOPav3w1NBEpfI16Pn1O519FXrg4TqnB0QrnqqhtbGV7amchx/s400/villi_atta_sling_sw.gif" alt="" id="BLOGGER_PHOTO_ID_5340051852200131666" border="0" /></a><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuatjDZ6A0ycc-d-FmUfIw5iKLwogQppeLZC1W7b6DqeZ9BdI6rV7MVqooDvB-fl1FSTYkKlBzi7vwDrDEn8PPbXPg28vcQXbX3tE7HEqP7wMmOQ7jEPnM6mC5JrvhfZ77CCJIF3GwI27T/s1600-h/villi_walk_sling_sw.gif"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 80px; height: 96px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuatjDZ6A0ycc-d-FmUfIw5iKLwogQppeLZC1W7b6DqeZ9BdI6rV7MVqooDvB-fl1FSTYkKlBzi7vwDrDEn8PPbXPg28vcQXbX3tE7HEqP7wMmOQ7jEPnM6mC5JrvhfZ77CCJIF3GwI27T/s400/villi_walk_sling_sw.gif" alt="" id="BLOGGER_PHOTO_ID_5340051844119469746" border="0" /></a><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXQXds5nyQa4c3oqzyR5JEiZpJfbRxoqgNLsSrfVP5YQrwczyH88p4lWdc3yOzJWhfvuHLz6lhDaLKq5yToa3rnwGLGZXDMzJGUlS0IfgfrFmBRlwbVrsGUtaOn-Lt1F0H-aTIpTEp1sQx/s1600-h/Giant2_walk_sw.gif"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 200px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXQXds5nyQa4c3oqzyR5JEiZpJfbRxoqgNLsSrfVP5YQrwczyH88p4lWdc3yOzJWhfvuHLz6lhDaLKq5yToa3rnwGLGZXDMzJGUlS0IfgfrFmBRlwbVrsGUtaOn-Lt1F0H-aTIpTEp1sQx/s400/Giant2_walk_sw.gif" alt="" id="BLOGGER_PHOTO_ID_5340051842708067426" border="0" /></a><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtaheHxf9VCSPc3-LjlSPbrpKSU95zAo9FGty16n_Ore5keE69ztRmQ1e7HF2kIUlVtWecgvntkoMYPQ1gY0YwyQpgkQJGix18VZrhkdFhq_V6GsMD9vKuEt7ynHS6QXxekpwPrR3VTPRN/s1600-h/Giant_attack2_Se.gif"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 200px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtaheHxf9VCSPc3-LjlSPbrpKSU95zAo9FGty16n_Ore5keE69ztRmQ1e7HF2kIUlVtWecgvntkoMYPQ1gY0YwyQpgkQJGix18VZrhkdFhq_V6GsMD9vKuEt7ynHS6QXxekpwPrR3VTPRN/s400/Giant_attack2_Se.gif" alt="" id="BLOGGER_PHOTO_ID_5340051839637152306" border="0" /></a></p>Unknownnoreply@blogger.com3