<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4340703130925509479</id><updated>2012-07-08T11:03:35.380-04:00</updated><category term='nature_of_code'/><category term='daybright'/><category term='applications'/><category term='phys-comp'/><category term='python'/><category term='glsl'/><category term='shiver'/><category term='random'/><category term='maya'/><category term='comp-cameras'/><category term='icm'/><category term='pixel-by-pixel'/><category term='itp'/><title type='text'>Will at ITP</title><subtitle type='html'>Nearing singularity at the Interactive Telecommunications Department at New York University.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default?start-index=26&amp;max-results=25'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>35</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-2732185587533621100</id><published>2008-04-23T12:12:00.014-04:00</published><updated>2008-04-23T16:35:20.174-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='glsl'/><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>GLSL Fruit Shaders</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/SA92NNFm_RI/AAAAAAAAAJ0/73sXjaRJBuo/s1600-h/fruit_shaders.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_rTWCmr2q_kw/SA92NNFm_RI/AAAAAAAAAJ0/73sXjaRJBuo/s400/fruit_shaders.jpg" alt="" id="BLOGGER_PHOTO_ID_5192498864605035794" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.1:  Screen captures of orange and apple shaders&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For an OpenGL project I am helping fellow NYU-ITP graduate student Matt Parker with; I developed two real-time shaders written in GLSL to be applied to poly-spheres representing two types of fruit: apples and oranges.  Due to the sheer number of spheres being displayed, the object on my end was to get a high-amount of surface detail using a limited amount of polygons.   To accomplish this, I used a combination of displacement and normal mapping calculation in the shader, meaning that all surface detail is accomplished through the GPU.&lt;br /&gt;&lt;br /&gt;I have already written about how displacement is done through shaders - the very same technique I used in the past was also used in this set of shaders:&lt;br /&gt;&lt;a href="http://will-at-itp.blogspot.com/2007/11/shiver-development-displacement.html"&gt;Geometry Displacement through GLSL&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Color variance along the geometric surface in regard to light has changed apart from my past shader work, where I have written in ambient and specular calculations through accessing the light (&lt;span style="font-weight: bold;"&gt;L&lt;/span&gt;) and given surface material (&lt;span style="font-weight: bold;"&gt;M&lt;/span&gt;), where:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Diffuse:&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/SA9tENFm_OI/AAAAAAAAAJc/TDdewQMuBZM/s1600-h/eqdifflight.gif"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_rTWCmr2q_kw/SA9tENFm_OI/AAAAAAAAAJc/TDdewQMuBZM/s400/eqdifflight.gif" alt="" id="BLOGGER_PHOTO_ID_5192488814381563106" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Ambient:&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/SA9tjtFm_PI/AAAAAAAAAJk/vNKJjpyLi0g/s1600-h/ambient.gif"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/SA9tjtFm_PI/AAAAAAAAAJk/vNKJjpyLi0g/s400/ambient.gif" alt="" id="BLOGGER_PHOTO_ID_5192489355547442418" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Specular&lt;/span&gt; (where &lt;span style="font-weight: bold;"&gt;H&lt;/span&gt; is the given half-vector):&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/SA9untFm_QI/AAAAAAAAAJs/ZxopXKKf0EY/s1600-h/eqblinnphong.gif"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/SA9untFm_QI/AAAAAAAAAJs/ZxopXKKf0EY/s400/eqblinnphong.gif" alt="" id="BLOGGER_PHOTO_ID_5192490523778546946" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To simulate the surface shape variance needed to pull off the appearance of an orange, a popular technique called "bump-mapping" was used.   Bump-mapping is generally accomplished by having a normal-map which is sampled as XYZ vectors which are supplemented across the geo-normal matrix that the shader is applied to.   The Lambert term for the normal is calcuated, which is simply the dot product of the normal and the light direction. If the lambert term is above 0.0, calcuate specular and add to the final color for the fragment.  Here is some sample code to illustrate:&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: courier new;"&gt;vec3 N = texture2D(normalMap, gl_TexCoord[0].st).rgb *&lt;br /&gt;               2.0 - 1.0;&lt;br /&gt;float lambert_term = max(dot(N,L),0.0);&lt;br /&gt;&lt;br /&gt;if (lambert_term &gt; 0.0)    {&lt;br /&gt;// Compute specular&lt;br /&gt;vec3 E = normalize(eyeVec);&lt;br /&gt;vec3 R = reflect(-L, N);&lt;br /&gt;float specular = pow(max(dot(R, E), 0.0),&lt;br /&gt;                     gl_FrontMaterial.shininess);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;The finished shader encompasses texturing, displacement, and normal mapping, resulting in a nice aesthetic simulating a complex surface with light calculations matching the surface variance.   All of this occurring on a low-poly (16 x 16) quadric sphere object.  Rotation animation simulated in real-time of the orange shader below:&lt;br /&gt;&lt;br /&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-c54aabc92b8fe5fb" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="//www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://redirector.googlevideo.com/videoplayback?id%3Dc54aabc92b8fe5fb%26itag%3D5%26source%3Dblogger%26app%3Dblogger%26cmo%3Dsensitive_content%253Dyes%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1371093548%26sparams%3Did,itag,source,ip,ipbits,expire%26signature%3DE4EF2B4087FC576517F4E3BCC259D5F4D4867A3.632BA1AE6DB78186BB5B62D87ED03ECDD3F19306%26key%3Dck2&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dc54aabc92b8fe5fb%26offsetms%3D5000%26itag%3Dw160%26sigh%3DG_vl4AAoBStYXR4BNTMsl_sfdGA&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="//www.youtube.com/get_player" type="application/x-shockwave-flash" width="320" height="266" bgcolor="#FFFFFF" flashvars="flvurl=http://redirector.googlevideo.com/videoplayback?id%3Dc54aabc92b8fe5fb%26itag%3D5%26source%3Dblogger%26app%3Dblogger%26cmo%3Dsensitive_content%253Dyes%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1371093548%26sparams%3Did,itag,source,ip,ipbits,expire%26signature%3DE4EF2B4087FC576517F4E3BCC259D5F4D4867A3.632BA1AE6DB78186BB5B62D87ED03ECDD3F19306%26key%3Dck2&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dc54aabc92b8fe5fb%26offsetms%3D5000%26itag%3Dw160%26sigh%3DG_vl4AAoBStYXR4BNTMsl_sfdGA&amp;autoplay=0&amp;ps=blogger" allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.2: Orange shader rotation animation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sources for general information/reference and equation images:&lt;br /&gt;&lt;a href="http://www.ozone3d.net/"&gt;ozone3D.net&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.lighthouse3d.com/"&gt;Lighthouse3D.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://opengl.org/"&gt;OpenGL.org&lt;/a&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=c54aabc92b8fe5fb&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/2732185587533621100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=2732185587533621100' title='56 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/2732185587533621100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/2732185587533621100'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/04/glsl-fruit-shaders.html' title='GLSL Fruit Shaders'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_rTWCmr2q_kw/SA92NNFm_RI/AAAAAAAAAJ0/73sXjaRJBuo/s72-c/fruit_shaders.jpg' height='72' width='72'/><thr:total>56</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-3316403302597733115</id><published>2008-04-16T15:15:00.010-04:00</published><updated>2008-04-16T16:02:26.343-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maya'/><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>Maya: Fluid Gradient Programming (Plug-In)</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/SAZVIsh3yqI/AAAAAAAAAJM/reoYVoXTrHg/s1600-h/fire_image.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/SAZVIsh3yqI/AAAAAAAAAJM/reoYVoXTrHg/s400/fire_image.jpg" alt="" id="BLOGGER_PHOTO_ID_5189929228471618210" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.1: Still of fluid-based fire simulation, with colors generated through plug-in gradient mapping system&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I am currently developing a plug-in for Maya, a popular 3D modeling/animation package.  The goal for the plug-in as a whole is to reinvent how fluid dynamic systems/effects are developed in Maya by constructing a node-based GUI which can be used within Maya, with each node encapsulating a current feature Maya fluids currently have - essentially adding on a layer of abstraction for the user to more easily generate simulations.  The plug-in also aims to extend the current feature set of fluids within Maya.&lt;br /&gt;&lt;br /&gt;I decided to start the development of the plug-in with a quick experiment, that being the integration of the generic gradient object class I developed earlier this semester with the Maya native gradient data driving color and incandescence.  The aim being that images could be sampled and have their most dominate colors applied to the color/incandescence of the fluid voxel-system within Maya - thus automating the construction of the color palette for a given effect.   The results and rendered video are posted below:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_rTWCmr2q_kw/SAZQnch3yoI/AAAAAAAAAI8/avSwCoxL4Rk/s1600-h/grad_before.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_rTWCmr2q_kw/SAZQnch3yoI/AAAAAAAAAI8/avSwCoxL4Rk/s400/grad_before.jpg" alt="" id="BLOGGER_PHOTO_ID_5189924259194456706" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.2: Default Maya Fluid Effects values&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/SAZQj8h3ynI/AAAAAAAAAI0/RhP-2OXKWmI/s1600-h/ft_menu.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/SAZQj8h3ynI/AAAAAAAAAI0/RhP-2OXKWmI/s400/ft_menu.jpg" alt="" id="BLOGGER_PHOTO_ID_5189924199064914546" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.3: Early development of Maya plug-in as a drop-menu&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/SAZQgsh3ymI/AAAAAAAAAIs/xhiI99njsgk/s1600-h/explosion.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/SAZQgsh3ymI/AAAAAAAAAIs/xhiI99njsgk/s400/explosion.jpg" alt="" id="BLOGGER_PHOTO_ID_5189924143230339682" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.4:  Image chosen to have dominate colors sampled&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/SAZQqsh3ypI/AAAAAAAAAJE/ljqYDqVq5Kg/s1600-h/grad_after.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/SAZQqsh3ypI/AAAAAAAAAJE/ljqYDqVq5Kg/s400/grad_after.jpg" alt="" id="BLOGGER_PHOTO_ID_5189924315029031570" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.5: Image sampled gradient constructed and mapped into Maya's attribute data&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-bc96de6e36b2928" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="//www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://redirector.googlevideo.com/videoplayback?id%3D0bc96de6e36b2928%26itag%3D5%26source%3Dblogger%26app%3Dblogger%26cmo%3Dsensitive_content%253Dyes%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1371093548%26sparams%3Did,itag,source,ip,ipbits,expire%26signature%3DB5D7FF002B7669780B6BB66A9F086FBFEEA74A3F.5872BCF69515A94F806150128E518101F63D038C%26key%3Dck2&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dbc96de6e36b2928%26offsetms%3D5000%26itag%3Dw160%26sigh%3DEpnbU_XmKvn0DmX1AUUpG3UoiR0&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="//www.youtube.com/get_player" type="application/x-shockwave-flash" width="320" height="266" bgcolor="#FFFFFF" flashvars="flvurl=http://redirector.googlevideo.com/videoplayback?id%3D0bc96de6e36b2928%26itag%3D5%26source%3Dblogger%26app%3Dblogger%26cmo%3Dsensitive_content%253Dyes%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1371093548%26sparams%3Did,itag,source,ip,ipbits,expire%26signature%3DB5D7FF002B7669780B6BB66A9F086FBFEEA74A3F.5872BCF69515A94F806150128E518101F63D038C%26key%3Dck2&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dbc96de6e36b2928%26offsetms%3D5000%26itag%3Dw160%26sigh%3DEpnbU_XmKvn0DmX1AUUpG3UoiR0&amp;autoplay=0&amp;ps=blogger" allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.6: Fluid fire simulation animation, colors derived from gradient sampling without modification&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=bc96de6e36b2928&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/3316403302597733115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=3316403302597733115' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/3316403302597733115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/3316403302597733115'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/04/maya-fluid-gradient-programming-plug-in.html' title='Maya: Fluid Gradient Programming (Plug-In)'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_rTWCmr2q_kw/SAZVIsh3yqI/AAAAAAAAAJM/reoYVoXTrHg/s72-c/fire_image.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-1351739566690618618</id><published>2008-04-02T22:49:00.005-04:00</published><updated>2008-04-02T23:52:26.131-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>Animation: Luma-Displacement / Glow (OpenGL / GLSL)</title><content type='html'>Sphere with an animated displacement GLSL shader that calculates a glow / bloom effect along defined distance from midpoint. &lt;br /&gt;&lt;br /&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-e0d8ec0facf2cb3d" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="//www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://redirector.googlevideo.com/videoplayback?id%3De0d8ec0facf2cb3d%26itag%3D5%26source%3Dblogger%26app%3Dblogger%26cmo%3Dsensitive_content%253Dyes%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1371093548%26sparams%3Did,itag,source,ip,ipbits,expire%26signature%3D8D86852AEACC55E75F66DE9B9E8C0A11E1D9E704.76940D666F49DBCA92E403B4BD3EF9830DCF642B%26key%3Dck2&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3De0d8ec0facf2cb3d%26offsetms%3D5000%26itag%3Dw160%26sigh%3D5XBUCHiMZqFTYlpnqGJZd0fa1Kw&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="//www.youtube.com/get_player" type="application/x-shockwave-flash" width="320" height="266" bgcolor="#FFFFFF" flashvars="flvurl=http://redirector.googlevideo.com/videoplayback?id%3De0d8ec0facf2cb3d%26itag%3D5%26source%3Dblogger%26app%3Dblogger%26cmo%3Dsensitive_content%253Dyes%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1371093548%26sparams%3Did,itag,source,ip,ipbits,expire%26signature%3D8D86852AEACC55E75F66DE9B9E8C0A11E1D9E704.76940D666F49DBCA92E403B4BD3EF9830DCF642B%26key%3Dck2&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3De0d8ec0facf2cb3d%26offsetms%3D5000%26itag%3Dw160%26sigh%3D5XBUCHiMZqFTYlpnqGJZd0fa1Kw&amp;autoplay=0&amp;ps=blogger" allowFullScreen="true" /&gt;&lt;/object&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=e0d8ec0facf2cb3d&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/1351739566690618618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=1351739566690618618' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/1351739566690618618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/1351739566690618618'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/04/animation-luma-displacement-opengl-glsl.html' title='Animation: Luma-Displacement / Glow (OpenGL / GLSL)'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-973769119723585476</id><published>2008-04-01T21:07:00.003-04:00</published><updated>2008-04-01T21:12:12.127-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>Luma-Based Displacement</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/R_LdAmjregI/AAAAAAAAAIk/Zsi99lcKqNo/s1600-h/Untitled-2.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/R_LdAmjregI/AAAAAAAAAIk/Zsi99lcKqNo/s400/Untitled-2.jpg" alt="" id="BLOGGER_PHOTO_ID_5184449123476797954" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.1:  In-progress glacier shader with geometric displacement&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/973769119723585476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=973769119723585476' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/973769119723585476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/973769119723585476'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/04/luma-based-displacement.html' title='Luma-Based Displacement'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_rTWCmr2q_kw/R_LdAmjregI/AAAAAAAAAIk/Zsi99lcKqNo/s72-c/Untitled-2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-8079367425431924536</id><published>2008-03-24T13:44:00.011-04:00</published><updated>2008-03-24T15:32:25.370-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>Python vs. Java vs. Python/Weave</title><content type='html'>In case you haven't noticed, I am a rather big proponent of using Python whenever possible.  Between Python's flexibility and just the enjoyment I get out of writing in the language, I generally look to use Python before turning to a static language such as C/C++ or Java.  The times I have had to turn to a compiled language are usually linked to when I need computational speed.&lt;br /&gt;&lt;br /&gt;There are several ways to get Python moving faster - some a bit more ugly than others; code speedups with Python are usually about trading in readability for performance, but that doesn't mean it can't be straight-forward in implementation.  In the past, I have used the usual bag of Python tricks: list comprehensions, method/variable assignment outside loops, generators, and countless more pure-Python solutions.&lt;br /&gt;&lt;br /&gt;Recently, I stumbled upon Weave, a module existing inside the popular SciPy library which allows for C code to be mixed with Python code.  Using Weave allows for the coder to stay inside the bounds of Python, yet use to power of C to compute the heavier algorithms.  Not only does it provide a speed increase... it beats Java.  Consider this (nonsensical) algorithm comparison between pure Python, Java, and Weave + Python:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Python Example:&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/R-f6s2jrebI/AAAAAAAAAH8/qrD7rwWE-fo/s1600-h/python_code.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_rTWCmr2q_kw/R-f6s2jrebI/AAAAAAAAAH8/qrD7rwWE-fo/s400/python_code.jpg" alt="" id="BLOGGER_PHOTO_ID_5181385544779397554" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Time:&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;1.681&lt;/span&gt; &lt;span style="font-size:85%;"&gt;sec.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Java Example:&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_rTWCmr2q_kw/R-f83GjrefI/AAAAAAAAAIc/TKhmMlVsyjo/s1600-h/java_code.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_rTWCmr2q_kw/R-f83GjrefI/AAAAAAAAAIc/TKhmMlVsyjo/s400/java_code.jpg" alt="" id="BLOGGER_PHOTO_ID_5181387919896312306" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Time:&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;0.037&lt;/span&gt; &lt;span style="font-size:85%;"&gt;sec.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Python + Weave Example:&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/R-f7gmjreeI/AAAAAAAAAIU/p7Sn1OcxL_U/s1600-h/weave_code.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/R-f7gmjreeI/AAAAAAAAAIU/p7Sn1OcxL_U/s400/weave_code.jpg" alt="" id="BLOGGER_PHOTO_ID_5181386433837627874" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Time:&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;0.017&lt;/span&gt; &lt;span style="font-size:85%;"&gt;sec.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using identical algorithms in all three tests; using Weave with Python was nearly 100 times faster (98.9x) than using pure Python alone.  In comparison to Java, Weave + Python was a shade &lt;span style="font-weight: bold;"&gt;over 2 times faster (2.1x) than Java.&lt;/span&gt;  Although the Python/Weave code itself is bigger than the pure Python and Java examples - the speed it provides is absolutely phenomenal, without ever leaving your .py file. &lt;br /&gt;&lt;br /&gt;Hopefully, I'll be able to use the power of mixing C with Python for more elaborate purposes - but this test alone is enough to get me excited about future projects with Python.</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/8079367425431924536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=8079367425431924536' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/8079367425431924536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/8079367425431924536'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/03/python-vs-java-vs-pythonweave.html' title='Python vs. Java vs. Python/Weave'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_rTWCmr2q_kw/R-f6s2jrebI/AAAAAAAAAH8/qrD7rwWE-fo/s72-c/python_code.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-3852029557257664572</id><published>2008-03-12T13:09:00.014-04:00</published><updated>2008-03-12T14:00:20.937-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><category scheme='http://www.blogger.com/atom/ns#' term='daybright'/><title type='text'>DayBRIGHT: Gradient / Render Integration</title><content type='html'>I have now managed to get DayBRIGHT to render out a full animation using a gradient as the light source.  While the animation scene itself is rather basic, with three spheres inside a box, it demonstrates some of the primary goals of the project.&lt;br /&gt;&lt;br /&gt;Now that the gradient data structure integrates with the rendering process, it now becomes a matter of writing the translators for each type of media I'd like to use - as well as developing a more interesting scene to light.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-d031b8c110f45941" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="//www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://redirector.googlevideo.com/videoplayback?id%3Dd031b8c110f45941%26itag%3D5%26source%3Dblogger%26app%3Dblogger%26cmo%3Dsensitive_content%253Dyes%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1371093548%26sparams%3Did,itag,source,ip,ipbits,expire%26signature%3D4D6B7C915DEAFF85031C8325247DFC2ECE3C9783.156E1835064752E2172B6112269345A6EC3652A5%26key%3Dck2&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dd031b8c110f45941%26offsetms%3D5000%26itag%3Dw160%26sigh%3DhOm4fzz77FMpWLbU_jk1DIPs6WA&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="//www.youtube.com/get_player" type="application/x-shockwave-flash" width="320" height="266" bgcolor="#FFFFFF" flashvars="flvurl=http://redirector.googlevideo.com/videoplayback?id%3Dd031b8c110f45941%26itag%3D5%26source%3Dblogger%26app%3Dblogger%26cmo%3Dsensitive_content%253Dyes%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1371093548%26sparams%3Did,itag,source,ip,ipbits,expire%26signature%3D4D6B7C915DEAFF85031C8325247DFC2ECE3C9783.156E1835064752E2172B6112269345A6EC3652A5%26key%3Dck2&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dd031b8c110f45941%26offsetms%3D5000%26itag%3Dw160%26sigh%3DhOm4fzz77FMpWLbU_jk1DIPs6WA&amp;autoplay=0&amp;ps=blogger" allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/R9gRm1Uia0I/AAAAAAAAAHQ/ODDE8OLZ89g/s1600-h/gradient.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 50px;" src="http://bp3.blogger.com/_rTWCmr2q_kw/R9gRm1Uia0I/AAAAAAAAAHQ/ODDE8OLZ89g/s400/gradient.jpg" alt="" id="BLOGGER_PHOTO_ID_5176907130508307266" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.1 + 1.2: Animation using displayed gradient as lighting source over time&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Indirect surface shader code:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/R9gZKlUia5I/AAAAAAAAAH0/b4dljYB-5Sg/s1600-h/shader_code.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/R9gZKlUia5I/AAAAAAAAAH0/b4dljYB-5Sg/s400/shader_code.jpg" alt="" id="BLOGGER_PHOTO_ID_5176915441270025106" border="0" /&gt;&lt;/a&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=d031b8c110f45941&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/3852029557257664572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=3852029557257664572' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/3852029557257664572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/3852029557257664572'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/03/daybright-gradient-render-integration.html' title='DayBRIGHT: Gradient / Render Integration'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_rTWCmr2q_kw/R9gRm1Uia0I/AAAAAAAAAHQ/ODDE8OLZ89g/s72-c/gradient.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-5748028388349499941</id><published>2008-03-03T19:24:00.008-05:00</published><updated>2008-03-03T20:05:22.299-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><category scheme='http://www.blogger.com/atom/ns#' term='daybright'/><title type='text'>DayBRIGHT: Post-Processing</title><content type='html'>Changing gears a bit, I decided to begin writing in some post-image processing functionality to DayBRIGHT to handle the final image output.  The first post-process was writing a color noise filter that blended a 1:1 ratio of random colored pixels with each rendered image .  This is done to counter the fact that the illusion of computer graphics being reality is often blown due to a discrepancy in noise artifacts across the image, most commonly noticed when graphics are composited with film or video footage.  Even without footage, the human mind does not normally process perfectly smooth color and shape with reality.  Reality rarely has instances of complete visual fidelity, at least from an everyday human perspective.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/R8yY0VtCc2I/AAAAAAAAAG4/jMiVg7R1IRk/s1600-h/color_noise_chart.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/R8yY0VtCc2I/AAAAAAAAAG4/jMiVg7R1IRk/s400/color_noise_chart.jpg" alt="" id="BLOGGER_PHOTO_ID_5173678096888525666" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.1: Simple color noise composite process&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Another post-process that is necessary was gamma correction.  The algorithm resulting from the equation is straight-forward, where a gamma corrected set of values from 0-255 is created, then each RGB value from the given image is changed to the gamma corrected equivalent.  Below is the simple math equation for gamma correction and corresponding algorithm in (non-optimized) Python code:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_rTWCmr2q_kw/R8yavFtCc3I/AAAAAAAAAHA/T6veMiYWfps/s1600-h/gammaEquation.png"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_rTWCmr2q_kw/R8yavFtCc3I/AAAAAAAAAHA/T6veMiYWfps/s400/gammaEquation.png" alt="" id="BLOGGER_PHOTO_ID_5173680205717468018" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.2: Gamma correction equation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/R8yecVtCc4I/AAAAAAAAAHI/rBGaoIzD-H4/s1600-h/gamma_code.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/R8yecVtCc4I/AAAAAAAAAHI/rBGaoIzD-H4/s400/gamma_code.jpg" alt="" id="BLOGGER_PHOTO_ID_5173684281641431938" border="0" /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/5748028388349499941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=5748028388349499941' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/5748028388349499941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/5748028388349499941'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/03/daybright-post-processing.html' title='DayBRIGHT: Post-Processing'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_rTWCmr2q_kw/R8yY0VtCc2I/AAAAAAAAAG4/jMiVg7R1IRk/s72-c/color_noise_chart.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-1187136120056599385</id><published>2008-03-01T14:02:00.007-05:00</published><updated>2008-03-12T14:02:18.731-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><category scheme='http://www.blogger.com/atom/ns#' term='daybright'/><title type='text'>DayBRIGHT: Renderman Rendering</title><content type='html'>Below are some test renders coded through Renderman and woven into the DayBRIGHT graphics and data handling subsystems.  Using the classic Cornell box, I was able to successfully simulate global illumination in combination with image based lighting.  The photon calculation isn't as smooth (or as fast) as I'd like it to be - but optimization will be taken care of later once I can generate reliable image sequences.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/R8moz2HNwOI/AAAAAAAAAGg/YVGbx0Z_76k/s1600-h/cornell_box01.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_rTWCmr2q_kw/R8moz2HNwOI/AAAAAAAAAGg/YVGbx0Z_76k/s400/cornell_box01.jpg" alt="" id="BLOGGER_PHOTO_ID_5172851255664296162" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.1: Global illumination / color bleeding &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/R8mo72HNwQI/AAAAAAAAAGw/HhuLSDSXye4/s1600-h/cornell_box01_03.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_rTWCmr2q_kw/R8mo72HNwQI/AAAAAAAAAGw/HhuLSDSXye4/s400/cornell_box01_03.jpg" alt="" id="BLOGGER_PHOTO_ID_5172851393103249666" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.2: Image-based lighting with accurate shadows.  Shadows no longer gradient of grays, but rather mixed with color pertaining to casting objects.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/R8mo3WHNwPI/AAAAAAAAAGo/q-ZXS-Wou4Q/s1600-h/cornell_box01_02.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/R8mo3WHNwPI/AAAAAAAAAGo/q-ZXS-Wou4Q/s400/cornell_box01_02.jpg" alt="" id="BLOGGER_PHOTO_ID_5172851315793838322" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.3: Classic Cornell box setup with pronounced color bleed&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/1187136120056599385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=1187136120056599385' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/1187136120056599385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/1187136120056599385'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/03/daybright-processing-is-cute-and-all.html' title='DayBRIGHT: Renderman Rendering'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_rTWCmr2q_kw/R8moz2HNwOI/AAAAAAAAAGg/YVGbx0Z_76k/s72-c/cornell_box01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-4752665340818542053</id><published>2008-02-26T16:43:00.007-05:00</published><updated>2008-03-12T14:01:09.417-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><category scheme='http://www.blogger.com/atom/ns#' term='daybright'/><title type='text'>DayBRIGHT: Image to Gradient Translation</title><content type='html'>&lt;span style="color: rgb(0, 0, 0);"&gt;The first translator I decided to fully flesh out for DayBRIGHT is the static image translator. The underlying system I have developed only has one principle rule - anything can be translated and used, as long as that translation returns a gradient object.  So, how can a gradient be created from an image?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;I took the route of writing an algorithm which finds and stores the most dominate colors in an image - then using each sample as a control point within a varying length linearly-smoothed gradient, where the most dominate colors are in order from left to right.  Below are some examples of the results, where the top is the source that was sampled and gradient is the output visualized:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/R8SJMK5826I/AAAAAAAAAGI/cjdP-ZVtHSk/s1600-h/sky_grad.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/R8SJMK5826I/AAAAAAAAAGI/cjdP-ZVtHSk/s400/sky_grad.jpg" alt="" id="BLOGGER_PHOTO_ID_5171409114307025826" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Fig 1.1: Sky converted to a gradient based on dominate colors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_rTWCmr2q_kw/R8SJRq5827I/AAAAAAAAAGQ/u8l-HzRyliI/s1600-h/kandCompVI_grad.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_rTWCmr2q_kw/R8SJRq5827I/AAAAAAAAAGQ/u8l-HzRyliI/s400/kandCompVI_grad.jpg" alt="" id="BLOGGER_PHOTO_ID_5171409208796306354" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Fig 1.2: &lt;span style="font-style: italic;"&gt;Composition VI&lt;/span&gt;, W. Kandinsky - image to gradient conversion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/R8SJWK5828I/AAAAAAAAAGY/08YBYkyPy9g/s1600-h/kandCompVII_grad.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/R8SJWK5828I/AAAAAAAAAGY/08YBYkyPy9g/s400/kandCompVII_grad.jpg" alt="" id="BLOGGER_PHOTO_ID_5171409286105717698" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Fig 1.3: &lt;span style="font-style: italic;"&gt;Composition VII&lt;/span&gt;, W. Kandinsky - image to gradient conversion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Now that a method existed to translate static images into gradients, it becomes a trivial task to write a translator for a video feed, as video can be easily treated as a series of images.  Simple alterations to a subsystem can allow for a calculated sample of each frame in a gradient.  So, if a video feed were parsed once every hour for twenty four hours, a gradient could be constructed of n-length, linearly being smoothed evenly across each respective control point based on n+1 distance.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/4752665340818542053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=4752665340818542053' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/4752665340818542053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/4752665340818542053'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/02/daybright-image-to-gradient-translation_26.html' title='DayBRIGHT: Image to Gradient Translation'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_rTWCmr2q_kw/R8SJMK5826I/AAAAAAAAAGI/cjdP-ZVtHSk/s72-c/sky_grad.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-1990490572742536528</id><published>2008-02-19T21:07:00.003-05:00</published><updated>2008-02-19T21:46:31.765-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><category scheme='http://www.blogger.com/atom/ns#' term='daybright'/><title type='text'>DayBRIGHT: Generic Structures</title><content type='html'>The underlying system DayBRIGHT uses to translate various data structures has become less about constraining data to a set format, and more about developing a generic structure (a gradient) to fully represent the data in an elegant way.  I find this an interesting topic to explore because it has really opened a lot of doors as to how far I can take his project; in particular, in the sheer variance of data I can now use. &lt;br /&gt;&lt;br /&gt;RSS feeds, video streams, static images, audio tracks, physical sensor data - all of which can be harbored by a single generic data structure.  Each piece of data simply needs its own translator towards being converted to the structure; once that is done - there is no further special-casing needed.  &lt;br /&gt;&lt;br /&gt;My goal for this project is to have, by the end of semester, a demonstration of how the various types of data listed above can be used to achieve results for an identical operation.  In the case of DayBRIGHT, I will be using the gradient structures to light 3D geometry.  How this will be done merits its own detailed entry - which is forthcoming.&lt;br /&gt;&lt;br /&gt;I am really excited about this idea, it is a blend of engineering/mathematics and visual aesthetics that I have always been drawn to.  I am dedicating all of my classes to it in hope that my time commitment will really push this idea as far as it can go.</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/1990490572742536528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=1990490572742536528' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/1990490572742536528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/1990490572742536528'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/02/daybright-generic-structures.html' title='DayBRIGHT: Generic Structures'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-2338357429464220801</id><published>2008-02-15T17:59:00.008-05:00</published><updated>2008-02-17T14:14:50.766-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><category scheme='http://www.blogger.com/atom/ns#' term='daybright'/><title type='text'>DayBRIGHT: Proposal + Test Video</title><content type='html'>The idea behind the DayBRIGHT project is to be able to visualize data through HDR light probes being influenced by various types of datasets.  Each dataset, be it an RSS weather forecast, webcam frame sequence, arbitrary color selection, or any other value - will be translated into a common format to be applied to a core HDR image.&lt;br /&gt;&lt;br /&gt;The DayBRIGHT project will be encapsulated within a core software application which will communicate with various data feeds.  As mentioned, each type of data will be converted to a common format: a color gradient.  A color gradient will allow for analysis of RGBA, as well as time by sampling across its length.  Depth can also be calculated by converting RGBA to luminance values.&lt;br /&gt;&lt;br /&gt;To render the results, the initial solution will be to use 3Delight, an implementation of the Renderman standard, first introduced by Pixar.  Using Renderman will allow for programming flexibility and high-quality renders at HD resolutions, if needed.  An example of the early results is shown below, where an orange -&gt; cyan color gradient has been applied:&lt;br /&gt;&lt;br /&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-f3d50c8a500ef19b" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="//www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://redirector.googlevideo.com/videoplayback?id%3Df3d50c8a500ef19b%26itag%3D5%26source%3Dblogger%26app%3Dblogger%26cmo%3Dsensitive_content%253Dyes%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1371093548%26sparams%3Did,itag,source,ip,ipbits,expire%26signature%3D67CE905836624BD1BBB2DC264EB78D1EF966BF04.97C4DFB2C0C601181504C005A60D530EA119649A%26key%3Dck2&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Df3d50c8a500ef19b%26offsetms%3D5000%26itag%3Dw160%26sigh%3DYJR6xCbk4s-o4QzYKZjOwJJhN94&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="//www.youtube.com/get_player" type="application/x-shockwave-flash" width="320" height="266" bgcolor="#FFFFFF" flashvars="flvurl=http://redirector.googlevideo.com/videoplayback?id%3Df3d50c8a500ef19b%26itag%3D5%26source%3Dblogger%26app%3Dblogger%26cmo%3Dsensitive_content%253Dyes%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1371093548%26sparams%3Did,itag,source,ip,ipbits,expire%26signature%3D67CE905836624BD1BBB2DC264EB78D1EF966BF04.97C4DFB2C0C601181504C005A60D530EA119649A%26key%3Dck2&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Df3d50c8a500ef19b%26offsetms%3D5000%26itag%3Dw160%26sigh%3DYJR6xCbk4s-o4QzYKZjOwJJhN94&amp;autoplay=0&amp;ps=blogger" allowFullScreen="true" /&gt;&lt;/object&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=f3d50c8a500ef19b&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/2338357429464220801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=2338357429464220801' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/2338357429464220801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/2338357429464220801'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/02/daybright-proposal-test-video.html' title='DayBRIGHT: Proposal + Test Video'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-6871074904976146001</id><published>2008-02-13T21:45:00.004-05:00</published><updated>2008-02-13T22:09:37.630-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pixel-by-pixel'/><category scheme='http://www.blogger.com/atom/ns#' term='comp-cameras'/><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><category scheme='http://www.blogger.com/atom/ns#' term='daybright'/><title type='text'>DayBRIGHT: Gradient Sampling</title><content type='html'>One of the core concepts of the DayBRIGHT project that I am developing over this semester is to enable the ability to drive HDR lighting over time using a variety of methods - the first of which is using a simple color gradient.  &lt;br /&gt;&lt;br /&gt;For every frame to be rendered, a copy of the core HDR image is created, then a color overlay operation is applied to that copy - with the color applied being the current sample value of the gradient.  This relationship is graphically represented below:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/R7OrQa5821I/AAAAAAAAAFg/YWa0MKYyJDs/s1600-h/gradient_sampling.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/R7OrQa5821I/AAAAAAAAAFg/YWa0MKYyJDs/s400/gradient_sampling.jpg" alt="" id="BLOGGER_PHOTO_ID_5166661496112733010" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.1: Graphical example of gradient sampling applied to image&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/6871074904976146001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=6871074904976146001' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/6871074904976146001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/6871074904976146001'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/02/daybright-gradient-sampling.html' title='DayBRIGHT: Gradient Sampling'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_rTWCmr2q_kw/R7OrQa5821I/AAAAAAAAAFg/YWa0MKYyJDs/s72-c/gradient_sampling.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-6351149965253244503</id><published>2008-02-10T22:04:00.000-05:00</published><updated>2008-02-10T22:28:36.461-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='random'/><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>Mind.Scribble.Form</title><content type='html'>My mind blurred, sketched, articulated, and scribbled on paper - most of which makes little to no sense to me currently.  I normally never write things down to remember for the future - I generally only do so to calculate or brainstorm on the spot.  Apparently, in parallel with my messy drawings, I also take photos without much care either.  I think I'll write that off as part of my "creative process" and hope that you believe me (which you shouldn't).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/R6-_Sa582xI/AAAAAAAAAFA/gRgsliPMll8/s1600-h/scribbles_02.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/R6-_Sa582xI/AAAAAAAAAFA/gRgsliPMll8/s400/scribbles_02.jpg" alt="" id="BLOGGER_PHOTO_ID_5165557620798184210" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/R6-_Ma582wI/AAAAAAAAAE4/2jT3WeSqnRM/s1600-h/scribbles_01.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/R6-_Ma582wI/AAAAAAAAAE4/2jT3WeSqnRM/s400/scribbles_01.jpg" alt="" id="BLOGGER_PHOTO_ID_5165557517718969090" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/R6-_rq582yI/AAAAAAAAAFI/wuMuKchBhuo/s1600-h/scribble_04.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_rTWCmr2q_kw/R6-_rq582yI/AAAAAAAAAFI/wuMuKchBhuo/s400/scribble_04.jpg" alt="" id="BLOGGER_PHOTO_ID_5165558054589881122" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/R6-_9a582zI/AAAAAAAAAFQ/Fgr-rKedIXI/s1600-h/scribble_05.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/R6-_9a582zI/AAAAAAAAAFQ/Fgr-rKedIXI/s400/scribble_05.jpg" alt="" id="BLOGGER_PHOTO_ID_5165558359532559154" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_rTWCmr2q_kw/R6_AK65820I/AAAAAAAAAFY/3pZ7GU92RbU/s1600-h/scribble_06.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_rTWCmr2q_kw/R6_AK65820I/AAAAAAAAAFY/3pZ7GU92RbU/s400/scribble_06.jpg" alt="" id="BLOGGER_PHOTO_ID_5165558591460793154" border="0" /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/6351149965253244503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=6351149965253244503' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/6351149965253244503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/6351149965253244503'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/02/mindscribbleform.html' title='Mind.Scribble.Form'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_rTWCmr2q_kw/R6-_Sa582xI/AAAAAAAAAFA/gRgsliPMll8/s72-c/scribbles_02.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-6914387140138885217</id><published>2008-02-06T13:47:00.000-05:00</published><updated>2008-02-06T14:05:08.938-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='nature_of_code'/><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>Blast Radius</title><content type='html'>Several layers of particles revolving around a central sphere - each layer being rotated based on assigned attraction forces.  Particles are symbolic of populous movement combined with the effect of unseen influence over collective entities - physically, socially, and otherwise.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/R6oAOsnPgTI/AAAAAAAAAEo/PsQxreFqbtE/s1600-h/blastRadius_01.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/R6oAOsnPgTI/AAAAAAAAAEo/PsQxreFqbtE/s400/blastRadius_01.jpg" alt="" id="BLOGGER_PHOTO_ID_5163940175227617586" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig. 1.1: Straight-on shot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/R6oAUMnPgUI/AAAAAAAAAEw/cFxY6Tli5YY/s1600-h/blastRadius_02.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_rTWCmr2q_kw/R6oAUMnPgUI/AAAAAAAAAEw/cFxY6Tli5YY/s400/blastRadius_02.jpg" alt="" id="BLOGGER_PHOTO_ID_5163940269716898114" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.2: Corner angle&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Source:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.kpwproductions.com/research/noc/blast_radius/BlastRadiusMain.txt"&gt;BlastRadiusMain.java&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.kpwproductions.com/research/noc/blast_radius/GLSL.txt"&gt;GLSL.java&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/6914387140138885217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=6914387140138885217' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/6914387140138885217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/6914387140138885217'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/02/blast-radius.html' title='Blast Radius'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_rTWCmr2q_kw/R6oAOsnPgTI/AAAAAAAAAEo/PsQxreFqbtE/s72-c/blastRadius_01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-695340762936891044</id><published>2008-02-01T22:29:00.000-05:00</published><updated>2008-02-01T23:51:18.540-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pixel-by-pixel'/><category scheme='http://www.blogger.com/atom/ns#' term='comp-cameras'/><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>Interactive and Time-Based HDR</title><content type='html'>I have been thinking a lot about pixels lately - most likely due to having a class with the given root word in it... twice.   So, we have all of this information nicely packed within a frame - now what to do with it?&lt;br /&gt;&lt;br /&gt;What I find interesting is how an image can be mined for data that is unseen upon first glance - and one of my favorite ideas in regard to this way of thinking is the creation and use of HDR images.  High-Dynamic Range images are useful for an assortment of reasons - in the field of computer graphics, they are many times used as a light source.   &lt;a href="http://www.debevec.org/"&gt;Paul Debevec&lt;/a&gt; is known as one of the groundbreaking researchers on the topic - and what initially began as technique for expensive high-end rendering has now been implemented in real-time in the past couple of years.  Check out his site to see some of the amazing things HDR images can be used for.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.debevec.org/Probes/rnl_probe.jpg"&gt;&lt;img style="cursor: pointer; width: 320px;" src="http://www.debevec.org/Probes/rnl_probe.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.1: Example of a light-probe HDR image&lt;br /&gt;Credit: &lt;a href="http://www.debevec.org"&gt;http://www.debevec.org&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So, what else can been done with HDR - and how can it be used to create something interesting?   For me, I want to explore moving away from leaving HDR lighting as a static image - and instead have it evolve over time while lighting a static scene.  A few ideas are: time-lapse HDR lighting, real-time interaction with the HDR image itself, tying HDR colorization with weather forecasting, integration with existing data sets, and so forth.</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/695340762936891044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=695340762936891044' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/695340762936891044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/695340762936891044'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/02/interactive-and-time-based-hdr.html' title='Interactive and Time-Based HDR'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-1005837809726213997</id><published>2008-01-17T17:23:00.000-05:00</published><updated>2008-01-17T22:17:51.205-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>Programming, Ubiquity, Devices, and You</title><content type='html'>After telling fellow students at ITP about the classes I decided to sign up for the coming Spring semester, I have often been asked the following two questions:&lt;br /&gt;&lt;br /&gt;1. "Why are you taking programming centric classes if that is already one of your strengths?"&lt;br /&gt;&lt;br /&gt;2. "Why aren't you taking any physical computer related classes?"&lt;br /&gt;&lt;br /&gt;The answer to the first one is rather concise; I feel that staying constantly involved in software and mathematics allows me to build myself as a better overall problem-solver on both an analytical and creative basis.  Writing code to solve a problem is concurrently a step-by-step breakdown of the problem itself; patterns emerge and reveal themselves, woven with systems of varying elegance and complexity.  Understanding concepts which reveal such harmony will endure far past simply designing the next iPhone - leading me to the answer to the second question:&lt;br /&gt;&lt;br /&gt;My position on physical computing at it pertains to projects at ITP (and in general) is that the development of devices which we physically interact with is inevitably obsolete.  This is the century of biology - and consequently, biological micro-interfacing will be the future of device technology.  Increased ubiquity leading to result/reward has nearly always been the trend in tool advancements - computing is to exist behind a curtain whenever possible.  While it is certainly a valid venture to develop large-scale projects involving common electronics and so forth - I personally have little interest in pursuing similar implementation methods.</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/1005837809726213997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=1005837809726213997' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/1005837809726213997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/1005837809726213997'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2008/01/programming-ubiquity-devices-and-you.html' title='Programming, Ubiquity, Devices, and You'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-8907452404314463459</id><published>2007-12-10T22:12:00.000-05:00</published><updated>2007-12-14T22:03:12.177-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><category scheme='http://www.blogger.com/atom/ns#' term='phys-comp'/><title type='text'>Software for Physical Display Project</title><content type='html'>Group: William McDonald, Sunghun Kim, Matt Parker&lt;br /&gt;&lt;br /&gt;Further documentation:&lt;br /&gt;&lt;a href="http://sunghunpcom.blogspot.com/"&gt;Sunghun with videos / images&lt;/a&gt;&lt;br /&gt;&lt;a href="http://docs.google.com/TeamPresent?docid=dg5wb76z_79z9h4mngw"&gt;Matt on construction / mechanics&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For our group project, we wanted to develop a physical system to represent graphical depth data.  We decided to use a collection of sine and noise waves to start off with - as using depth data really only makes (practical) sense with a 3D grid.&lt;br /&gt;&lt;br /&gt;Using Processing, a straight-forward GUI was created featuring four buttons, with a graphical representation of the waves being dynamically created to the right of the buttons.  The fourth button allows the user to paint his/her own wave (or any shape, for that matter) and the software will generate a visualization and physical output for the image painted.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_rTWCmr2q_kw/R14Eqw5J-FI/AAAAAAAAADo/OqqH_ouXGNg/s1600-h/depth_before.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_rTWCmr2q_kw/R14Eqw5J-FI/AAAAAAAAADo/OqqH_ouXGNg/s400/depth_before.jpg" alt="" id="BLOGGER_PHOTO_ID_5142552957229332562" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.1:  Drawing canvas allows user to draw images to physically visualize&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_rTWCmr2q_kw/R14E_w5J-GI/AAAAAAAAADw/Xj3pfmcE7ZA/s1600-h/depth_result.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_rTWCmr2q_kw/R14E_w5J-GI/AAAAAAAAADw/Xj3pfmcE7ZA/s400/depth_result.jpg" alt="" id="BLOGGER_PHOTO_ID_5142553318006585442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig. 1.2:  Visualization of user input wave drawing&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To sample each wave - an algorithm was written which samples across the width of a given image proportional to the resolution of the physical system - in our case, 20 samples.  At each sample - the program checks to see how far down (Y) the image it takes in pixels before a color other than white is found.  Upon finding a color, the value of that sample is received by the simple equation of :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sample_value = y_coord / (image_height / max_value)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/R14FHQ5J-HI/AAAAAAAAAD4/W_dwTbEao-s/s1600-h/wave_sampling.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/R14FHQ5J-HI/AAAAAAAAAD4/W_dwTbEao-s/s400/wave_sampling.jpg" alt="" id="BLOGGER_PHOTO_ID_5142553446855604338" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.3: Graphical representation of sampling method on wave images&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In regard to feeding this data into the servo motor array - we decided to use four arduino microprocessors connected via USB to the computer running the software application; with each arduino effectively controlling five servos:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_rTWCmr2q_kw/R14cMw5J-II/AAAAAAAAAEA/lo5_4RR96VQ/s1600-h/servo_setup.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_rTWCmr2q_kw/R14cMw5J-II/AAAAAAAAAEA/lo5_4RR96VQ/s400/servo_setup.jpg" alt="" id="BLOGGER_PHOTO_ID_5142578830112323714" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.4:  Computer / Arduino / Servo array configuration&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/8907452404314463459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=8907452404314463459' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/8907452404314463459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/8907452404314463459'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2007/12/software-for-physical-computing-final.html' title='Software for Physical Display Project'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_rTWCmr2q_kw/R14Eqw5J-FI/AAAAAAAAADo/OqqH_ouXGNg/s72-c/depth_before.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-2906432741142831217</id><published>2007-12-08T15:35:00.000-05:00</published><updated>2007-12-14T16:52:13.117-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='icm'/><category scheme='http://www.blogger.com/atom/ns#' term='shiver'/><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>Shiver - Final</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/R13opQ5J-DI/AAAAAAAAADY/_blcwXkF1cY/s1600-h/shiver_splash.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/R13opQ5J-DI/AAAAAAAAADY/_blcwXkF1cY/s400/shiver_splash.jpg" alt="" id="BLOGGER_PHOTO_ID_5142522145133951026" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.1: Splash screen for Shiver&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The last week of work on Shiver has primarily been a focus on adding features on the GUI side and tying up some loose ends.  The largest new feature is the ability to 'simulate' - which allows a user to simulate a full rotation (or however many wanted) of the globe, outputting the frames as an image sequence.  This process allows the user to see the rotation as a movie clip running at full speed.  The video in this blog entry is derived from that process.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/R12bhQ5J-CI/AAAAAAAAADQ/PvSCYKRxVnw/s1600-h/simulate_menu.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/R12bhQ5J-CI/AAAAAAAAADQ/PvSCYKRxVnw/s400/simulate_menu.jpg" alt="" id="BLOGGER_PHOTO_ID_5142437345299658786" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.2: Simulate options window&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Shiver is still very much a work in progress - however, I am pleased with the result of my work over the past 6-7 weeks, particularly with knowing that I was able to achieve high-quality imagery in real-time using Python and OpenGL together.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://kpwproductions.com/research/icm/shiver/shiver_simulation.mov"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_rTWCmr2q_kw/R13oxA5J-EI/AAAAAAAAADg/5rwKl0CevOQ/s400/video_still.jpg" alt="" id="BLOGGER_PHOTO_ID_5142522278277937218" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://kpwproductions.com/research/icm/shiver/shiver_simulation.mov"&gt;shiver_simulation.mov - 10.6mb&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Images from Shiver:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_rTWCmr2q_kw/R17kFw5J-LI/AAAAAAAAAEY/VnVaejK_dOo/s1600-h/day_visualize.jpg"&gt;&lt;img style="cursor: pointer; width: 182px; height: 182px;" src="http://bp0.blogger.com/_rTWCmr2q_kw/R17kFw5J-LI/AAAAAAAAAEY/VnVaejK_dOo/s200/day_visualize.jpg" alt="" id="BLOGGER_PHOTO_ID_5142798612178794674" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/R17kCg5J-KI/AAAAAAAAAEQ/MT3BWdSIzqc/s1600-h/cloud_cover.jpg"&gt;&lt;img style="cursor: pointer; width: 182px; height: 165px;" src="http://bp3.blogger.com/_rTWCmr2q_kw/R17kCg5J-KI/AAAAAAAAAEQ/MT3BWdSIzqc/s200/cloud_cover.jpg" alt="" id="BLOGGER_PHOTO_ID_5142798556344219810" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/R17jkg5J-JI/AAAAAAAAAEI/_vLoZbPnFck/s1600-h/night_shot.jpg"&gt;&lt;img style="cursor: pointer; width: 182px; height: 167px;" src="http://bp3.blogger.com/_rTWCmr2q_kw/R17jkg5J-JI/AAAAAAAAAEI/_vLoZbPnFck/s200/night_shot.jpg" alt="" id="BLOGGER_PHOTO_ID_5142798040948144274" border="0" /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/2906432741142831217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=2906432741142831217' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/2906432741142831217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/2906432741142831217'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2007/12/shiver-final.html' title='Shiver - Final'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_rTWCmr2q_kw/R13opQ5J-DI/AAAAAAAAADY/_blcwXkF1cY/s72-c/shiver_splash.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-5960543696695896347</id><published>2007-12-04T21:19:00.000-05:00</published><updated>2007-12-04T21:51:55.030-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='icm'/><category scheme='http://www.blogger.com/atom/ns#' term='shiver'/><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>Shiver Development: Event Density + Time Charting</title><content type='html'>For the past few days, I decided to develop a type of visualization which attempts to better communicate the areas that have a high density of earthquakes over time.  I decided to do this by having the program create a texture on the fly which is fed into the primary globe fragment shader, where areas of high seismic event activity would get higher amounts of red.  Since the texture being created is simply a collection red blobs on a black background, it is simple process to add the red areas on top of the globe through the shader.  Additionally, the seismic events themselves are visualized through simple lines aligned to the normals of the sphere - with the length of the line determined by its Richter scale value.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/R1YMng5J98I/AAAAAAAAACg/X9kiMhMKFcs/s1600-h/earth_visualize1.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_rTWCmr2q_kw/R1YMng5J98I/AAAAAAAAACg/X9kiMhMKFcs/s400/earth_visualize1.jpg" alt="" id="BLOGGER_PHOTO_ID_5140309897674094530" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.1: Globe with event density visualization&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After wrapping up event density mapping, I wanted to start trying to visualize events as they occurred over time.  The visualization itself doesn't communicate time as much as it displays the erratic nature of seismic activity happening around the world over an extended period (currently, over seven days).   To create lines that seemingly wrap themselves around the curvature of the globe - I decided to write a small bezier curve generator which had end points at the 3D coordinates of selected events.  The distance of those events is calculated using the Euclidean distance formula of:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/R1YQFg5J-AI/AAAAAAAAADA/X6Q7p_3VlQc/s1600-h/eulician_distance.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_rTWCmr2q_kw/R1YQFg5J-AI/AAAAAAAAADA/X6Q7p_3VlQc/s200/eulician_distance.jpg" alt="" id="BLOGGER_PHOTO_ID_5140313711605053442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Where the distance value is used to apply weight (w) to midpoints in rational bezier curves, such that:&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_rTWCmr2q_kw/R1YQlw5J-BI/AAAAAAAAADI/_n2XHkyJ5ow/s1600-h/0d8fa1beb8c7c4e30be9fd199e993ffc.png"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_rTWCmr2q_kw/R1YQlw5J-BI/AAAAAAAAADI/_n2XHkyJ5ow/s200/0d8fa1beb8c7c4e30be9fd199e993ffc.png" alt="" id="BLOGGER_PHOTO_ID_5140314265655834642" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/R1YNNQ5J99I/AAAAAAAAACo/IWU8_WQaw9M/s1600-h/earth_visualize2.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/R1YNNQ5J99I/AAAAAAAAACo/IWU8_WQaw9M/s400/earth_visualize2.jpg" alt="" id="BLOGGER_PHOTO_ID_5140310546214156242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.2: Bezier curves mapped across globe based on time of occurrence&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/5960543696695896347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=5960543696695896347' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/5960543696695896347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/5960543696695896347'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2007/12/shiver-development-event-density-time.html' title='Shiver Development: Event Density + Time Charting'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_rTWCmr2q_kw/R1YMng5J98I/AAAAAAAAACg/X9kiMhMKFcs/s72-c/earth_visualize1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-6799886423992477221</id><published>2007-11-28T01:22:00.000-05:00</published><updated>2007-11-28T01:52:06.839-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='icm'/><category scheme='http://www.blogger.com/atom/ns#' term='shiver'/><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>Shiver Development: Displacement</title><content type='html'>As I continue to polish the overall look of the globe - I decided to explore how to display the topology of the earth, which will become more important upon the incorporation of zooming in and out.  Another plus for having a working shader pipeline is the ability to write vertex shaders in a way which changes the geometry of the given shader is attached to - better known as displacement.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/R00KAwzpyjI/AAAAAAAAACQ/mUbVpCxU7wU/s1600-h/topology.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_rTWCmr2q_kw/R00KAwzpyjI/AAAAAAAAACQ/mUbVpCxU7wU/s400/topology.jpg" alt="" id="BLOGGER_PHOTO_ID_5137773758117431858" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.1: Altitude map provided by the NASA Blue Marble project&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; Having an altitude map which precisely matches the texture maps I am already using is quite convenient - so there was no need to alter the image or the coordinate mappings in the my shaders.  The concept of displacing geometry per vertex is a rather simple one:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/R00M2QzpykI/AAAAAAAAACY/2Ay3TeS2W0E/s1600-h/displacement_formula.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/R00M2QzpykI/AAAAAAAAACY/2Ay3TeS2W0E/s400/displacement_formula.jpg" alt="" id="BLOGGER_PHOTO_ID_5137776876263688770" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.2: Formula for displacement per vertex, where:&lt;br /&gt;&lt;br /&gt;P0 = original vertex position&lt;br /&gt;p1 = new vertex position&lt;br /&gt;N  = vertex normal position&lt;br /&gt;df = normalized displacement factor&lt;br /&gt;uf = user-defined scaling value&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_rTWCmr2q_kw/R00J7AzpyiI/AAAAAAAAACI/M8JX4IuW6nU/s1600-h/displ_01.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_rTWCmr2q_kw/R00J7AzpyiI/AAAAAAAAACI/M8JX4IuW6nU/s400/displ_01.jpg" alt="" id="BLOGGER_PHOTO_ID_5137773659333184034" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.3:  Diagram of per vertex displacement (Image credit: &lt;a href="http://ozone3d.net/"&gt;oZone3d.net&lt;/a&gt;)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_rTWCmr2q_kw/R00J2AzpyhI/AAAAAAAAACA/6hLXpx_2kXY/s1600-h/displacement_example.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_rTWCmr2q_kw/R00J2AzpyhI/AAAAAAAAACA/6hLXpx_2kXY/s400/displacement_example.jpg" alt="" id="BLOGGER_PHOTO_ID_5137773573433838098" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Fig 1.4: No displacement / displacement comparison in Shiver (wireframe)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;My next goal for Shiver is to implement a sunlight calculation system which will auto-generate a texture map accurately representing where how the sun is lighting the earth based on the time of day.  Additionally, I plan on (finally) starting the preliminary visualization of the actual seismic events being geomapped.</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/6799886423992477221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=6799886423992477221' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/6799886423992477221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/6799886423992477221'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2007/11/shiver-development-displacement.html' title='Shiver Development: Displacement'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_rTWCmr2q_kw/R00KAwzpyjI/AAAAAAAAACQ/mUbVpCxU7wU/s72-c/topology.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-5415768850130674225</id><published>2007-11-23T17:04:00.000-05:00</published><updated>2007-11-23T17:49:43.498-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><category scheme='http://www.blogger.com/atom/ns#' term='applications'/><title type='text'>Woven</title><content type='html'>I developed a small piece of software for a group presentation I had in Applications class that has to do with visualizing collaboration among 1st year students at ITP.   Someone during the Q+A asked if the software was open-source and if so, where could the source be downloaded?  The answers were "yes" and "soon, on my blog".  Unfortunately, I don't really have the time as it stands to package the software up nicely for download - so I am just going to post the raw source code for now, with the hope that I can package it later on...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/R0dXqwzpygI/AAAAAAAAAB4/DTjEwEcVTmA/s1600-h/woven_blogentry.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/R0dXqwzpygI/AAAAAAAAAB4/DTjEwEcVTmA/s400/woven_blogentry.jpg" alt="" id="BLOGGER_PHOTO_ID_5136170292207012354" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Source:&lt;br /&gt;&lt;a href="http://www.kpwproductions.com/research/misc/Woven/ProcessingMain.java"&gt;ProcessingMain.java&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.kpwproductions.com/research/misc/Woven/StudentDataParser.java"&gt;StudentDataParser.java&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.kpwproductions.com/research/misc/Woven/Student.java"&gt;Student.java&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.kpwproductions.com/research/misc/Woven/Button.java"&gt;Button.java&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.kpwproductions.com/research/misc/Woven/student_data.txt"&gt;student_data.txt&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/5415768850130674225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=5415768850130674225' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/5415768850130674225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/5415768850130674225'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2007/11/woven.html' title='Woven'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_rTWCmr2q_kw/R0dXqwzpygI/AAAAAAAAAB4/DTjEwEcVTmA/s72-c/woven_blogentry.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-6413345308019830903</id><published>2007-11-23T11:22:00.000-05:00</published><updated>2007-12-14T16:53:56.087-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='icm'/><category scheme='http://www.blogger.com/atom/ns#' term='shiver'/><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>Shiver Development: Event Mapping</title><content type='html'>A couple of new updates; one being that I have a new fog shader working on the globe - which adds to the effect of the atmospheric layering.  The ability to program shaders and apply them to geometry is really what separates imagery that is noticeably fake and that which is nearing photorealistic.  Real-time photorealism is the next big step in computer graphics - although you could make a very valid claim that photorealism hasn't been reached in pre-rendered form either.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/R0cD3AzpycI/AAAAAAAAABY/bbAlvvX9JSE/s1600-h/shader_comparison.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/R0cD3AzpycI/AAAAAAAAABY/bbAlvvX9JSE/s400/shader_comparison.jpg" alt="" id="BLOGGER_PHOTO_ID_5136078143683676610" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;Fig 1.1: Comparison between shader enhanced and non-shaded geometry&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The next update in progress is actually a rather large one - that being that I can now plot events on the earth sphere, needing only an event's latitude and longitude values.  This was actually a larger challenge than originally anticipated, as I didn't take into consideration polar coordinates in regard to texture mapping in OpenGL as it relates to sphere mapping.  I also ran into an issue pushing and popping the transformation matrix - but that turned out to be an instance of not having certain draw events happening between the correct combination of push/pop commands.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_rTWCmr2q_kw/R0cH5wzpydI/AAAAAAAAABg/DWRre-QBRaU/s1600-h/event_plotter.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp1.blogger.com/_rTWCmr2q_kw/R0cH5wzpydI/AAAAAAAAABg/DWRre-QBRaU/s320/event_plotter.jpg" alt="" id="BLOGGER_PHOTO_ID_5136082588974827986" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;Fig 1.2: Seismic events mapped on globe&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/6413345308019830903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=6413345308019830903' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/6413345308019830903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/6413345308019830903'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2007/11/shiver-development-event-mapping.html' title='Shiver Development: Event Mapping'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_rTWCmr2q_kw/R0cD3AzpycI/AAAAAAAAABY/bbAlvvX9JSE/s72-c/shader_comparison.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-8740453370907713652</id><published>2007-11-11T21:43:00.000-05:00</published><updated>2007-11-26T19:57:14.617-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='icm'/><category scheme='http://www.blogger.com/atom/ns#' term='shiver'/><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><title type='text'>Shiver Development: Shaders in PyOpenGL</title><content type='html'>After a turbulent weekend trying to get shaders working with PyOpenGL - I finally got my first vertex and fragment files compiled and working inside Shiver.  Without any documentation to bail me out of my usual jams with new code - I hacked away through the weekend until I stumbled upon a way of changing C-type function arguments, then converted variables into C-compliant data to be fed into the altered function in question.  In English:  I needed to convert data so it could be read and processed correctly.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_rTWCmr2q_kw/RzfFw6t_FLI/AAAAAAAAAA4/r5KLB6DLGpU/s1600-h/earth_with_atmos_shader.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp3.blogger.com/_rTWCmr2q_kw/RzfFw6t_FLI/AAAAAAAAAA4/r5KLB6DLGpU/s400/earth_with_atmos_shader.jpg" alt="" id="BLOGGER_PHOTO_ID_5131787744598496434" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:arial;font-size:85%;"  &gt;Fig 1.1: Globe with atmospheric shader applied&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So - in the lab I am often asked: "why are shaders important"?  Shaders can provide surface appearance variance in regard to color, opacity, reflection, refraction, etc... even physical alterations to the geometry itself.  In relation to what I am attempting to achieve - it is vital to be able to replicate light and physical phenomena that exists when viewing the earth from space.&lt;br /&gt;&lt;br /&gt;My first goal was to get a representation of the atmospheric layer that wraps around the earth - a thin haze of a light blue hue.  The trick is - the haze should not rotate along with the earth as the camera moves around the globe.  To achieve this; a shader was created that calculates how light is hitting the surface at each given frame - then simply finds where the light drop-off occurs on the surface (the edges) and colors those areas a varying hue of blue based on how much light exists on a given fragment of the geometry.  Since I applied the shader on a sphere and the lighting is both hitting the sphere straight on and is static in all attributes over time - we can assume perfect symmetry in the light distribution across the sphere at any given time, which allows for the Lambertian Reflection calulation of:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/RzfMxqt_FOI/AAAAAAAAABQ/rgAoAWRSzw8/s1600-h/eqdifflight.gif"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/RzfMxqt_FOI/AAAAAAAAABQ/rgAoAWRSzw8/s320/eqdifflight.gif" alt="" id="BLOGGER_PHOTO_ID_5131795454064792802" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Where:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;I&lt;span style="font-size:78%;"&gt;0&lt;/span&gt;&lt;/span&gt; = reflected intensity&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;L&lt;span style="font-size:78%;"&gt;d&lt;/span&gt;&lt;/span&gt; = light diffuse color,&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;M&lt;span style="font-size:78%;"&gt;d&lt;/span&gt;&lt;/span&gt; =  material diffuse coefficient&lt;br /&gt;&lt;br /&gt;Once we have the reflected intensity of each fragment, simple logic can be installed within the shader that only allows for color to be applied a certain areas of intensity - and, since we are dealing with a sphere with light shooting right at it (symmetrical light reflection!) - it becomes simple to create a halo light effect.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_rTWCmr2q_kw/RzfKyqt_FNI/AAAAAAAAABI/GaTsc7Pbn00/s1600-h/atmos_upclose.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp2.blogger.com/_rTWCmr2q_kw/RzfKyqt_FNI/AAAAAAAAABI/GaTsc7Pbn00/s400/atmos_upclose.jpg" alt="" id="BLOGGER_PHOTO_ID_5131793272221406418" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:arial;font-size:85%;"  &gt;Fig 1.2: Closer look of the glow-like effect of the atmospheric shader&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The next steps with using shaders are to create a fog shader for the globe, as well as the potential for a very subtle bump-map, as well as other effects as time permits.</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/8740453370907713652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=8740453370907713652' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/8740453370907713652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/8740453370907713652'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2007/11/shiver-development-shaders-in-pyopengl.html' title='Shiver Development: Shaders in PyOpenGL'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_rTWCmr2q_kw/RzfFw6t_FLI/AAAAAAAAAA4/r5KLB6DLGpU/s72-c/earth_with_atmos_shader.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-6894457033733602219</id><published>2007-10-31T17:16:00.000-04:00</published><updated>2007-11-26T19:57:52.103-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='icm'/><category scheme='http://www.blogger.com/atom/ns#' term='shiver'/><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><category scheme='http://www.blogger.com/atom/ns#' term='phys-comp'/><title type='text'>Shiver - Final Proposal</title><content type='html'>A few posts back - I wrote about developing a seismic data visualizer for my ICM final.  This is still the case - however, the details involving the execution of the project are now very different.  The most notable change involves adding several physical components to the project, meaning; this project will now be both my ICM and my Physical Computing project for this semester.  Excited?  Splendid - now on to the details...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Technical&lt;/span&gt;&lt;br /&gt;On the ICM front - I made a decision a week ago that I would in fact use Python as my primary programming language opposed to my original choice of Java.  Why?  Well, as I mentioned in the past - Python is slow in regard to intensive computation in comparison to compiled languages such as C/C++ or Java.  However, where Python shines is in its fast development time - and through its flexibility to glue together various components effectively.  Without a doubt, hitting the visual high-bar I am aiming for in regard to the graphics in this project will put an enormous strain on Python - however, much of that strain can ideally be handled through C code, if necessary.  I will be using an OpenGL binding called pyOpenGL - which is a mature library with strong documentation, so I should have information/learning support when I need it.  For the GUI components, I will be using the wxPython toolkit  - which allows for native OS widget use, so the program will automatically reflect the standard appearance of whatever OS the program is being run on.  Very slick.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_rTWCmr2q_kw/RzE6bqPrx2I/AAAAAAAAAAo/iHMDAjTFCLc/s1600-h/shiver_dev01.jpg"&gt;&lt;img style="cursor: pointer;" src="http://bp0.blogger.com/_rTWCmr2q_kw/RzE6bqPrx2I/AAAAAAAAAAo/iHMDAjTFCLc/s320/shiver_dev01.jpg" alt="" id="BLOGGER_PHOTO_ID_5129945697422657378" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:arial;"&gt;Fig 1.1: Shiver in early development, click to enlarge.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Representation&lt;/span&gt;&lt;br /&gt;As for how the data will be represented, it will be done so on a 3D globe - much like applications such as Google Earth and NASA's World Wide Wind.  When the applications gathers seismic data activity from the USGS - each event will be mapped to the globe according to its latitude and longitude values.  Based on an event's Richter Scale value - the event will be visualized along the nearest normal to in correlation to its lat/long. mapping.  Events can be selected through an easily organized directory structure tree, or on the globe itself.  When selected - various attributes are displayed, as well as a simulation option - which leads us to the physical computing side of the project...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Physical&lt;br /&gt;&lt;/span&gt;After sitting down with fellow ITP'er Sunghun Kim, we decided that we would like to team up and pursue a physical representation of seismic data that can be partnered with software I am developing for my ICM final.  This idea will involve creating a 2D representation of the seismic events - dictated by the Richter scale value of each event.  This will ideally result in a mesh being created by rods pushing and pulling at a rubber-like surface.   Each rod will be driven of an average value of pixel color values dependent on the ratio between the rod count and the image resolution.  Once a 2D simulation is established, it will ideally branch out to a 3D grid - but that is likely for another semester.</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/6894457033733602219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=6894457033733602219' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/6894457033733602219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/6894457033733602219'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2007/10/shiver-final-proposal.html' title='Shiver - Final Proposal'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_rTWCmr2q_kw/RzE6bqPrx2I/AAAAAAAAAAo/iHMDAjTFCLc/s72-c/shiver_dev01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4340703130925509479.post-5425267000162161318</id><published>2007-10-25T01:39:00.000-04:00</published><updated>2007-10-25T01:42:36.408-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='itp'/><category scheme='http://www.blogger.com/atom/ns#' term='phys-comp'/><title type='text'>Elevator Previsualizer</title><content type='html'>This is a midterm project I worked on with a talented group of people in Physical Computing.  Follow the link for more:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://kpwproductions.com/research/phys_comp/itp_elevator/itp_elevator.html"&gt;Elevator Previsualizer Main Site&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://will-at-itp.blogspot.com/feeds/5425267000162161318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4340703130925509479&amp;postID=5425267000162161318' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/5425267000162161318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4340703130925509479/posts/default/5425267000162161318'/><link rel='alternate' type='text/html' href='http://will-at-itp.blogspot.com/2007/10/elevator-previsualizer.html' title='Elevator Previsualizer'/><author><name>William McDonald</name><uri>http://www.blogger.com/profile/04361435242802606872</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_rTWCmr2q_kw/TS-LoAP0bAI/AAAAAAAAAP8/pOf4HmKSxgA/S220/2d60569.jpg'/></author><thr:total>0</thr:total></entry></feed>