{"id":140219816064,"date":"2016-02-29T09:01:48","date_gmt":"2016-02-29T08:01:48","guid":{"rendered":"http:\/\/blog.sketchfab.com\/post\/140219816064"},"modified":"2019-08-15T17:07:24","modified_gmt":"2019-08-15T15:07:24","slug":"tutorial-creating-3d-blueprints","status":"publish","type":"post","link":"https:\/\/sketchfab.com\/blogs\/community\/tutorial-creating-3d-blueprints\/","title":{"rendered":"Tutorial: Creating 3D Blueprints"},"content":{"rendered":"<p><em>Last week, we staff picked Vincent Scalia\u2019s <a href=\"https:\/\/sketchfab.com\/models\/10bbdd8b9b1a4c5ba4cdc7fabbae1a1f\">Blue Print: Ravin\u2019s Hands<\/a>. It made clever use of some of the Sketchfab rendering settings and people were interested to learn more about this effect. Here\u2019s how he did it!<\/em><\/p>\n<p>In this tutorial I will show how to set up a stylized 3D blueprint for Sketchfab. Although I used Blender to make this asset, the options that will be used to make the setup are available in every major modeling software.<\/p>\n<p><!-- more --><\/p>\n<p>Start out with an existing mesh. We\u2019ll create a copy of that mesh and modify it to achieve the outline cell shading effect. To do this, duplicate your mesh and put it to the side. Make sure you have a way to place it back at the original position when you are done! (i.e. move a certain distance or put a reference object there as shown in Fig. 1) Now, scale the mesh along its own normals (blender [Alt]+[S]) so that it is about 1.07 times it\u2019s original size. The scaled mesh (bottom) is shown to the side of the original model (top):<\/p>\n<p><a href=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/29612c73b555ea1e65ec031417fb60e73021f688-1.jpg\" rel=\"attachment wp-att-142059966727\"><img decoding=\"async\" class=\"alignnone size-large wp-image-142059966727 lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/29612c73b555ea1e65ec031417fb60e73021f688-1-1030x805.jpg\" alt=\"29612c73b555ea1e65ec031417fb60e73021f688.jpg\" width=\"900\" height=\"703\" \/><noscript><img decoding=\"async\" class=\"alignnone size-large wp-image-142059966727 lazyload\" src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/29612c73b555ea1e65ec031417fb60e73021f688-1-1030x805.jpg\" alt=\"29612c73b555ea1e65ec031417fb60e73021f688.jpg\" width=\"900\" height=\"703\" \/><\/noscript><\/a><br \/>\n<em>Fig 1: Positions of original and scaled mesh<\/em><\/p>\n<p>We will use <a href=\"https:\/\/en.wikipedia.org\/wiki\/Back-face_culling\" target=\"_blank\" rel=\"nofollow\">backface-culling<\/a> to create the rendered border around the object to act as chalk lines. Since this option is dependant on the face normals, we will have to invert them on the large mesh. Flip the normals (in Blender: <em>Tools&gt;Shading and UV\u2019s&gt; Normals&gt; Flip direction<\/em>). The normals are flipped (in Fig. 2, the blue line shows the normal direction, and it faces toward the inside of the mesh):<\/p>\n<p><img decoding=\"async\" class=\"lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/f91d1027f721de8fd42c1c5fa3208597df977a5d-1.jpg\" alt=\"\" \/><noscript><img decoding=\"async\" class=\"lazyload\" src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/f91d1027f721de8fd42c1c5fa3208597df977a5d-1.jpg\" alt=\"\" \/><\/noscript><br \/>\n<em>Fig. 2: Mesh normals are flipped<\/em><\/p>\n<p>Now you must give the two meshes a color. The large mesh needs to be pure white (#FFFFFF), and the original mesh should be a blue-ish color (#0033CC). Once the meshes are colored, place the white mesh back at the same position as the blue mesh. Now is also a good time to duplicate both meshes and put the new copy in profile to the top of the camera. The mesh is colored, as shown in Fig. 3:<\/p>\n<p><img decoding=\"async\" class=\"lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/920383f2a06bdb0fbc7dfce88ebbb66b39be1ec3-1.jpg\" alt=\"\" \/><noscript><img decoding=\"async\" class=\"lazyload\" src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/920383f2a06bdb0fbc7dfce88ebbb66b39be1ec3-1.jpg\" alt=\"\" \/><\/noscript><br \/>\n<em>Fig. 3: Coloring of mesh<\/em><\/p>\n<p>Now, the next part of the blueprint process is to add annotations, <a href=\"https:\/\/help.sketchfab.com\/hc\/en-us\/articles\/202512456-Annotations\">which is easy to do in Sketchfab<\/a>. But if you really want your model to look like a blueprint, you must create some handwritten ones to place around your scene (the messier your writing, the better :-)). This is easiest to perform with a drawing tablet, but if you do not have one, it is still possible using the mouse. If you don\u2019t have a mouse, go buy one.<br \/>\nThe area around the annotation text you\u2019re making needs to be transparent, so create a new image in GIMP or Photoshop and fill it with transparency. The image will be transparent, per the settings shown in Figure 4 for GiMP:<\/p>\n<p class=\"centerimg\"><img decoding=\"async\" class=\"aligncenter lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/33e93259597fbabc99050dddf2b4ba83296428c2-1.jpg\" alt=\"\" \/><noscript><img decoding=\"async\" class=\"aligncenter lazyload\" src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/33e93259597fbabc99050dddf2b4ba83296428c2-1.jpg\" alt=\"\" \/><\/noscript><br \/>\n<em>Fig 4.: Creating a transparent image<\/em><\/p>\n<p>Now you can draw whatever you like on the image using a white brush. Try adding variation when creating the image so you don\u2019t have too many obviously repeating annotations when you add them to your scene. Numbers and comments that make no sense at all, like the ones in Fig 5, will add realism to the blueprint. Next, export your image as PNG, import it into your modeling software, and UV unwrap several planes and map them to the image. If you scale the planes at all, just try to keep all the text the same size and resolution still. Place the planes around your scene. The planes are placed, they are mapped to the image, and the have transparency, as shown in Fig 5:<\/p>\n<p><img decoding=\"async\" class=\"lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/20c27a6a89a0aee37b76c43b808b11c254997af2-1.jpg\" alt=\"\" \/><noscript><img decoding=\"async\" class=\"lazyload\" src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/20c27a6a89a0aee37b76c43b808b11c254997af2-1.jpg\" alt=\"\" \/><\/noscript><br \/>\n<em>Fig. 5: Transparent annotations in scene<\/em><\/p>\n<p>All that is left to do is add a background to your scene and import the model into Sketchfab. A simple box will work for the background. Make sure you scale it so it can engulf the entire model and have some room inside for the camera. Now color the box the same as the blue object. The box is colored the same, as shown in Fig 6:<\/p>\n<p><img decoding=\"async\" class=\"lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/0203f0ad48f6b85dfa0633a926fb5ce9addf8030-1.jpg\" alt=\"\" \/><noscript><img decoding=\"async\" class=\"lazyload\" src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/0203f0ad48f6b85dfa0633a926fb5ce9addf8030-1.jpg\" alt=\"\" \/><\/noscript><br \/>\n<em>Fig. 6: Example of background box<\/em><\/p>\n<p>Now you are ready to import the model into Sketchfab. After the upload finishes, go to \u201cEdit 3D Settings\u201d to change the way the model will appear in the viewer. The first tab to edit is \u201cScene\u201d depicted by a little gear icon. You must now enable \u201cShadeless\u201d under the shading drop down menu, and \u201cWireframe\u201d. Only a very light amount of wireframe is needed. You can also give your model any filters you want, but the essentials are \u201cGrain\u201d (animated or still, your preference) and \u201cSharpness\u201d which will make the blueprint look more like paper. The Filters are set, shadeless and wireframe are enabled, with sample values shown in Fig 7:<\/p>\n<p class=\"centerimg\" style=\"text-align: center\"><img decoding=\"async\" class=\"aligncenter lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/ab8eb7b04403d42840585049b4aba622fff20e40-1.jpg\" alt=\"\" \/><noscript><img decoding=\"async\" class=\"aligncenter lazyload\" src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/ab8eb7b04403d42840585049b4aba622fff20e40-1.jpg\" alt=\"\" \/><\/noscript><br \/>\n<em>Fig 7: Render settings for scene<\/em><\/p>\n<p>Now you can probably see the model inside the box, but it will look white, as backface culling has not been activated for your white material. You can do this under the \u201cMaterials\u201d tab depicted by a mountain landscape with a sun above it. Under the \u201cFaces Rendering\u201d menu, select \u201cSingle Sided\u201d for the white, and \u201cdouble sided\u201d for the blue. Backface culling is set, as shown in Fig 8:<\/p>\n<p><img decoding=\"async\" class=\"lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/562632c7f447bd3ac2c5cf840b28077257fac47c-1.jpg\" alt=\"\" \/><noscript><img decoding=\"async\" class=\"lazyload\" src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/562632c7f447bd3ac2c5cf840b28077257fac47c-1.jpg\" alt=\"\" \/><\/noscript><br \/>\n<em>Fig 8: Backface culling set<\/em><\/p>\n<p>The final step is to enable the transparency for that annotation image. If you imported the model as .zip or .rar, then this might be done for you, otherwise, open up the the annotations material and import the image. Mapping the image will be done for you. Enable transparency for the material, and select the annotation image as the mask. The image is enabled, as shown in Fig 9:<\/p>\n<p><img decoding=\"async\" class=\"lazyload\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/92f0574d686bcac694a37dba27b7dc97a217599a-1.jpg\" alt=\"\" \/><noscript><img decoding=\"async\" class=\"lazyload\" src=\"http:\/\/blog.sketchfab.com\/wp-content\/uploads\/2016\/02\/92f0574d686bcac694a37dba27b7dc97a217599a-1.jpg\" alt=\"\" \/><\/noscript><br \/>\n<em>Fig 9: Annotations looking good! :-)<\/em><\/p>\n<p>Now your model is ready to be shared with the universe! Make sure you give it <a href=\"http:\/\/sketchfab.com\/tags\/blueprint\">#Blueprint<\/a> so I can find it. Save settings and publish the scene.<\/p>\n<div class=\"sketchfab-embed-wrapper\">    <iframe title=\"Blue Print: Ravin&#039;s Hands\" class=\"\" width=\"690\" height=\"388\" src=\"https:\/\/sketchfab.com\/models\/10bbdd8b9b1a4c5ba4cdc7fabbae1a1f\/embed\" frameborder=\"0\" allow=\"autoplay; fullscreen; xr-spatial-tracking\" allowfullscreen=\"\" mozallowfullscreen=\"true\" webkitallowfullscreen=\"true\" xr-spatial-tracking=\"true\" execution-while-out-of-viewport=\"true\" execution-while-not-rendered=\"true\" web-share=\"true\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Last week, we staff picked Vincent Scalia\u2019s Blue Print: Ravin\u2019s Hands. It made clever use of some of the Sketchfab rendering settings and people were<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[582],"tags":[19,18,36,597,994],"class_list":["post-140219816064","post","type-post","status-publish","format-standard","hentry","category-tutorial","tag-b3d","tag-blender","tag-effects","tag-npr-rendering","tag-tutorial-modeling"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sketchfab.com\/blogs\/community\/wp-json\/wp\/v2\/posts\/140219816064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sketchfab.com\/blogs\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sketchfab.com\/blogs\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sketchfab.com\/blogs\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sketchfab.com\/blogs\/community\/wp-json\/wp\/v2\/comments?post=140219816064"}],"version-history":[{"count":5,"href":"https:\/\/sketchfab.com\/blogs\/community\/wp-json\/wp\/v2\/posts\/140219816064\/revisions"}],"predecessor-version":[{"id":142059990727,"href":"https:\/\/sketchfab.com\/blogs\/community\/wp-json\/wp\/v2\/posts\/140219816064\/revisions\/142059990727"}],"wp:attachment":[{"href":"https:\/\/sketchfab.com\/blogs\/community\/wp-json\/wp\/v2\/media?parent=140219816064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sketchfab.com\/blogs\/community\/wp-json\/wp\/v2\/categories?post=140219816064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sketchfab.com\/blogs\/community\/wp-json\/wp\/v2\/tags?post=140219816064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}