{"id":11119,"date":"2014-07-29T23:47:24","date_gmt":"2014-07-30T03:47:24","guid":{"rendered":"http:\/\/aforgrave.ca\/detritus\/?p=11119"},"modified":"2021-06-21T10:38:08","modified_gmt":"2021-06-21T14:38:08","slug":"anaglyph-tutorial-part-1-selecting-the-image","status":"publish","type":"post","link":"https:\/\/aforgrave.ca\/detritus\/2014\/07\/29\/anaglyph-tutorial-part-1-selecting-the-image\/","title":{"rendered":"Anaglyph Tutorial, Part 1: Selecting the Image"},"content":{"rendered":"<p><strong><a href=\"http:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/Anaglyph-Tutorial-Part-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11131\" src=\"http:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/Anaglyph-Tutorial-Part-1.png\" alt=\"Anaglyph-Tutorial-Part-1\" width=\"650\" height=\"257\" srcset=\"https:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/Anaglyph-Tutorial-Part-1.png 650w, https:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/Anaglyph-Tutorial-Part-1-300x118.png 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/a><\/strong><\/p>\n<h4><strong>Before You Start<\/strong><\/h4>\n<p>&nbsp;<\/p>\n<p>You will be well served to have on hand a pair of red\/cyan (or red\/blue) 3D glasses so that you can view the images in the Tutorial (check out the Tutorial header image) and so you can test your images when they are&nbsp;done. I have also found that it can be quite helpful to actually wear the glasses during various parts of the process.<\/p>\n<p>(Throughout the tutorial, you may wish to watch for the \u201cPlease Put On Your 3D Glasses Now\u201d notices! ;-))<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11166 size-full\" src=\"http:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/Please-put-on-your-3D-glasses.png\" alt=\"Please-put-on-your-3D-glasses\" width=\"350\" height=\"59\" srcset=\"https:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/Please-put-on-your-3D-glasses.png 350w, https:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/Please-put-on-your-3D-glasses-300x50.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<p><em>But&nbsp;you don&#8217;t need to wear them right now.<\/em><\/p>\n<p>Unlike traditional stereo photography which makes use a pair of slightly different originals to create the perception of depth in 3D, we will be developing a 3D anaglyph making use of a single source image. &nbsp;Before we delve into the process too deeply, first a little bit of foundational theory.<\/p>\n<h4>The Simple Explanation<\/h4>\n<p><a href=\"http:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/How3dworks_REV1000_WithAttribution.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-11152\" style=\"margin-left: 10px;\" title=\"Click to Enlarge\" src=\"http:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/How3dworks_REV.png\" alt=\"How3dworks_REV\" width=\"142\" height=\"110\"\/><\/a><\/p>\n<p>Our perception of depth comes from the way our brain integrates two images from our two eyes \u2014 each eye seeing from a slightly different angle. We can simulate depth by providing each eye with it\u2019s own discrete image&nbsp;&#8212;&nbsp;in this case, one red and one cyan. Without 3D anaglyph glasses we see both images (and so there is a \u201cdouble image\u201d effect \u2014 but with the use of such glasses, one image is filtered out with one lens, and the other image is filtered out by the other, so each eye gets its own discrete image. If the two images have been slightly adjusted in position (and this is emphasized if we do this differently for different layers) then we can be tricked into perceiving depth when the brain combines them. <em>Click on the thumbnail to the right to enlarge the diagram.<\/em><\/p>\n<h4>Selecting An Image to Work With<\/h4>\n<p>Not all still images will be ideal for the creation of an anaglyph.&nbsp;The simplest image will have an object in the foreground and then a defined background behind. A more complex image may have a variety of foreground, mid ground, and background elements which can allow for a more interesting anaglyph.<\/p>\n<p>Throughout this tutorial, we will understand the process through the exploration of the following original source images.<\/p>\n<p><strong>Sisyphus, by George Wither<\/strong><\/p>\n<div id=\"attachment_11120\" style=\"width: 410px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/George-Wither-011_TT_Sisyphus_ORIGINAL.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11120\" class=\"wp-image-11120 size-full\" src=\"http:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/George-Wither-011_TT_Sisyphus_ORIGINAL.png\" alt=\"George-Wither-011_TT_Sisyphus_ORIGINAL\" width=\"400\" height=\"401\" srcset=\"https:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/George-Wither-011_TT_Sisyphus_ORIGINAL.png 400w, https:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/George-Wither-011_TT_Sisyphus_ORIGINAL-150x150.png 150w, https:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/George-Wither-011_TT_Sisyphus_ORIGINAL-300x300.png 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><p id=\"caption-attachment-11120\" class=\"wp-caption-text\">&#8220;Sisyphus, Illustration 11&#8221; from Emblemes: Illust. by Geo Wither (1635)<\/p><\/div>\n<p>While originally drawn\/engraved on a flat surface, this image has considerable perspective detail that provides visual cues as to depth &#8212; the foreground hill with Sisyphus, the trees (two depths of them &#8212; the large ones on the right and the smaller ones behind), the city and mountains in the background, and the distant sky. If we wish to isolate&nbsp;each of these elements, we can emphasize their relative positions along the z-axis (into and out of the image). &nbsp;As you can see, this image is an ideal candidate for turning into an anaglyph. (See the <a title=\"This Rolling Stone Ain\u2019t Rolling \u2026 Yet!\" href=\"http:\/\/aforgrave.ca\/detritus\/2014\/07\/29\/this-rolling-stone-aint-rolling-yet\/\" target=\"_blank\" rel=\"noopener\">completed image<\/a>)<\/p>\n<p><strong>John Gets His 3D Glasses On<\/strong><\/p>\n<div id=\"attachment_11121\" style=\"width: 610px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/John-Gets-His-3D-Glasses.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11121\" class=\"wp-image-11121 size-full\" src=\"http:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/John-Gets-His-3D-Glasses.jpg\" alt=\"John Gets His 3D Glasses\" width=\"600\" height=\"400\" srcset=\"https:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/John-Gets-His-3D-Glasses.jpg 600w, https:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/John-Gets-His-3D-Glasses-300x200.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-11121\" class=\"wp-caption-text\">&#8220;John Gets His 3D Glasses,&#8221; original image by <a title=\"John Johnston, @johnjohnston on Twitter\" href=\"http:\/\/twitter.com\/johnjohnston\/\" target=\"_blank\" rel=\"noopener\">@johnjohnston<\/a>,&nbsp;via <a title=\"&quot;John Gets His 3D Glasses&quot; image via Twitter\/Twitpic\" href=\"https:\/\/twitter.com\/johnjohnston\/status\/494171473813467136\/photo\/1\" target=\"_blank\" rel=\"noopener\">Twitter\/TwitPic<\/a><\/p><\/div>\n<p>As a photograph, John&#8217;s image provides a good capture of foreground and background elements. John&#8217;s hands and face are forward and will provide our front layers, and the seat, door and wall are clearly behind him and will provide our background layer. (See the <a title=\"John Gets His 3D Glasses On!\" href=\"http:\/\/aforgrave.ca\/detritus\/2014\/07\/29\/john-gets-his-3d-glasses-on\/\" target=\"_blank\" rel=\"noopener\">completed image<\/a>)<\/p>\n<div id=\"attachment_11137\" style=\"width: 610px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/JJ-Anaglyph-a-GIF_DIAGRAM.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11137\" class=\"size-full wp-image-11137\" src=\"http:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/JJ-Anaglyph-a-GIF_DIAGRAM.png\" alt=\"Foreground and Background Elements from &quot;John Gets His 3D Glasses On.&quot;\" width=\"600\" height=\"403\" srcset=\"https:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/JJ-Anaglyph-a-GIF_DIAGRAM.png 600w, https:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/JJ-Anaglyph-a-GIF_DIAGRAM-300x201.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-11137\" class=\"wp-caption-text\">Foreground and Background Elements from &#8220;John Gets His 3D Glasses On.&#8221;<\/p><\/div>\n<h4>Your Image<\/h4>\n<p>If you start with a photo or image that allows you to perceive elements as belonging to either a foreground or background, then you have a candidate for an anaglyph.<\/p>\n<p>If a focus element in your image is also&nbsp;centred&nbsp;in the foreground of your image then it is a candidate for emphasis. We will be emphasizing John&#8217;s hands (and his face, to a lesser degree) after we have isolated them.<\/p>\n<h4>Next: Part 2<\/h4>\n<p>Next: <a title=\"Anaglyph Tutorial, Part 2 \u2013 Separating the Foreground and the Background\" href=\"http:\/\/aforgrave.ca\/detritus\/2014\/07\/30\/anaglyph-tutorial-part-2-separating-the-foreground-and-the-background\/\">Part&nbsp;2 &#8211; Separating the Foreground and the Background<\/a><br \/>\nThen: Part&nbsp;3 &#8211; Colour Filtering&nbsp;(link to follow)<br \/>\nThen: Part&nbsp;4 &#8211; Positioning the Layers to Simulate Depth&nbsp;(link to follow)<br \/>\nThen: Part&nbsp;5 &#8211;&nbsp;Extending the Technique to make an Anaglyph-a-GIF&nbsp;&nbsp;(link to follow)<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before You Start &nbsp; You will be well served to have on hand a pair of red\/cyan (or red\/blue)&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":11131,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[785,661,758,228,791,789,786,1078,751,787,759,321,788,784,782,1081,94,783],"class_list":["post-11119","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncat","tag-3d-glasses","tag-johnjohnston","tag-anaglyph","tag-animatedgifassignments","tag-animatedgiftutorials1344","tag-background","tag-depth-perception","tag-ds106","tag-emblemes","tag-foreground","tag-george-wither","tag-john-johnston","tag-midground","tag-page-11","tag-redcyan","tag-tutorial","tag-visualassignments","tag-visualtutorials1345"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/aforgrave.ca\/detritus\/wp-content\/uploads\/2014\/07\/Anaglyph-Tutorial-Part-1.png","jetpack_shortlink":"https:\/\/wp.me\/p2UvWF-2Tl","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/aforgrave.ca\/detritus\/wp-json\/wp\/v2\/posts\/11119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aforgrave.ca\/detritus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aforgrave.ca\/detritus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aforgrave.ca\/detritus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aforgrave.ca\/detritus\/wp-json\/wp\/v2\/comments?post=11119"}],"version-history":[{"count":34,"href":"https:\/\/aforgrave.ca\/detritus\/wp-json\/wp\/v2\/posts\/11119\/revisions"}],"predecessor-version":[{"id":12401,"href":"https:\/\/aforgrave.ca\/detritus\/wp-json\/wp\/v2\/posts\/11119\/revisions\/12401"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aforgrave.ca\/detritus\/wp-json\/wp\/v2\/media\/11131"}],"wp:attachment":[{"href":"https:\/\/aforgrave.ca\/detritus\/wp-json\/wp\/v2\/media?parent=11119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aforgrave.ca\/detritus\/wp-json\/wp\/v2\/categories?post=11119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aforgrave.ca\/detritus\/wp-json\/wp\/v2\/tags?post=11119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}