<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-3160041233568488112</id><updated>2008-08-06T08:01:52.693-07:00</updated><title type='text'>AE Tips and Tricks</title><link rel='alternate' type='text/html' href='http://hottek.net/'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3160041233568488112/posts/default'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hottek.net/atom.xml'/><author><name>Rick</name><uri>http://www.blogger.com/profile/00725722895079781852</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3160041233568488112.post-3812877180141452436</id><published>2008-07-10T13:39:00.000-07:00</published><updated>2008-07-15T05:55:16.962-07:00</updated><title type='text'>Advanced Extrusion with Shatter</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.hottek.net/samples/ShatterExtrudeTutorial.mov" target="blank"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand" src="http://www.hottek.net/samples/shatter_example.png" border="0" alt="" /&gt;&lt;/a&gt;This is a fairly simple technique often done poorly. The trick to making the 3D extrusion look as good as possible is in the way you use a custom shape layer and the way you assign textures to the extrusion.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For this example I am using AE's comp camera and a point light to view the extrusion layer. I've added a different color to the extruded edges and also added the background color to the back of the extrusion. A 3D duplicate of the text layer used as a custom shape is set to cast shadows only and the material options of Shatter have been adjusted.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I've included a short video tutorial of the procedure that you'll find &lt;a href="http://www.hottek.net/samples/ShatterExtrudeTutorial.mov"&gt;HERE&lt;/a&gt;. I hope you enjoy. Please let me know if you have any questions. The project files are in this &lt;a href="http://www.hottek.net/samples/3DTxt.zip"&gt;3DTxt.zip&lt;/a&gt; file.&lt;/div&gt;</content><link rel='alternate' type='text/html' href='http://hottek.net/2008/07/advanced-extrusion-with-shatter.html' title='Advanced Extrusion with Shatter'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3160041233568488112&amp;postID=3812877180141452436&amp;isPopup=true' title='1 Comments'/><link rel='replies' type='application/atom+xml' href='http://hottek.net/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3160041233568488112/posts/default/3812877180141452436'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3160041233568488112/posts/default/3812877180141452436'/><author><name>Rick</name><uri>http://www.blogger.com/profile/00725722895079781852</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-3160041233568488112.post-899990481381262369</id><published>2007-11-30T06:40:00.000-08:00</published><updated>2007-11-30T08:06:53.556-08:00</updated><title type='text'>Advanced Displacement Maps</title><content type='html'>I've recently seen a lot of questions about setting up and using displacement maps in After Effects. To help better understand how to use the effect I thought I'd bring back a sample project from 2002 using AE 5.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Basic displacement&lt;/span&gt;&lt;/div&gt;&lt;img src="http://www.hottek.net/samples/Vert-Displace.jpg" width="228" height="496" hspace="10" vspace="10" align="right" /&gt;&lt;div&gt;Displacement uses the color channels of a layer to move pixels. The amount of movement is directly proportional to the pixel value. If you're working in 8 bit and in Y only then a pixel value of 0 moves the pixel you're displacing the maximum distance down while 255 moves the pixels up. Gray doesn't move pixels. The example to the right has Y displacement set to 40 pixels.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Complex disteortion&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Let's say you wanted to create a spherical distortion. You could create a fancy gradient in Photoshop, but you’d need to spend a long time experimenting with the proper color values or doing some fairly complex math. There are 2 easy ways to create this gradient. The first, and most accurate, would be to use a 3D app and light a sphere using red and negative red lights on the left and right with green and negative green on the top and bottom. The second option, and the one used in the sample project, is to light a solid in AE with red and green lights in the same way you'd light the sphere in a 3D app.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;embed src="http://www.creativecow.net/articles/gerard_rick/Examples/DisplacementGrid.mov" width="200" height="216" type="video/quicktime" controller="true" autoplay="true" loop="true" align="right" hspace="10" vspace="10"&gt;&lt;/embed&gt;&lt;a href="http://www.hottek.net/samples/DM_Advanced.aep"&gt;Here's a displacement&lt;/a&gt; project that uses the color channels of a pre-comp created with the technique I just discribed. The first thing to do when you start experimenting with the project is to turn the red pair of lights on and off. In these examples I’ve set vertical displacement to green and 40 pixels. Horizontal displacement is turned off. As you can see, there is no difference in vertical displacement when I turn on the red lights. Setting the Horizontal displacement to Red and animating the colored pairs of lights gives us this keen little movie.&lt;br /&gt;&lt;br /&gt;I hope you’ll find the project enlightening. If I get time I may try and create a more in depth video tutorial on displacement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='alternate' type='text/html' href='http://hottek.net/2007/11/advanced-displacement-maps.html' title='Advanced Displacement Maps'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3160041233568488112&amp;postID=899990481381262369&amp;isPopup=true' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://hottek.net/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3160041233568488112/posts/default/899990481381262369'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3160041233568488112/posts/default/899990481381262369'/><author><name>Rick</name><uri>http://www.blogger.com/profile/00725722895079781852</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-3160041233568488112.post-2522183532124771884</id><published>2007-11-21T09:41:00.000-08:00</published><updated>2007-11-21T10:51:42.202-08:00</updated><title type='text'>Square Wheels</title><content type='html'>&lt;style type="text/css"&gt;&lt;br /&gt;&lt;!-- .style1 {  font-family: "Courier New", Courier, monospace;  color: #0000FF; } .style4 {font-family: "Courier New", Courier, monospace; font-size: small; color: #0000FF; } .style5 {color: #0000FF; font-size: small;} --&gt;&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;embed src="http://hottek.net/samples/RollingSquare.mov" width="432" height="256" type="video/quicktime" controller="true" autoplay="true" loop="true" align="left" hspace="10" vspace="10"&gt;&lt;/embed&gt;&lt;br /&gt;There was a request recently for help rolling a square object along a floor so that the sides stayed in contact with the floor plane. I came up with a fairly simple solution by adding expressions to the anchor point and position property of a square and then rolling it along by adjusting rotation.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;The approach:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;p&gt;The easiest way to rotate on a corner is to simply move the anchor point to the corner. The challenge is to switch corners automatically every 90º. If I divide rotation by 90 and use &lt;span class="style1"&gt;Math.floor(value)&lt;/span&gt; I can create a counter that goes from 0 to 3 in the first rotation. To make the number repeat I'll use the &lt;span class="style4"&gt;% 4&lt;/span&gt; function. So far the expression looks like this:&lt;/p&gt;&lt;blockquote&gt;    &lt;p class="style4"&gt;count = Math.floor(rotation / 90);&lt;br /&gt;num = count;&lt;br /&gt; val = ( num % 4);&lt;/p&gt;&lt;/blockquote&gt;  &lt;p&gt;To keep the value from going negative I can add 100 to the number (num). This will give me 25 rotations in the negative direction before my value goes negative.&lt;/p&gt;  &lt;p&gt;Now it's just a matter of adding a few if else statements. The final Anchor point expression looks like this:&lt;/p&gt;&lt;blockquote&gt;    &lt;p class="style4"&gt;count = Math.floor(rotation / 90);&lt;br /&gt; num = count + 100;&lt;br /&gt; val = ( num % 4);&lt;/p&gt;    &lt;p class="style4"&gt;if (val == 0) {&lt;br /&gt;   [width, height]&lt;br /&gt; }&lt;br /&gt; else if (val == 1) {&lt;br /&gt;   [width, 0]&lt;br /&gt; }&lt;br /&gt; else if (val == 2) {&lt;br /&gt;   [0, 0]&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt;   [0, height]&lt;/p&gt;&lt;/blockquote&gt;  &lt;p&gt;I used width and height instead of the values for the layer so the expression would work with any square layer of any size.&lt;/p&gt;  &lt;p&gt;The last step is to modify the position of the X value by multiplying the rounded count by the width of the layer. The expression should be fairly easy to understand and looks like this:&lt;/p&gt;&lt;blockquote&gt;    &lt;p class="style4"&gt;val = Math.floor(rotation / 90);&lt;br /&gt;x = value[0] + val * width;&lt;br /&gt;y = value[1]; &lt;br /&gt;[x, y]&lt;/p&gt;&lt;/blockquote&gt;  &lt;p&gt;The only thing left to do is animate the rotation value. You'll find a project for AE CS3 &lt;a href="http://hottek.net/samples/rollingSquare.zip"&gt;here&lt;/a&gt; I hope you enjoy...&lt;/p&gt;&lt;/div&gt;</content><link rel='alternate' type='text/html' href='http://hottek.net/2007/11/square-wheels.html' title='Square Wheels'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3160041233568488112&amp;postID=2522183532124771884&amp;isPopup=true' title='0 Comments'/><link rel='replies' type='application/atom+xml' href='http://hottek.net/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3160041233568488112/posts/default/2522183532124771884'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3160041233568488112/posts/default/2522183532124771884'/><author><name>Rick</name><uri>http://www.blogger.com/profile/00725722895079781852</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-3160041233568488112.post-4765719359934633839</id><published>2007-10-07T05:02:00.000-07:00</published><updated>2007-11-08T17:59:16.435-08:00</updated><title type='text'>AVCHD - Ready for Prime Time?</title><content type='html'>&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 250px;" src="http://www.hottek.net/uploaded_images/hdc-sd5.jpg" hspace="10" border="0" alt="" /&gt;&lt;span style=";font-family:arial;font-size:85%;"&gt;Panasonic HDC SD5 camera and evaluating whether or not it offered a viable solution to full 1080i production on the cheap. While the camera produced some surprisingly good images and was very comfortable to use, the biggest problem turned out to be interlacing issues, followed by compression artifacts and lastly, motion artifacts from the GOP stream.&lt;br /&gt;&lt;br /&gt;Getting the footage loaded up on my Mac wasn't the problem. You simply copy the clips from the SD card to your computer and then drop them with the Voltaic HD converter from &lt;a href="http://mac1080hd.com/" target="blank"&gt; Mas1080HD.com &lt;/a&gt;. The conversion to the Apple Intermediate codec takes quite a bit of time, about 12 to 1 on my machine, but you end up with a full rez square pixel 1080i file. I'm starting to get excited. The test clip looked just fine in QT pro and played back without problems.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://hottek.net/uploaded_images/Picture-1-789165.png" alt="" width="320" height="283" hspace="10" vspace="10" align="left" style="float:left; margin:20 10px 10px;cursor:pointer; cursor:hand;" /&gt;The trouble began when I imported the QT into After Effects. For some reaspm the clip is interpreted at HDV size of 1440 X  and the frame rate was interpreted at 30.09 fps. I could easily fix the frame rate by interpreting the footage at 29.97 but fixing the size was another problem. The solution was to export to any one of several compatible codecs from QT pro. I chose PhotoJpg. Now the footage opens correctly in AE but there's still a problem. I separated fields then doubled the frame rate of the comp to check for things like motion artifacts from the heavy AVCHD GOP compression. I shot some cars driving by on a freeway from my hotel room window. At first, everything looked fine and I thought that I might have found a fairly acceptable HD format on the cheap. Then I noticed something odd. About every 70 or 80 fields there was a field out of order. The strange thing was that it wasn't consistent. The only thing I could figure out was that the decoder from Mac1080HD was fouling up every once in a while decoding the GOP stream into fields.&lt;br /&gt;&lt;br /&gt;I thought I'd try capturing in iMovie HD from iLife 08 which supports AVCHD. I didn't have Final Cut installed on the test machine. The conversion to the Apple Intermediate Codec is much faster, but the size problem is still there and so is the random field reversal. It was time to give the camera  back and also time to do other things. Except for this field problem and the time it takes to get the footage into a usable format for post, this little camera produced some remarkable images. Don't get me wrong, there are compression artifacts that show up in the shadows, and the picture from the tiny chips and itty-biddy lens will never match up to more professional rigs. The extra resolution may be enough to hide some of the problems if the footage is downsized to HDV or 720P resolution if the field problem and the frame rate problem can be solved and the AVCHD compression algorithm can be improved a bit more. If I get a chance I'll post a short bit of this test footage on the site.&lt;/span&gt;</content><link rel='alternate' type='text/html' href='http://hottek.net/2007/10/avhd-ready-for-prime-time.html' title='AVCHD - Ready for Prime Time?'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3160041233568488112&amp;postID=4765719359934633839&amp;isPopup=true' title='1 Comments'/><link rel='replies' type='application/atom+xml' href='http://hottek.net/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3160041233568488112/posts/default/4765719359934633839'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3160041233568488112/posts/default/4765719359934633839'/><author><name>Rick</name><uri>http://www.blogger.com/profile/00725722895079781852</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-3160041233568488112.post-6859316519692171879</id><published>2007-07-16T06:39:00.000-07:00</published><updated>2007-07-16T06:52:42.098-07:00</updated><title type='text'>Flying A Kite</title><content type='html'>&lt;embed src="http://home.comcast.net/%7Er_gerard/AEStuff/Kite.mov" width="320" height="256" type="video/quicktime" controller="true" autoplay="true" loop="true" align="left" hspace="20" vspace="20"&gt;&lt;span style=";font-family:arial;font-size:85%;"  &gt;Here's a simple project using expressions to tie a string to a kite and fly it around in 3D space. The point one layer at another then adjust the X scale so that the layer always reaches the target. You can apply this technique to other projects. I hope you enjoy this tutorial.&lt;br /&gt;&lt;br /&gt;I created a layer called &lt;span style="color:blue;"&gt;String&lt;/span&gt; and a layer called &lt;span style="color:blue;"&gt;Kite&lt;/span&gt;. I drew an open mask on the String layer that shaped a gentle arc, added the Stroke effect with a width of 3 pixels and Paint on Transparent selected. The stroke goes from the left edge to the right edge of the String layer, and that's important. The String layer is slightly narrower than the comp to make it easy to work with. The last step with the String layer is to move the anchor point to the left most vertice point of the mask at exactly an X value of 0. this is also important. Both layers are converted to 3D.&lt;br /&gt;&lt;br /&gt;The Kite layer is simply a square solid with a kite shaped mask and the anchor point moved to where the string would attach.&lt;br /&gt;&lt;br /&gt;The following expressions are added to the string layer:&lt;br /&gt;&lt;span style="color:red;"&gt;String &lt;b&gt;Scale:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;blockquote  style="font-family:arial;"&gt;&lt;span style="font-size:85%;"&gt;&lt;code&gt;&lt;span style="color:blue;"&gt;point1 = position;&lt;br /&gt;point2 = thisComp.layer("Kite").position;&lt;br /&gt;L = length(point1, point2);&lt;br /&gt;w = thisLayer.width;&lt;br /&gt;r = L/w*100;&lt;br /&gt;&lt;br /&gt;[r, value[1], value [2]]&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style=";font-family:arial;font-size:85%;"  &gt;&lt;span style="color:red;"&gt;String &lt;b&gt;Orientation:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;blockquote  style="font-family:arial;"&gt;&lt;span style="font-size:85%;"&gt;&lt;code&gt;&lt;span style="color:blue;"&gt;t = thisComp.layer("Kite");&lt;br /&gt;l = thisComp.layer("String");&lt;br /&gt;&lt;br /&gt;fromPoint = l.position&lt;br /&gt;atPoint = t.position&lt;br /&gt;lookAt(fromPoint, atPoint)&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style=";font-family:arial;font-size:85%;"  &gt;If you look carefully at the language you'll see that I'm calculating the distance between the anchor points and then dividing the distance by the layer width and multiplying that number by 100 to arrive at a scale factor so that the String layer is always the same length as the distance between the end of the string and the kite. The Orientation part of the expression simply points the string at the kite. There is one problem that must be overome. The string layer is perpendicular to the Kite so, and this part is important, the &lt;span style="color:red;"&gt; Y rotation must be changed to -90&lt;/span&gt; to get things back to normal. This isn't another expression, it's just a value you put in.&lt;br /&gt;&lt;br /&gt;The Kite layer also needs an expression to point the kite at the end of the string. The Kite orientation expression is basically the same as the String Orientation expression with definitions for the from and at point reversed. It looks like this:&lt;br /&gt;&lt;span style="color:red;"&gt;Kite &lt;b&gt;Orientation:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;blockquote  style="font-family:arial;"&gt;&lt;span style="font-size:85%;"&gt;&lt;code&gt;&lt;span style="color:blue;"&gt;t = thisComp.layer("String");&lt;br /&gt;l = thisComp.layer("String");&lt;br /&gt;&lt;br /&gt;fromPoint = t.toWorld(position);&lt;br /&gt;atPoint = l.toWorld(thisComp.layer("String").anchorPoint);&lt;br /&gt;lookAt(fromPoint, atPoint)&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style=";font-family:arial;font-size:85%;"  &gt;Now the kite can be moved around and the string will follow.&lt;br /&gt;You should find a sample 6.5 comp &lt;a href="http://home.comcast.net/%7Er_gerard/AEStuff/kite.aep"&gt;&lt;span style="color:blue;"&gt;&lt;b&gt;Here&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;. I added a coupple of wiggle expressions to move the kite around. It was a fun way to spend a half hour this evening.</content><link rel='alternate' type='text/html' href='http://hottek.net/2007/07/testing-new-posts.html' title='Flying A Kite'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3160041233568488112&amp;postID=6859316519692171879&amp;isPopup=true' title='2 Comments'/><link rel='replies' type='application/atom+xml' href='http://hottek.net/atom.xml' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3160041233568488112/posts/default/6859316519692171879'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3160041233568488112/posts/default/6859316519692171879'/><author><name>Rick</name><uri>http://www.blogger.com/profile/00725722895079781852</uri><email>noreply@blogger.com</email></author></entry></feed>