{"id":53,"date":"2020-07-31T13:06:08","date_gmt":"2020-07-31T17:06:08","guid":{"rendered":"https:\/\/blogs.library.unt.edu\/spark\/?p=53"},"modified":"2020-07-31T13:06:08","modified_gmt":"2020-07-31T17:06:08","slug":"spark-tutorial-taking-a-2d-image-to-3d","status":"publish","type":"post","link":"https:\/\/blogs.library.unt.edu\/spark\/2020\/07\/31\/spark-tutorial-taking-a-2d-image-to-3d\/","title":{"rendered":"Spark Tutorial: Taking a 2D Image to 3D"},"content":{"rendered":"<p>For this tutorial we will be making a 3D representation of this image:<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54\" src=\"https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb-240x300.png\" alt=\"\" width=\"240\" height=\"300\" \/>Credit: Saffron Blaze, Wikimedia Commons<\/p>\n<p>Being able to take a picture of an item and turn it into a 3D model can be a very useful skill. This is a multi-step process that begins with the picture, then utilizes photo editing programs, vector manipulation, and finally Tinkercad. First you need to take your picture and open it some kind of photo manipulation program\u2026 I prefer to use Photoshop because it has good selection tools. In the program you should work to cut out the background from the image (see P1). In this case, I simply used the magic wand selection tool in Photoshop and deleted the background.<\/p>\n<p>P1:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55\" src=\"https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbbb2-241x300.png\" alt=\"\" width=\"241\" height=\"300\" \/><br \/>\nNext, you will want to selectively remove an outline of any details you want to keep in your image\u2026 in this case, we\u2019ll keep the eye, nostril and outline of the neck. (see P2). Then select all of the white areas of the image and use the inverse selection option to select the opposite area of the image instead. Now with this area selected, color the whole selection one color (see P3). After this\u2026 just clean up any of the rough edges and save the file as a .BMP file.<\/p>\n<div id='gallery-1' class='gallery galleryid-53 gallery-columns-2 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/blogs.library.unt.edu\/spark\/2020\/07\/31\/spark-tutorial-taking-a-2d-image-to-3d\/bbb3-241x300\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb3-241x300-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-56\" srcset=\"https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb3-241x300-150x150.png 150w, https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb3-241x300-65x65.png 65w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-56'>\n\t\t\t\tP2\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/blogs.library.unt.edu\/spark\/2020\/07\/31\/spark-tutorial-taking-a-2d-image-to-3d\/bbb4-241x300\/'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb4-241x300-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-57\" srcset=\"https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb4-241x300-150x150.png 150w, https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb4-241x300-65x65.png 65w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-57'>\n\t\t\t\tP3\n\t\t\t\t<\/figcaption><\/figure>\n\t\t<\/div>\n\n<p>The next step is to change our .BPM image into a vector image, specifically a .SVG image. To do this I use the free program Inkscape, but you could also use Adobe Illustrator. Once you open the file in Inkscape, it will bring up a pop up window with some options to pick from. You should choose \u201cDefault import resolution\u201d for DPI and \u201cSmooth\u201d for Image Rendering Mode. Click on your Image and go to Path \u00e0 Trace Bitmap (see P4) and click it. A window will open up. Click the Update button and then Okay and you can close the window. Now delete the .BMP image (identifiable by the way it gets blurrier as you zoom in on it.) and save the file as an .SVG.<br \/>\nP4:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-58\" src=\"https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb5-300x144.png\" alt=\"\" width=\"300\" height=\"144\" \/><br \/>\nFor this next step, we will use yet another free program\u2026 this time called Tinkercad. First you need to make an account, or sign in via Facebook, and then open up a new project. Now go and click the import button and upload the .SVG file to the program (see P5). Sometimes the file will be too large to import\u2026 if this is the case the just use the scale feature to reduce the scale until it will fit into Tinkercad\u2019s plane.<br \/>\nP5:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-59\" src=\"https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb10-300x123.png\" alt=\"\" width=\"407\" height=\"167\" \/><br \/>\nNext you can scale the object to the size you want with white and black squares located in near proximity to the model (see P6). Holding shift while moving the white squares will uniformly scale the model to as to avoid warping the features. Once you have to model the size you want, you can export it (see P7) as an .STL (for 3D printing) or .OBJ (for more general purpose modeling) and save it to your computer. And you\u2019re done!<br \/>\nP6:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-60\" src=\"https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb7-300x300.png\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb7-300x300.png 300w, https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb7-300x300-150x150.png 150w, https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb7-300x300-65x65.png 65w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\nP7:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-61\" src=\"https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/bbb8-281x300.png\" alt=\"\" width=\"281\" height=\"300\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For this tutorial we will be making a 3D representation of this image: Credit: Saffron Blaze, Wikimedia Commons Being able to take a picture of an item and turn it into a 3D model can be a very useful skill. This is a multi-step process that begins with the picture, then utilizes photo editing programs, &hellip; <a href=\"https:\/\/blogs.library.unt.edu\/spark\/2020\/07\/31\/spark-tutorial-taking-a-2d-image-to-3d\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Spark Tutorial: Taking a 2D Image to 3D<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":63,"featured_media":48,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-53","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spark-tutorials"],"jetpack_featured_media_url":"https:\/\/blogs.library.unt.edu\/spark\/wp-content\/uploads\/sites\/25\/2020\/07\/SPRK-Blog_SU20_Photography-Red-900x500.png","_links":{"self":[{"href":"https:\/\/blogs.library.unt.edu\/spark\/wp-json\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.library.unt.edu\/spark\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.library.unt.edu\/spark\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.library.unt.edu\/spark\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.library.unt.edu\/spark\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":1,"href":"https:\/\/blogs.library.unt.edu\/spark\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/blogs.library.unt.edu\/spark\/wp-json\/wp\/v2\/posts\/53\/revisions\/62"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.library.unt.edu\/spark\/wp-json\/wp\/v2\/media\/48"}],"wp:attachment":[{"href":"https:\/\/blogs.library.unt.edu\/spark\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.library.unt.edu\/spark\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.library.unt.edu\/spark\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}