{"id":26976,"date":"2020-07-31T11:00:50","date_gmt":"2020-07-31T15:00:50","guid":{"rendered":"https:\/\/blogs.solidworks.com\/tech\/?p=26976"},"modified":"2020-07-28T14:08:23","modified_gmt":"2020-07-28T18:08:23","slug":"the-magic-of-a-reflection","status":"publish","type":"post","link":"https:\/\/blogs.solidworks.com\/tech\/2020\/07\/the-magic-of-a-reflection.html","title":{"rendered":"The Magic of a Reflection"},"content":{"rendered":"<p>This is a two-part blog that investigates the power of SOLIDWORKS and SOLIDWORKS Visualize to accurately model and render illusions created by mirrors. In the first part we will create the illusion of disappearance and in the second part we will see if we can create a hologram.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Part 1: Thinking INSIDE of the box<\/strong><\/span><br \/>\nOur goal today is to create a box that will make things disappear. More specifically, we want to create a box that to which we can put something inside and it will look empty, no matter where we sit around it.<\/p>\n<p>The concept behind this trick is simple \u2013 we create a box and insert a mirror at a 45 degree angle such that it reflects the floor of the box and tricks our eyes into thinking that the box is empty. This mirror also creates a pocket in the box that we can hide all kinds of things in. For example, your mini hand sanitizer or that roll of toilet paper that your coworker keeps stealing!<\/p>\n<p>Let\u2019s get started. I began by creating a simple box, shelling it, and then adding another body\u00a0for the mirror at a 45 degree angle. I then dragged the <strong>Mirror<\/strong> appearance over from the task pane <strong>(Appearances &gt; Glass &gt; Gloss &gt; Mirror)<\/strong> and applied it to the newly created mirror body.<\/p>\n<p>Here\u2019s what it looks like in SOLIDWORKS:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-26977\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicbox_image1-300x164.png\" alt=\"\" width=\"300\" height=\"164\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicbox_image1-300x164.png 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicbox_image1-615x337.png 615w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicbox_image1-768x420.png 768w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicbox_image1-1536x841.png 1536w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicbox_image1-728x398.png 728w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicbox_image1.png 1650w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>So far, pretty simple, but it\u2019s hard to tell if the trick will work. I needed something to help me visualize the result (especially the reflection from the mirror), so I activated my <strong>SOLIDWORKS<\/strong> <strong>Visualize Add-In<\/strong> and selected <strong>Export Advanced<\/strong> to quickly port my design over and check that my design was on track.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-26978\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage2-300x120.png\" alt=\"\" width=\"300\" height=\"120\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage2-300x120.png 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage2-615x245.png 615w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage2-768x306.png 768w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage2-728x290.png 728w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage2.png 1404w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Note: I used <strong>Export Advanced<\/strong> instead of <strong>Export Simple<\/strong> because I knew I would be iterating my design. This option enables the <strong>Monitor File<\/strong> feature in Visualize, making updating the picture in Visualize almost automatic as I work on my model in SOLIDWORKS CAD.<br \/>\nFirst attempt: THE LINE IS VISIBLE<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-26981\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage3-300x240.jpg\" alt=\"\" width=\"300\" height=\"240\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage3-300x240.jpg 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage3-615x492.jpg 615w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage3-768x614.jpg 768w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage3-728x582.jpg 728w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage3.jpg 990w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Whoops! Thank goodness I was able to check my design in SOLIDWORKS Visualize. We can see here that we need something to make the parting line less obvious.<\/p>\n<p>Let\u2019s disguise it by adding some stripes using <strong>Split Line<\/strong>\u00a0and quickly <strong>Rebuild, Save<\/strong>, and pop back over to Visualize to check our work.<\/p>\n<p>When we do this, Visualize pops up with a handy dandy window asking if we want to re-import our data.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-26982\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage4-300x126.png\" alt=\"\" width=\"300\" height=\"126\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage4-300x126.png 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage4-615x258.png 615w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage4-768x323.png 768w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage4-728x306.png 728w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage4.png 1326w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>As soon as we select <strong>Yes<\/strong>, we get the following result.<\/p>\n<p>Second attempt: SUCCESS!<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-26983\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage5-300x240.png\" alt=\"\" width=\"300\" height=\"240\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage5-300x240.png 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage5-615x492.png 615w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage5-768x614.png 768w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage5-728x582.png 728w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage5.png 990w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>INCREDIBLY better! I\u2019ll take it. Also, can I say that I\u2019m seriously impressed with how well Visualize renders mirrors? I\u2019m seriously impressed.<\/p>\n<p>Ok next step: Let\u2019s quickly add some finishing touches (doors, hinges, knobs), export our multi-body Part to an Assembly using the <strong>Save Bodies<\/strong> command, apply mates, and then check out how it looks from different angles using the <strong>Turntable<\/strong> feature in Visualize.<\/p>\n<p>To activate the <strong>Turntable<\/strong> function, all we need to do is click the power button after hovering over the feature in the heads-up toolbar.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-26984\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage6-300x300.png\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage6-300x300.png 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage6-615x615.png 615w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage6-120x120.png 120w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage6-768x767.png 768w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage6-1536x1534.png 1536w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage6-728x727.png 728w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage6.png 1590w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Then we can click on the play button to see what our model looks like from various angles. I went ahead and took it one step further so that I could share this result with all of you \u2013 I exported a video <strong>(Output Tools &gt; Turntable)<\/strong>!<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-26985\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage7-242x300.png\" alt=\"\" width=\"242\" height=\"300\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage7-242x300.png 242w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage7-497x615.png 497w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage7-768x950.png 768w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage7-728x901.png 728w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage7.png 1213w\" sizes=\"auto, (max-width: 242px) 100vw, 242px\" \/><\/p>\n<p>Check out the video below:<\/p>\n<div style=\"width: 1140px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-26976-1\" width=\"1140\" height=\"912\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/Mirror-Box-Final-VIDEO-1.mp4?_=1\" \/><a href=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/Mirror-Box-Final-VIDEO-1.mp4\">https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/Mirror-Box-Final-VIDEO-1.mp4<\/a><\/video><\/div>\n<p>I love it! It works from everywhere in the audience and we\u2019re completely fooled. There\u2019s just one step left to finish our design.<\/p>\n<p>Let\u2019s check to see how much we can fit in the pocket created by the mirror! To do this, I quickly simplified the model and used the <strong>Intersect<\/strong> command, making sure to select <strong>Create Internal Regions<\/strong>. I then got rid of unnecessary bodies and quickly looked at <strong>Mass Properties<\/strong> on the <strong>Evaluate<\/strong> tab.<\/p>\n<div style=\"width: 1140px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-26976-2\" width=\"1140\" height=\"924\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/MirrorBox2.mp4?_=2\" \/><a href=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/MirrorBox2.mp4\">https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/MirrorBox2.mp4<\/a><\/video><\/div>\n<p>Here\u2019s our result:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-26988\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage8-300x250.png\" alt=\"\" width=\"300\" height=\"250\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage8-300x250.png 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage8-615x513.png 615w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage8-768x641.png 768w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage8-728x608.png 728w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage8.png 1270w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>So\u2026 the ultimate question: Will our essential items fit inside?<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-26987\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage8-300x240.jpg\" alt=\"\" width=\"300\" height=\"240\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage8-300x240.jpg 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage8-615x492.jpg 615w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage8-768x614.jpg 768w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage8-728x582.jpg 728w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/magicboximage8.jpg 990w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Based on the volume of our toilet paper roll and our mini hand sanitizer, this should work! Let\u2019s try it out!<\/p>\n<div style=\"width: 1140px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-26976-3\" width=\"1140\" height=\"924\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/EssentialItems.mp4?_=3\" \/><a href=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/EssentialItems.mp4\">https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/EssentialItems.mp4<\/a><\/video><\/div>\n<p>Fantastic! It works! Thanks to the power of SOLIDWORKS and SOLIDWORKS Visualize, our essential items are now safe from the general public.<\/p>\n<p>Thanks for tuning in. This was a ton of fun for me, so be sure to check back in for Part 2 of this blog where we use mirrors to make a hologram appear!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a two-part blog that investigates the power of SOLIDWORKS and SOLIDWORKS Visualize to accurately model and render illusions created by mirrors. In the first part we will create the illusion of disappearance and in the second part we<\/p>\n... <a href=\"https:\/\/blogs.solidworks.com\/tech\/2020\/07\/the-magic-of-a-reflection.html\">Continued<\/a>","protected":false},"author":530,"featured_media":26975,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2610,1577,35],"tags":[443,109,2757,958,1041],"class_list":["post-26976","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solidworks-2020","category-solidworks-visualize","category-tips-tricks","tag-cad","tag-mirror","tag-reflection","tag-render","tag-visualize"],"acf":[],"_links":{"self":[{"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/posts\/26976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/users\/530"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/comments?post=26976"}],"version-history":[{"count":1,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/posts\/26976\/revisions"}],"predecessor-version":[{"id":26979,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/posts\/26976\/revisions\/26979"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/media\/26975"}],"wp:attachment":[{"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/media?parent=26976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/categories?post=26976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/tags?post=26976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}