tag:blogger.com,1999:blog-180087990635509002024-02-19T09:01:50.222-08:00rewired picturesadamhttp://www.blogger.com/profile/11379250552263807059noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-18008799063550900.post-85436176470356110472010-05-21T16:33:00.000-07:002010-05-21T16:42:04.135-07:00Stereoscopy In Photoshop<object height="340" width="560"><param name="movie" value="http://www.youtube.com/v/8iBd7IOPp04&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/8iBd7IOPp04&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object><br />
<br />
<br />
I posted earlier about my stereoscopic technique for Robots! in 3D which utilized Photoshop, a tcl script and Apple Shake to programatically make a stereoscopic composition. Last night I tried to take shake and tcl out of the picture and do the 3D for the latest page for Robots! in 3D completely in Photoshop. The video above is a time lapse of me doing it (make sure you watch it in 3D to get the most of it) and jump the link for the details.<br />
<br />
<a name='more'></a><br />
When we were doing the first concept page for Robots! in 3D, I tried to do the page in Photoshop but it got pretty convoluted pretty quick. Now with close to an issue under my belt I think I figured out a pretty efficient way to do some 3Din'.<br />
<br />
In our previous pipeline, we would do the art in Photoshop, create Layer Comps for every element on the page and then export these Layer Comps to tiffs for Shake. I started last night's page with the tiffs that I would normally use with my tcl script.<br />
<br />
I used Adobe Bridge to import those files as layers into PS ( Tools > Photoshop > Load Images into Photoshop Layers... ). I know this is a bit silly, considering I had the original psd as well, but I already had the files and having everything flattened is really important. Next time i'll go through the original document and merge layers and start from there.<br />
<br />
After I had all my elements in Photoshop, I grouped them by cell. Once grouped by cell, I grouped all the cell groups to create a group for an eye. I then duplicated the eye group to create a Left Eye and Right Eye group. Multiplied the left eye times red; right eye by cyan; added them up and I had a 3D comp.<br />
<br />
Nothing is offset so everything appeared on the same plane as the screen. To start placing things in depth it's about offsetting and skewing the right eye layers until they create the desired 3D effect. What was really amazing about this technique is I could work real-time in 3D. I could drag a layer to the proper depth. In Shake it was all about tweaking a node attribute and waiting for the render.<br />
<br />
I don't know if I am completely sold on this technique. If we need to make any small changes to the original art we need to reset the entire element in 3D. With the shake method we just re-exported the element and reloaded the Shake node. However the Photoshop method was quick. The video above is about 30 minutes speed up to 1.5 minutes. I think we'll definitely do some more page with Photoshop and see how they go.adamhttp://www.blogger.com/profile/11379250552263807059noreply@blogger.com0tag:blogger.com,1999:blog-18008799063550900.post-81084622930420481332010-02-26T14:18:00.000-08:002010-02-28T00:03:04.814-08:00Adding the 3rd D<div style="text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><i><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="color: #444444;">before</span></span><span class="Apple-style-span" style="color: #444444;">:</span></span></i><br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSUvEFncgks2rnFsU5YgUC3G0GaMkIYnIw3FDY8BPJNukK3sDx677a51bRkDzYHYJPAw3dOstQ7ZSi6Faf5ZbFpfqFIAsE_EmF88WQ_-I3ty9TVPBcdRaQaTwqDLk9Y4yIpNVmn9LP84Q/s1600-h/chaosComp.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="197" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSUvEFncgks2rnFsU5YgUC3G0GaMkIYnIw3FDY8BPJNukK3sDx677a51bRkDzYHYJPAw3dOstQ7ZSi6Faf5ZbFpfqFIAsE_EmF88WQ_-I3ty9TVPBcdRaQaTwqDLk9Y4yIpNVmn9LP84Q/s400/chaosComp.jpg" width="400" /></a></div></div><br />
Now that you know how 3D works by <a href="http://rewiredpictures.blogspot.com/2010/02/what-is-3d-anyways.html">reading the primer</a>, I wanted to write a post about the technique we use to create the 3D images for <a href="http://www.rewiredpictures.com/r3d">Robots! in 3D</a>. Click the jump to geek out over all the technical details of how we add the 3rd to Robots!<br />
<br />
<a name='more'></a><br />
Most modern 3D images uses two cameras to capture two images of a three dimensional space (both real and digitally rendered). Robots however we are creating the 3D space completely from a 2D image. We do this by essentially breaking down our 2D image into elements and duplicating/manipulating each element to create a right and left image.<br />
<br />
Our current pipeline is basically export Layer Comps from Photoshop and then do the final compositing and anaglyph effect in Shake. At first I built the shake networks by hand, which got very complicated as well as time consuming. I realized there was a good opportunity for some good old fashioned scripting.<br />
<br />
The Basic Shake Network I needed to create looked like this:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJurngljD5qHxlW5ePfbKGPFPulDfqnGYBj6ZDAc8pHRkIk4etsZHPu4OiO1FPnGcAZtxAvKSIhwUDg3O0-Et-przzbamlvOI11OctPc4frtUMSAPeT2aC1ZRLV6J_KFiFePAjcQ5qjZA/s1600-h/shake3dExample.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="245" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJurngljD5qHxlW5ePfbKGPFPulDfqnGYBj6ZDAc8pHRkIk4etsZHPu4OiO1FPnGcAZtxAvKSIhwUDg3O0-Et-przzbamlvOI11OctPc4frtUMSAPeT2aC1ZRLV6J_KFiFePAjcQ5qjZA/s400/shake3dExample.jpg" width="400" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">Essentially each element (Leonard and the background) gets split into two Pans which offsets the element left and right. The left Pans are then put Over each other and the right Pans over each other. This creates the left and right images. These images are multiplied by cyan and red and then added to one another. The resulting image looks like:</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO7NjnVaYj6EPHnuxrPuDh2i-pRacveKXueNvAjCrBI0JbGMfDuNaw7gBVHSa0ovZUqmE3Qi5Dk0H1AdPpyG5fiInEyKL_5MI1-U-YPk78VAsWmOGOecqrOKJLiVz-r-UyU-Atz2SiYhw/s1600-h/shake3dExampleRender.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="332" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO7NjnVaYj6EPHnuxrPuDh2i-pRacveKXueNvAjCrBI0JbGMfDuNaw7gBVHSa0ovZUqmE3Qi5Dk0H1AdPpyG5fiInEyKL_5MI1-U-YPk78VAsWmOGOecqrOKJLiVz-r-UyU-Atz2SiYhw/s400/shake3dExampleRender.png" width="400" /></a></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: left;"> The simple example I showed above looks like this in shake code:</div><br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>// Input nodes
LeftColor = Color(2100, 3150, 1, 0, 1, 1, 1, 0);
RightColor = Color(2100, 3150, 1, 1, 0, 0, 1, 0);
SFileInBG = SFileIn("//Thetreefort/Robotsin3D/comp/assets/0105/r3d_0105_panel5Farmhousefront.tif",
"Auto", 0, 0, "v1.1", "0", "");
SFileInLeonard = SFileIn("//Thetreefort/Robotsin3D/comp/assets/0105/r3d_0105_panel5Farmer.tif",
"Auto", 0, 0, "v1.1", "0", "");
// Processing nodes
PanBGLeft = Pan(SFileInBG, -PanBGRight.xPan, 0, 0, 0.5, 0);
PanBGRight = Pan(SFileInBG, 0, 20, 0, 0.5, 0);
PanLeonardLeft = Pan(SFileInLeonard, 0, 0, 0, 0.5, 0);
PanLeonardRight = Pan(SFileInLeonard, 0, 0, 0, 0.5, 0);
OverLeft = Over(PanLeonardLeft, PanBGLeft, 1, 0, 0);
OverRight = Over(PanLeonardRight, PanBGRight, 1, 0, 0);
IMultColorLeft = IMult(LeftColor, OverLeft, 1, 100, 0);
IMultColorRight = IMult(OverRight, RightColor, 1, 100, 0);
IAddLeftRight = IAdd(IMultColorLeft, IMultColorRight, 1, 100);
</code></pre><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;">The 20 in PanBGRight is defines the depth for the 3D effect. The larger the number the further back in depth the object will appear, 0 is at the screen plane and negative numbers will make the object appear in front of the screen. </div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><br />
</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;">So I wrote a tcl script that would generate a shake script that created the base network and grouped them. The script takes in an .r3d configuation file and a render directory and outputs a shake script. The .r3d configuration file defines the paths and orders of the input images as well as their depth (offset). It is a tab separated flat text file that looks like this:</div><pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>r3d_0105_panel1SFX.tif -3
r3d_0105_panel1Leaves.tif -5
r3d_0105_panel1Border.tif 0
r3d_0105_panel1Windmill.tif 9
r3d_0105_panel1Truck.tif 8
r3d_0105_panel1House.tif 10
r3d_0105_panel1FGhills.tif 15
r3d_0105_panel1Fields.tif 20
r3d_0105_panel1Fartrees.tif 25
r3d_0105_panel1BG.tif 30
</code></pre><br />
Currently we have to hand build these files which takes a bit of time but it's pretty much reordering a ls > file.r3d and adding the depth numbers. The resulting shake network still needs to be tweaked and manipulated for more complex 3D effects but it gives a clean network with all the objects put over each other with depth.<br />
<br />
<div style="text-align: center;"><i><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="color: #444444;">after</span></span></span></i></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKAjm35YS0pOIlIZlHjno8LQtPEWxFUXAVOE9Yr1VBd1hbQpTtc0kwthyphenhyphenTLXN-PTjer4uxtzMlXbZLso-bL9FBmjBxuu677C9EkZPV4KfnTaecCNrIwvipU8geMRgVvbMatnNBsH5XmuA/s1600-h/cleanComp.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="96" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKAjm35YS0pOIlIZlHjno8LQtPEWxFUXAVOE9Yr1VBd1hbQpTtc0kwthyphenhyphenTLXN-PTjer4uxtzMlXbZLso-bL9FBmjBxuu677C9EkZPV4KfnTaecCNrIwvipU8geMRgVvbMatnNBsH5XmuA/s640/cleanComp.jpg" width="640" /></a></div><br />
While there is definitely room for refinement with this system it does a pretty good job giving us a quick 3D image to work off of.<br />
<br />
To see the results of this handy work don't forget to check out<a href="http://www.rewiredpictures.com/r3d"> Robots! in 3D</a>. A new page is released every friday so put on your 3D spex and enjoy!adamhttp://www.blogger.com/profile/11379250552263807059noreply@blogger.com0tag:blogger.com,1999:blog-18008799063550900.post-54468353079966776702010-02-26T14:16:00.000-08:002010-02-27T23:42:42.832-08:00What is 3D anyways?<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-OD8H1qBaj0grOj_V4WeEI8oYpSSEfJQdIEE1Ate4K2vVoTcifX6UFutX_oVHq9lPd1mBPXwUx_lprZHEqK3ABk1MBVo09Y_0S5zuIly1LTcP7RWtxJdkvT2qKKYaJvPdMCH5Qg0qtqM/s1600-h/stereoDiagram.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-OD8H1qBaj0grOj_V4WeEI8oYpSSEfJQdIEE1Ate4K2vVoTcifX6UFutX_oVHq9lPd1mBPXwUx_lprZHEqK3ABk1MBVo09Y_0S5zuIly1LTcP7RWtxJdkvT2qKKYaJvPdMCH5Qg0qtqM/s400/stereoDiagram.jpg" width="400" /></a></div><br />
3D is all the rage today with more and more media going the way of 3D. Ironically what is currently being advertised as new cool technology has been around since the mid 19th century. While back then they may have not had high-performance computers to generate images for 3D consumption they both rely on the concept of stereoscopy. Click the jump to learn the more about the intricacies of how 3D works.<br />
<a name='more'></a>We perceive a 3D space (in a very simplified sense) because we have two eyes that delivery slightly different 2D images to the brain. The brain interprets the divergence between these two images as a 3D space. Current 3D display technologies work off of a concept known as stereoscopy, in which two 2D images are presented to each of the viewer's eyes independently creating an effect of depth. Traditionally, stereoscopic images are produced by using two cameras offset from each other. These two images are then delivered to each eye separately through some sort of filtering mechanism. This was accomplished long ago using a picture holder, then colored glasses (anaglyph), and more recently through polarized and shutter glasses. While you are seeing depth what you are seeing is still not a true three dimensional space but rather it's a two dimensional representation of what a 3D space looks like from one fixed perspective.<br />
<br />
Perceiving a true 3D space is very much about moving about it in time. That is why pirates still have a sense of depth. An interesting example of this can be seen in a comic by Doc Pop here:<br />
<br />
<a href="http://www.docpop.org/2010/01/05/3d-without-glasses.html">http://www.docpop.org/2010/01/05/3d-without-glasses.html</a><br />
<br />
By gaining multiple perspectives of a space our brains can fill in the details and flesh out a 3D space. So maybe what everyone is calling 3D, stereoscopy, is not really creating a 3D space but rather tricking our brains into sensing depth. Just remember if you really want to see some 3D stop looking at the monitor and look outside. If you really want to see some awesome stereoscopy make sure to check out <a href="http://www.rewiredpictures.com/r3d">Robots! in 3D.</a>adamhttp://www.blogger.com/profile/11379250552263807059noreply@blogger.com0tag:blogger.com,1999:blog-18008799063550900.post-43197030850464271442009-12-17T16:34:00.000-08:002009-12-17T16:37:37.695-08:003D Test Flash App<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUHgEXdXyZN8eOqA_9cIyPE8hGlJ230L9JtFmhVGRIfpPk1aU435psOmGUHgORSExuNidb5U0ebGyTzyZcPANv9MXqpdhnxg_mTlW_Ye9zq90T2n005i1z24AviaG3YwUGv6dUUzK5__M/s1600-h/3dTest.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 241px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUHgEXdXyZN8eOqA_9cIyPE8hGlJ230L9JtFmhVGRIfpPk1aU435psOmGUHgORSExuNidb5U0ebGyTzyZcPANv9MXqpdhnxg_mTlW_Ye9zq90T2n005i1z24AviaG3YwUGv6dUUzK5__M/s320/3dTest.jpg" alt="" id="BLOGGER_PHOTO_ID_5416368584127379410" border="0" /></a><br />So I wrote up a little flash app that allows for the creation of anaglyph 3D balls. I'll update this post in a bit with a little more background about how 3D images work and what my app is doing. For now, enjoy!<br /><br /><a href="http://rewiredpictures.com/r3d/3dTester">3D Test App</a>adamhttp://www.blogger.com/profile/11379250552263807059noreply@blogger.com0tag:blogger.com,1999:blog-18008799063550900.post-9314930913372317122009-12-14T23:00:00.000-08:002009-12-14T23:16:46.684-08:00Grab your 3D Glasses<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKWLPmY6bggtyFvivPemKM9Czm5NRrRFECtNXPmlgMdpQbjNyosh-pVEOACjr42Hib4j3LQouAaKSqbgj_Y_w3vSYM3GC2rXINLZp_Re4XaXuNv9zSZwxkOXbDlaTfhK75-Dqn7UEAJM8/s1600-h/conceptComp_web.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 214px; height: 320px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKWLPmY6bggtyFvivPemKM9Czm5NRrRFECtNXPmlgMdpQbjNyosh-pVEOACjr42Hib4j3LQouAaKSqbgj_Y_w3vSYM3GC2rXINLZp_Re4XaXuNv9zSZwxkOXbDlaTfhK75-Dqn7UEAJM8/s320/conceptComp_web.jpg" alt="" id="BLOGGER_PHOTO_ID_5415357593748976594" border="0" /></a> I hope everyone has their 3D glasses handy. Here's the first look at a 3D concept for Robots in 3D: The Day the Droids Attacked!<br /><br />No 3D glasses? Check out <a href="http://howto.wired.com/wiki/Make_3-D_Glasses#CD_Jewel_Case_3D_Glasses_Alternative">Wired's How-To Wiki</a>adamhttp://www.blogger.com/profile/11379250552263807059noreply@blogger.com2tag:blogger.com,1999:blog-18008799063550900.post-72883782198204725572009-12-14T15:28:00.000-08:002009-12-14T15:35:00.615-08:00A Sneak Peak at Robots in 3D<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWTPKUbTARFlYd7ynPgypSze9mGXeKS7DeMAMcL__FDsoe0sVZDDz35IFVEVPlUGFlo_GliJb2kCmq_ITGxY7oKcgwRHtZSChyq3IxZEC5CjAWfu9hrGOGm9eHlIr170BuPRlvkmEUeIo/s1600-h/%5Br3d_06_flat.jpeg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWTPKUbTARFlYd7ynPgypSze9mGXeKS7DeMAMcL__FDsoe0sVZDDz35IFVEVPlUGFlo_GliJb2kCmq_ITGxY7oKcgwRHtZSChyq3IxZEC5CjAWfu9hrGOGm9eHlIr170BuPRlvkmEUeIo/s320/%5Br3d_06_flat.jpeg" border="0" alt="" id="BLOGGER_PHOTO_ID_5415239475392928018" /></a><br /><a href="http://sjeanetteclark.blogspot.com/">Sarah</a> has posted the <a href="http://sjeanetteclark.blogspot.com/2009/12/sneak-peak-at-things-to-come.html">first concept page</a> of Robots in 3D on her blog. I have begun the task of making it 3D, so kids get your 3D glasses ready and check back soon for the first 3D glimpse at <i>Robots in 3D: The Day the Droids Attacked!</i>adamhttp://www.blogger.com/profile/11379250552263807059noreply@blogger.com2tag:blogger.com,1999:blog-18008799063550900.post-88888424171318693312009-12-07T14:44:00.000-08:002009-12-14T13:53:22.818-08:00welcome to rewired pictures: the blogHello all, welcome to the rewired pictures blog. This blog will serve as documentation of all upcoming rewired pictures projects including our newest comic <span style="font-style: italic;">Robots in 3D: The Day the Droids Attacked! </span>More details to come so check back later.adamhttp://www.blogger.com/profile/11379250552263807059noreply@blogger.com0