<?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-5917243066768946222</id><updated>2024-12-18T22:22:59.901-05:00</updated><category term="Android"/><category term="cuda"/><category term="texture"/><category term="OpenGL ES"/><category term="market"/><category term="voronoi"/><category term="live-wallpaper"/><category term="nvidia"/><category term="rendering"/><category term="GPU"/><category term="procedural texturing"/><category term="GLSL"/><category term="OpenCL"/><category term="Weird Voronoi"/><category term="synthesis"/><category term="voronoi diagram"/><category term="animation"/><category term="cell"/><category term="color distribution"/><category term="fragment shader"/><category term="hierarchy"/><category term="merged voronoi diagram"/><category term="new renderer"/><category term="opengl"/><category term="point distribution"/><category term="3D"/><category term="C++"/><category term="Delaunay Triangulation"/><category term="GPGPU"/><category term="SIGGRAPH"/><category term="gray scale"/><category term="masking images"/><category term="plane"/><category term="point"/><category term="poisson disk sampling"/><category term="procedural"/><category term="programming"/><category term="qr code"/><category term="shader"/><category term="smoke"/><category term="smoke texture"/><category term="symmetry"/><category term="tutorial"/><category term="twin pictures"/><category term="webgl"/><category term="weird"/><category term="Alan Turing"/><category term="AndCam3D"/><category term="C++ to CUDA"/><category term="C++ to OpenCL"/><category term="Cantor"/><category term="Chaitin machine"/><category term="Church-Turing thesis"/><category term="Complexity"/><category term="Computability"/><category term="DT"/><category term="EGSR"/><category term="Eurographics"/><category term="Halting Problem"/><category term="Khronos"/><category term="MVD"/><category term="Miguel-Angel Martin-Delgado"/><category term="NP-complete"/><category term="NP-hard"/><category term="P vs. NP"/><category term="Perlin noise"/><category term="Perlin sum"/><category term="South Park"/><category term="Speedx 3D"/><category term="Turing Machine"/><category term="VD"/><category term="Vancouver"/><category term="WebCL"/><category term="Weird Voronoi Pro"/><category term="Yang"/><category term="Yin"/><category term="aesthetic"/><category term="app store"/><category term="artistic"/><category term="background"/><category term="caustic"/><category term="caustics"/><category term="cellular"/><category term="cellular texturing"/><category term="classes"/><category term="clouds"/><category term="cluster"/><category term="codecademy"/><category term="color"/><category term="cuda-c"/><category term="decision problem"/><category term="demo"/><category term="diagram"/><category term="domination"/><category term="download"/><category term="dual graph"/><category term="example"/><category term="fast food"/><category term="flower"/><category term="fragment"/><category term="function pointers"/><category term="google docs"/><category term="html5"/><category term="iOS"/><category term="images"/><category term="inheritance"/><category term="javascript"/><category term="jokes"/><category term="layer"/><category term="layers"/><category term="marble"/><category term="mosaic"/><category term="nehe"/><category term="new logo"/><category term="normal"/><category term="octaves"/><category term="orientation"/><category term="partition"/><category term="pattern"/><category term="polymorphism"/><category term="pro"/><category term="professional"/><category term="quotes"/><category term="rating"/><category term="reflection"/><category term="research"/><category term="restaurant"/><category term="rock"/><category term="site"/><category term="smartphone"/><category term="smoke art"/><category term="spirals"/><category term="stereoscopy"/><category term="stone"/><category term="switch statement"/><category term="tablet"/><category term="texture synthesis"/><category term="texturing"/><category term="thoughts"/><category term="trial"/><category term="twitter"/><category term="virtual functions"/><title type='text'>WIDGG&#39;S RESEARCH</title><subtitle type='html'>I use this blog to share (presentable) results from my research as a PhD student in computer science.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-4848863801542287891</id><published>2012-04-23T20:33:00.000-04:00</published><updated>2012-04-23T20:39:46.354-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cuda"/><category scheme="http://www.blogger.com/atom/ns#" term="Delaunay Triangulation"/><category scheme="http://www.blogger.com/atom/ns#" term="EGSR"/><category scheme="http://www.blogger.com/atom/ns#" term="Eurographics"/><category scheme="http://www.blogger.com/atom/ns#" term="fragment shader"/><category scheme="http://www.blogger.com/atom/ns#" term="octaves"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenCL"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenGL ES"/><category scheme="http://www.blogger.com/atom/ns#" term="Perlin noise"/><category scheme="http://www.blogger.com/atom/ns#" term="Perlin sum"/><category scheme="http://www.blogger.com/atom/ns#" term="procedural texturing"/><category scheme="http://www.blogger.com/atom/ns#" term="texture synthesis"/><category scheme="http://www.blogger.com/atom/ns#" term="webgl"/><title type='text'>New results</title><content type='html'>&lt;span style=&quot;font-family: inherit;&quot;&gt;We submitted a paper to EGSR (&lt;span style=&quot;background-color: white; color: #222222; line-height: 16px;&quot;&gt;&lt;i&gt;Eurographics Symposium on Rendering&lt;/i&gt;), and still waiting to see if the paper is accepted or not.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; line-height: 16px;&quot;&gt;In the mean time, here&#39;s a little result. We used a Perlin sum, to sum up the first four images, to create the last one. The output is very interesting.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; line-height: 16px;&quot;&gt;Here&#39;s the octaves:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY9QYwrYBDPiakg1CIaDx4xxj-kKZcjX07WmMiP1lg_sAS8Kew9o4k44vvjT352dkAG5byIer1-L19WhF-zTI_lAZXAXhgo2xSV2lcoOkYtrOTWoSMCpJAEBJTC89zJqSV0aCEVScD-k8/s1600/perlin_1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY9QYwrYBDPiakg1CIaDx4xxj-kKZcjX07WmMiP1lg_sAS8Kew9o4k44vvjT352dkAG5byIer1-L19WhF-zTI_lAZXAXhgo2xSV2lcoOkYtrOTWoSMCpJAEBJTC89zJqSV0aCEVScD-k8/s320/perlin_1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCgiSPya-Z7HqekDSHtMnXpAgpwCW9YqAKBeL6kcGkUZxu7tiG-ugoxh_K8f-WC8L4-HqLPI5RFbKQrAtXCvgUVZkaHgQkZHADM0NwR3nsOT467TOHxMGgVKjKp79E_sSDE5ON73WFOtU/s1600/perlin_2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCgiSPya-Z7HqekDSHtMnXpAgpwCW9YqAKBeL6kcGkUZxu7tiG-ugoxh_K8f-WC8L4-HqLPI5RFbKQrAtXCvgUVZkaHgQkZHADM0NwR3nsOT467TOHxMGgVKjKp79E_sSDE5ON73WFOtU/s320/perlin_2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMw-iDmBGMa4Z4IEf6-8cdhRxMeH6Izjm9IUjq_6HMKETGPmtsXPnCaCzwHHdJOlI0A6eGmXF1ylNVAzTn0iq2M44A4sRkNPqP3GPCxQUBgToUsMkmt6ep_SDNeAgHyS1NKTyYWaNXEN0/s1600/perlin_3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMw-iDmBGMa4Z4IEf6-8cdhRxMeH6Izjm9IUjq_6HMKETGPmtsXPnCaCzwHHdJOlI0A6eGmXF1ylNVAzTn0iq2M44A4sRkNPqP3GPCxQUBgToUsMkmt6ep_SDNeAgHyS1NKTyYWaNXEN0/s320/perlin_3.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0t4voOblfUnr2vDDQXitnehix1HUKU9rZlBKAZhodCN_FLfsQbpliwmgEXjIqDuGyv6iyB2TCHeNCXcoJh54K9l9gEim6q6gAKYiV2ZdZOfTLaiE9wZZBWR7DMeZHIAysc7OMf3NQpwc/s1600/perlin_4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0t4voOblfUnr2vDDQXitnehix1HUKU9rZlBKAZhodCN_FLfsQbpliwmgEXjIqDuGyv6iyB2TCHeNCXcoJh54K9l9gEim6q6gAKYiV2ZdZOfTLaiE9wZZBWR7DMeZHIAysc7OMf3NQpwc/s320/perlin_4.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; line-height: 16px;&quot;&gt;Here&#39;s the output (&lt;i&gt;also used as the new backgroud for this blog&lt;/i&gt;):&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqxeQjyQwYf8d6EHoaE_bpfTOApMNf7GfX-v_RfY0T9w8Pl3yliM1ldNEbwRPjw3Ft_TJJnMsyM8GDNvFZQDNJgiwHrKfz3ak0Rk_TVuoYQN3RDe-nmlllvQwkpk5rJXEEYuAyG7IVxzI/s1600/perlin_sum.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqxeQjyQwYf8d6EHoaE_bpfTOApMNf7GfX-v_RfY0T9w8Pl3yliM1ldNEbwRPjw3Ft_TJJnMsyM8GDNvFZQDNJgiwHrKfz3ak0Rk_TVuoYQN3RDe-nmlllvQwkpk5rJXEEYuAyG7IVxzI/s320/perlin_sum.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;line-height: 16px;&quot;&gt;Note that each octave is different, which is different to Perlin noises. But if we wanted, we could have used the exact approach described by Perlin.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;line-height: 16px;&quot;&gt;In future post, I&#39;ll give more detail about the method used to create these textures. All images are tileable. Eventually, a GPU version of this framework should be implemented. Either as a fragment shader or on CUDA/OpenCL.&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/4848863801542287891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2012/04/new-results.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/4848863801542287891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/4848863801542287891'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2012/04/new-results.html' title='New results'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY9QYwrYBDPiakg1CIaDx4xxj-kKZcjX07WmMiP1lg_sAS8Kew9o4k44vvjT352dkAG5byIer1-L19WhF-zTI_lAZXAXhgo2xSV2lcoOkYtrOTWoSMCpJAEBJTC89zJqSV0aCEVScD-k8/s72-c/perlin_1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-5562945643458674004</id><published>2012-04-18T16:46:00.001-04:00</published><updated>2012-04-18T16:46:08.869-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fragment shader"/><category scheme="http://www.blogger.com/atom/ns#" term="GLSL"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenCL"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenGL ES"/><category scheme="http://www.blogger.com/atom/ns#" term="WebCL"/><category scheme="http://www.blogger.com/atom/ns#" term="webgl"/><title type='text'>Shader Toy</title><content type='html'>&lt;span style=&quot;font-family: inherit;&quot;&gt;I know it&#39;s been a while since I posted something, and I will post some new results soon.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;If you&#39;re interested to play with the fragment shader in WebGL, here&#39;s a wonderful link:&amp;nbsp;&lt;a href=&quot;http://www.iquilezles.org/apps/shadertoy/&quot;&gt;Shader Toy&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Plus, the Khronos Group is working on&amp;nbsp;&lt;span style=&quot;background-color: white; color: #222222; line-height: 19px; text-align: left;&quot;&gt;to define a JavaScript binding to the Khronos OpenCL with&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.khronos.org/webcl/&quot;&gt;WebCL&lt;/a&gt;, which is a very good thing.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/5562945643458674004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2012/04/shader-toy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/5562945643458674004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/5562945643458674004'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2012/04/shader-toy.html' title='Shader Toy'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-5098468806416275173</id><published>2011-11-08T20:07:00.000-05:00</published><updated>2011-11-08T20:07:30.359-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cellular"/><category scheme="http://www.blogger.com/atom/ns#" term="cellular texturing"/><category scheme="http://www.blogger.com/atom/ns#" term="marble"/><category scheme="http://www.blogger.com/atom/ns#" term="procedural texturing"/><category scheme="http://www.blogger.com/atom/ns#" term="rock"/><category scheme="http://www.blogger.com/atom/ns#" term="stone"/><category scheme="http://www.blogger.com/atom/ns#" term="texture"/><title type='text'>Rocks, Marbles, Stones, ...</title><content type='html'>Still working on Hierarchy, and the outputs a getting better and better. Our next step is to create a mini-GUI, nothing fancy, but with enough functionality, to do some points placement by hand to see if we can reproduce some interesting patterns.&lt;br /&gt;
&lt;br /&gt;
In the mean time, the other part of our research is about algorithms to place these points (&lt;i&gt;and other related information&lt;/i&gt;) to create automatically some interesting textures. We are now looking to do some rocky textures, like marble. Mostly the marble tiles. We are particularly interested in the veins that you can observe on those tile that create such complex textures.&lt;br /&gt;
&lt;br /&gt;
And we have a big challenge with those veins because our tool is mostly about cellular textures and veins are rarely in the form of cells. Our approach is to actually play with veins that are completely traverse the texture, this way, we can create cells and division on the plane.&lt;br /&gt;
&lt;br /&gt;
But still, we managed to produce some interesting outputs:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJdXF0378B37vIi0EBGa_zfeRJyfLgz0P7n6WLAcRgb7xp2Fk2NC0iD5gLarpQVkbc6RIaViyapwlUmUNZ4qIcQc5rY8LpERnowQlBZ78oso7Dvq3SkJQFrChk7eQFmxa8TqbefwwshAg/s1600/rock_16.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJdXF0378B37vIi0EBGa_zfeRJyfLgz0P7n6WLAcRgb7xp2Fk2NC0iD5gLarpQVkbc6RIaViyapwlUmUNZ4qIcQc5rY8LpERnowQlBZ78oso7Dvq3SkJQFrChk7eQFmxa8TqbefwwshAg/s320/rock_16.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3jPmuUZ1bn7au-CYNlEhdxhA4ut161fNSOlM1bPxmX62zNUx5xIvJFfr512_-_qy4U_n81CQ3bstGfSGylxPja7TTveXy5g9_zNk-DGocYb5nbCIDKrIerTjASqFiHR5ssIgIwPhIFg0/s1600/rock_17.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3jPmuUZ1bn7au-CYNlEhdxhA4ut161fNSOlM1bPxmX62zNUx5xIvJFfr512_-_qy4U_n81CQ3bstGfSGylxPja7TTveXy5g9_zNk-DGocYb5nbCIDKrIerTjASqFiHR5ssIgIwPhIFg0/s320/rock_17.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzzQi2fJl6gu98MPRpTP_fYP5M1nQzukb-Gh8moT9EXolkdEtcv8Ex2jguUv5Jd0ha67bXrioRNKMttHxA9iFN5S5fx533GZ4Qu9cwaTiXW4eMfCpwhJJbZPZo36H87f0GLkK3YdkXR94/s1600/rock_18.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzzQi2fJl6gu98MPRpTP_fYP5M1nQzukb-Gh8moT9EXolkdEtcv8Ex2jguUv5Jd0ha67bXrioRNKMttHxA9iFN5S5fx533GZ4Qu9cwaTiXW4eMfCpwhJJbZPZo36H87f0GLkK3YdkXR94/s320/rock_18.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaWDSMlkUg5LtjuS33MhBLV4ykbGE0TXA8bMOye5M8JmdeVOI8aYwVABjCqR30-2ABaKBcolJvjeTe1opVt7UNpFpXEbyeIVN984GTRzQYY7gDUS9YrNPX67JFOYgJv6InyDFnG49uDsM/s1600/rock_19.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaWDSMlkUg5LtjuS33MhBLV4ykbGE0TXA8bMOye5M8JmdeVOI8aYwVABjCqR30-2ABaKBcolJvjeTe1opVt7UNpFpXEbyeIVN984GTRzQYY7gDUS9YrNPX67JFOYgJv6InyDFnG49uDsM/s320/rock_19.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe9tkkn19WkvYudxRYR2mjW-HV-N1qs-KiZRhrUYub6nIebYuPLwJKedjR9TXOjOs4ad6-Pn9D_DDO0EEcpYK5BbV24Dl3vadpcqTxoOw3qXrRv47tcmH2dWoiXsD5n4c89CGHjYl2rHc/s1600/rock_20.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe9tkkn19WkvYudxRYR2mjW-HV-N1qs-KiZRhrUYub6nIebYuPLwJKedjR9TXOjOs4ad6-Pn9D_DDO0EEcpYK5BbV24Dl3vadpcqTxoOw3qXrRv47tcmH2dWoiXsD5n4c89CGHjYl2rHc/s320/rock_20.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBPNuJT8Y4UeImTW_hbJgezxCetAZXSkhxWUYZ5Hmx-m0fCivFAoM9WpOFiX9Tj5NUp0v4JY_TTorGv3moyNB9d2ob_xCehVQAGXV_peY0UUYQMRunwgqAmwncUN6GmUhSUbh4a9WpcEo/s1600/rock_21.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBPNuJT8Y4UeImTW_hbJgezxCetAZXSkhxWUYZ5Hmx-m0fCivFAoM9WpOFiX9Tj5NUp0v4JY_TTorGv3moyNB9d2ob_xCehVQAGXV_peY0UUYQMRunwgqAmwncUN6GmUhSUbh4a9WpcEo/s320/rock_21.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZjgdypZp3gTr38PPv0H3FkDed8NUjT5vupgzvgNuW8a1aabk8huC0b2sAfUMItXhA-SS8R3npXiv5I7hxR-Tyutvv2VSqTXT44UfVlsDxCtOIXzPw4XpKRfSbNeEPXgVrAREAAPAa4dU/s1600/rock_23.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZjgdypZp3gTr38PPv0H3FkDed8NUjT5vupgzvgNuW8a1aabk8huC0b2sAfUMItXhA-SS8R3npXiv5I7hxR-Tyutvv2VSqTXT44UfVlsDxCtOIXzPw4XpKRfSbNeEPXgVrAREAAPAa4dU/s320/rock_23.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieaU013lJDHZhNFCeZrxffBL8quFKJl9cZL1ZzluS3r9br9UcgGW3FOT6vlOno1IiCrt76DEpBSJfltvNYJdLPJfGY315p-pSk8gmrlpMVk-FGiR6OV4MXIAeY5MDo9Xrke4MXwC5Eehw/s1600/rock_24.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieaU013lJDHZhNFCeZrxffBL8quFKJl9cZL1ZzluS3r9br9UcgGW3FOT6vlOno1IiCrt76DEpBSJfltvNYJdLPJfGY315p-pSk8gmrlpMVk-FGiR6OV4MXIAeY5MDo9Xrke4MXwC5Eehw/s320/rock_24.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiii8LNu9N6jAwZEPwnJI6H6vrXFinIS_GneBjoh34wz2-sfdXXoWLBOj6z_VTePodEpKQSUmGL3FRNZsRKdyfBO1gz9n7MQCsvVONrIrzy6p3m2CIgOB2aBgV5cq9aQEfo-cWCDXMqx3Y/s1600/rock_25.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiii8LNu9N6jAwZEPwnJI6H6vrXFinIS_GneBjoh34wz2-sfdXXoWLBOj6z_VTePodEpKQSUmGL3FRNZsRKdyfBO1gz9n7MQCsvVONrIrzy6p3m2CIgOB2aBgV5cq9aQEfo-cWCDXMqx3Y/s320/rock_25.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlJhMB8INryQBA9J_T1RUFxEtszlZ6mmNxQwfGkPUd5BsBkzMUS2j0_EiXK6RfoSM3dAF8h8-4fB9pvzzsXfV3Aqub-q1iH3Zfwfg6Sa1jJNa_SjmBMgX52qoCUO01Gan4MzJGUCrKX-s/s1600/rock_26.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlJhMB8INryQBA9J_T1RUFxEtszlZ6mmNxQwfGkPUd5BsBkzMUS2j0_EiXK6RfoSM3dAF8h8-4fB9pvzzsXfV3Aqub-q1iH3Zfwfg6Sa1jJNa_SjmBMgX52qoCUO01Gan4MzJGUCrKX-s/s320/rock_26.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Let me know what you think about those images!</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/5098468806416275173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/11/rocks-marbles-stones.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/5098468806416275173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/5098468806416275173'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/11/rocks-marbles-stones.html' title='Rocks, Marbles, Stones, ...'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJdXF0378B37vIi0EBGa_zfeRJyfLgz0P7n6WLAcRgb7xp2Fk2NC0iD5gLarpQVkbc6RIaViyapwlUmUNZ4qIcQc5rY8LpERnowQlBZ78oso7Dvq3SkJQFrChk7eQFmxa8TqbefwwshAg/s72-c/rock_16.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-2410375427302643521</id><published>2011-11-07T12:58:00.000-05:00</published><updated>2011-11-07T12:58:51.404-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jokes"/><category scheme="http://www.blogger.com/atom/ns#" term="quotes"/><category scheme="http://www.blogger.com/atom/ns#" term="research"/><category scheme="http://www.blogger.com/atom/ns#" term="thoughts"/><category scheme="http://www.blogger.com/atom/ns#" term="twitter"/><title type='text'>Twitter account</title><content type='html'>Here&#39;s my twitter account:&amp;nbsp;&lt;a href=&quot;http://twitter.com/#!/widgg&quot;&gt;@widgg&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
I usually tweet about funny stuffs like jokes and just thoughts that I have and want to share. Not necessary related to my research. But naturally, when there&#39;s a new post on this blog, I share the link.&lt;br /&gt;
&lt;br /&gt;
It&#39;s actually the best way to contact me if you have any question or suggestion... or just want to talk about geek, research or any funny stuff.</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/2410375427302643521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/11/twitter-account.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/2410375427302643521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/2410375427302643521'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/11/twitter-account.html' title='Twitter account'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-3644086160631890385</id><published>2011-11-06T21:23:00.001-05:00</published><updated>2011-11-06T21:23:59.797-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="caustic"/><category scheme="http://www.blogger.com/atom/ns#" term="caustics"/><category scheme="http://www.blogger.com/atom/ns#" term="new renderer"/><category scheme="http://www.blogger.com/atom/ns#" term="point distribution"/><category scheme="http://www.blogger.com/atom/ns#" term="rendering"/><category scheme="http://www.blogger.com/atom/ns#" term="Weird Voronoi"/><category scheme="http://www.blogger.com/atom/ns#" term="Weird Voronoi Pro"/><title type='text'>Caustics</title><content type='html'>Here&#39;s another result. Here, we are trying to create some caustics, those reflection that you can see at the bottom of a pool caused by the sunlight and the surface of the water. We already have very nice outputs that can be achieved simply by distributing points and orientations. We used a poisson-disk sampling for the points.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s some of the outputs:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLyXR-9afflXSBe2pmJUpNpBDv4sEc47fsvWbFVtz5A00s0KFq1y0UnI78v4vlB6LXJ0iWkLSCX3UFUht6NiZyt2SBpo83MLc5CGy3RzsGJtJphwhDYNatUD-mSVouyn9AKOan_2WUNEg/s1600/caustic_00.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLyXR-9afflXSBe2pmJUpNpBDv4sEc47fsvWbFVtz5A00s0KFq1y0UnI78v4vlB6LXJ0iWkLSCX3UFUht6NiZyt2SBpo83MLc5CGy3RzsGJtJphwhDYNatUD-mSVouyn9AKOan_2WUNEg/s320/caustic_00.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1mJgcdsjbNpHYViZbXQ-tsx1aT-K2zpeYmTWWVkHWfL4IGRukhyphenhyphenQLu0ZzlwakyoOe3BFHv8RmJX8U0ADGzsV75qX9r6xwBpF-c4uRz2crG7NY3EhEZkYENNiaePzM77ph1MU8R7D222I/s1600/caustic_01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1mJgcdsjbNpHYViZbXQ-tsx1aT-K2zpeYmTWWVkHWfL4IGRukhyphenhyphenQLu0ZzlwakyoOe3BFHv8RmJX8U0ADGzsV75qX9r6xwBpF-c4uRz2crG7NY3EhEZkYENNiaePzM77ph1MU8R7D222I/s320/caustic_01.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPL9qzArmrogBtSSNVbhM99bReA46BBL9DPCMsNzWvtMl6aZqLP_XzwOzD4uWnZbpEHwfFirsvqcQR91uhOgaO48UQGZQQZeyHVQjtiulJYo4LH8xD0qJIhE-lTP942aTWG10cIcWER28/s1600/caustic_03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPL9qzArmrogBtSSNVbhM99bReA46BBL9DPCMsNzWvtMl6aZqLP_XzwOzD4uWnZbpEHwfFirsvqcQR91uhOgaO48UQGZQQZeyHVQjtiulJYo4LH8xD0qJIhE-lTP942aTWG10cIcWER28/s320/caustic_03.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6raHnNtNDPicmWF4usgH-4LttepgjcpUmOh-1URLv2kJhGGK_bTV76WWWvjbpvNZuwhXxgtPPU93JtUX_bEqXL_9k9mHxgR7r08gucEJw9toU0LKhiCG4BdAgaXrS5bJiRyIYIV72Hy4/s1600/caustic_04.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6raHnNtNDPicmWF4usgH-4LttepgjcpUmOh-1URLv2kJhGGK_bTV76WWWvjbpvNZuwhXxgtPPU93JtUX_bEqXL_9k9mHxgR7r08gucEJw9toU0LKhiCG4BdAgaXrS5bJiRyIYIV72Hy4/s320/caustic_04.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Like this, it doesn&#39;t seam very useful or look like caustics. But these kind of images can be used to add information on a surface. One trick is to use an image like this and a texture, for example the bottom of the pool, and when it&#39;s time to draw them, for each pixel, you compare the color on the caustic image and on the texture and you take the highest value for the red, green and blue. This way, you can alter a simple texture with and image like this.&lt;br /&gt;
&lt;br /&gt;
Plus, the method that we use can be converted into an animation very easily. All you need to do is to move around the points and their orientations a little bit at each frame. This way, you have a fluid animation that will never loop on itself.&lt;br /&gt;
&lt;br /&gt;
Actually, there&#39;s already something that you can use to see a caustic effect. My live-wallpaper,&amp;nbsp;&lt;a href=&quot;http://widgg-research.blogspot.com/2011/07/weird-voronoi-pro.html&quot;&gt;Weird Voronoi Pro&lt;/a&gt;, that I presented here a few months ago can produce an animation like this that won&#39;t loop. My favorite configuration (that I show &lt;a href=&quot;http://widgg-research.blogspot.com/2011/07/weird-voronoi-pro-news-and-possible.html&quot;&gt;here&lt;/a&gt;) creates a simple caustics with a little variation of intensity.</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/3644086160631890385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/11/caustics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/3644086160631890385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/3644086160631890385'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/11/caustics.html' title='Caustics'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLyXR-9afflXSBe2pmJUpNpBDv4sEc47fsvWbFVtz5A00s0KFq1y0UnI78v4vlB6LXJ0iWkLSCX3UFUht6NiZyt2SBpo83MLc5CGy3RzsGJtJphwhDYNatUD-mSVouyn9AKOan_2WUNEg/s72-c/caustic_00.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-1979589126768912130</id><published>2011-11-04T18:34:00.000-04:00</published><updated>2011-11-04T18:34:53.582-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="clouds"/><category scheme="http://www.blogger.com/atom/ns#" term="cuda"/><category scheme="http://www.blogger.com/atom/ns#" term="GPGPU"/><category scheme="http://www.blogger.com/atom/ns#" term="GPU"/><category scheme="http://www.blogger.com/atom/ns#" term="layers"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenCL"/><category scheme="http://www.blogger.com/atom/ns#" term="point distribution"/><category scheme="http://www.blogger.com/atom/ns#" term="poisson disk sampling"/><category scheme="http://www.blogger.com/atom/ns#" term="procedural texturing"/><category scheme="http://www.blogger.com/atom/ns#" term="smoke texture"/><category scheme="http://www.blogger.com/atom/ns#" term="texture"/><title type='text'>My clouds are so fluffy, you&#39;re gonna die!</title><content type='html'>Today I&#39;m showing some cloud textures that I managed to create with a simple algorithm using a Poisson-disk sampling process to distribute some points. What is nice with this process to distribute point is that it&#39;s very portable and efficient. It can even be done in parallel on the GPU (&lt;i&gt;with CUDA or OpenCL&lt;/i&gt;), this paper actually shows one way to do it: &lt;a href=&quot;http://www.google.ca/url?sa=t&amp;amp;rct=j&amp;amp;q=efficient%20maximal%20poisson-disk%20sampling&amp;amp;source=web&amp;amp;cd=1&amp;amp;ved=0CCEQFjAA&amp;amp;url=http%3A%2F%2Fwww.idav.ucdavis.edu%2Ffunc%2Freturn_pdf%3Fpub_id%3D1057&amp;amp;ei=52a0TrrwOoGC2AXR6djMDQ&amp;amp;usg=AFQjCNH1vjeAQP-K9B3iseaTWzrOieiXpw&amp;amp;sig2=PSl5xtwtw_pcjUZST6Qg_Q&quot;&gt;Efficient Maximal Poisson-disk Sampling&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
The rendering process for now is done completely on the CPU because we are still in a phase where we need to be able to add, change or remove some part quite fast to adjust the renderer to our needs. It&#39;s a bit harder to do that on the GPU. But when we will be completely sure of the product that we want, we will adapt it to the GPU, probably with OpenCL for portability reasons.&lt;br /&gt;
&lt;br /&gt;
So here some of these outputs:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAIoi83opd9TYUWtX61jdtJoWJT1iuPVEuWf7RfSyIT89qUyipdiMBk1aPYniyEoT6mmxfNh0WJqNH2SLoxkKnUnBvvboOI-jMM1mzq2QPR1p5BpL8nJsuoI-Bllh7_PNpQqZDtgEIYvg/s1600/cloud_12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAIoi83opd9TYUWtX61jdtJoWJT1iuPVEuWf7RfSyIT89qUyipdiMBk1aPYniyEoT6mmxfNh0WJqNH2SLoxkKnUnBvvboOI-jMM1mzq2QPR1p5BpL8nJsuoI-Bllh7_PNpQqZDtgEIYvg/s320/cloud_12.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwdpjaevHq417spyOpKRd7dQj_5LRdzhUFqlnfAayewFy-KVtMGI0xOuApSnRJ3095bBxVuib72Vwx-EOz3aTxXDdOuve3oTHLzXn5KiUdSQOlDzHZv7jtPJO-C0_i9W4Uo0nAkmxxLeE/s1600/cloud_13.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwdpjaevHq417spyOpKRd7dQj_5LRdzhUFqlnfAayewFy-KVtMGI0xOuApSnRJ3095bBxVuib72Vwx-EOz3aTxXDdOuve3oTHLzXn5KiUdSQOlDzHZv7jtPJO-C0_i9W4Uo0nAkmxxLeE/s320/cloud_13.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcrQv6OiQfO-XE5TTbC3FTe0tSV_5Y9nC0JhXRgN1aC-p83CS4COHPRLvPcjKk5Ug4w-3WMcc1Vm5gu3AimVoelwlDescv1ChNE-bPwZkCJdNxjZ6GXLYF-uQ75B0gka9K5-dMECgx_Xw/s1600/cloud_14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcrQv6OiQfO-XE5TTbC3FTe0tSV_5Y9nC0JhXRgN1aC-p83CS4COHPRLvPcjKk5Ug4w-3WMcc1Vm5gu3AimVoelwlDescv1ChNE-bPwZkCJdNxjZ6GXLYF-uQ75B0gka9K5-dMECgx_Xw/s320/cloud_14.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWBqm2uW6-I-1Cxek3i6xqdTmRpDdFyNdSotvQsoGamhUB8dPPoBprw9SYOo7NVxhQgoho2xPaTsVQPqe85lm9ddMpYVW0lnVRP4FyVlS37WwyWqLt-Tl1exdMHBkkKnP51-TG8xZXsxI/s1600/cloud_15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWBqm2uW6-I-1Cxek3i6xqdTmRpDdFyNdSotvQsoGamhUB8dPPoBprw9SYOo7NVxhQgoho2xPaTsVQPqe85lm9ddMpYVW0lnVRP4FyVlS37WwyWqLt-Tl1exdMHBkkKnP51-TG8xZXsxI/s320/cloud_15.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmmeMHUIf9jh8HHpbF9aDrsW0S8QGCb9I2FJvi111cU6uFFZkGmn6gkZauAAbmMZc936aoqumscbyDl6-6PC-JpcXGhN3pu54svMdP2UmK-DWkON-Kh3GAV3xHMDgQHzpNAkaDiFCk6mI/s1600/cloud_19.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmmeMHUIf9jh8HHpbF9aDrsW0S8QGCb9I2FJvi111cU6uFFZkGmn6gkZauAAbmMZc936aoqumscbyDl6-6PC-JpcXGhN3pu54svMdP2UmK-DWkON-Kh3GAV3xHMDgQHzpNAkaDiFCk6mI/s320/cloud_19.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8NN7Z0IBztygS1FqcxgVB3tobCgdE_UDSaWZgjNwoBFWzhLafurv-6_Bx8irK1U7Y0mF7WBhYC1auC-i341uCKdN7czjm8ENmTAoBAQneW00aHqnd6bD0EhoHdiIXSsPtQEtzI3hKHlo/s1600/cloud_20.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8NN7Z0IBztygS1FqcxgVB3tobCgdE_UDSaWZgjNwoBFWzhLafurv-6_Bx8irK1U7Y0mF7WBhYC1auC-i341uCKdN7czjm8ENmTAoBAQneW00aHqnd6bD0EhoHdiIXSsPtQEtzI3hKHlo/s320/cloud_20.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
There&#39;s still a little bit of work to do to remove some isolated points that we can see in some images. I might have some idea to solve this, just need to implement it. So, let me know what you think about those images.</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/1979589126768912130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/11/my-clouds-are-so-fluffy-youre-gonna-die.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/1979589126768912130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/1979589126768912130'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/11/my-clouds-are-so-fluffy-youre-gonna-die.html' title='My clouds are so fluffy, you&#39;re gonna die!'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAIoi83opd9TYUWtX61jdtJoWJT1iuPVEuWf7RfSyIT89qUyipdiMBk1aPYniyEoT6mmxfNh0WJqNH2SLoxkKnUnBvvboOI-jMM1mzq2QPR1p5BpL8nJsuoI-Bllh7_PNpQqZDtgEIYvg/s72-c/cloud_12.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-3718002639250044009</id><published>2011-10-30T22:43:00.000-04:00</published><updated>2011-10-30T22:43:22.965-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cluster"/><category scheme="http://www.blogger.com/atom/ns#" term="point distribution"/><category scheme="http://www.blogger.com/atom/ns#" term="poisson disk sampling"/><category scheme="http://www.blogger.com/atom/ns#" term="procedural texturing"/><category scheme="http://www.blogger.com/atom/ns#" term="texture"/><title type='text'>Point Distribution</title><content type='html'>News from my research. Right now, we have a very good tool to create textures. But because we are not artists, we have to develop algorithms that use that tool to create textures automatically. To create textures with our tool, we have to place points and orientations on the plane, therefore, the main purpose of our algorithms is to place these points.&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;To create interesting textures, we have to find methods to place the points. One of the most popular method consists of selecting a minimal distance &lt;i&gt;d&lt;/i&gt; and then, for each new potential point, test with the previous point if the minimal distance is at least &lt;i&gt;d&lt;/i&gt;. If it is, the point is added to the set, otherwise, it&#39;s rejected. To determine how this process terminates, you can either put a maximal number of points or a maximal number of&amp;nbsp;consecutive&amp;nbsp;failure. For more information, you can take a look at&amp;nbsp;&lt;a href=&quot;http://devmag.org.za/2009/05/03/poisson-disk-sampling/&quot;&gt;Poisson Disk Sampling&lt;/a&gt;&amp;nbsp;for more information and for the description of a more efficient algorithm to produce the point set.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;But, while investigating those process, we noticed that our tool, with the points and orientations, can be used to determined the distance between two points. We use the orientation to create different distance functions and the minimal distance is considered according to these functions. So, we end up sometimes with pair of points closer than the minimal distance, but not according to the distance function.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Here&#39;s some point distribution with the orientation parallel to the z-axis. In this case, it creates a point distribution similar to the Poisson Disk Sampling described above.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEift0jkXlOD8amlPj9dwGIGsYSH5ulpKGyFFn0xvacwTsOUlxfDJPIdk_rhR1U2u51uyuCorElAsW4GgsGkRe9vZ7x0e4tDt9C_DHEnkRd-k5OQ2XEgHExlfz4bKxFNp134x3QUq8DNqyc/s1600/dist_up_173.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEift0jkXlOD8amlPj9dwGIGsYSH5ulpKGyFFn0xvacwTsOUlxfDJPIdk_rhR1U2u51uyuCorElAsW4GgsGkRe9vZ7x0e4tDt9C_DHEnkRd-k5OQ2XEgHExlfz4bKxFNp134x3QUq8DNqyc/s320/dist_up_173.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvs6oZDFSMgzLJRwbJuZuZKTM33FrnzZgsErA8TVnHaRgKnfYSkmmLYVcgvQ23O8qMAW-4jLqeceuovJnGgOBVtsnC7TgD_PoI9jWSDfTWxW40bLMtcmzE2653Uek-HnkTPhi92drwrFQ/s1600/dist_up_186.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvs6oZDFSMgzLJRwbJuZuZKTM33FrnzZgsErA8TVnHaRgKnfYSkmmLYVcgvQ23O8qMAW-4jLqeceuovJnGgOBVtsnC7TgD_PoI9jWSDfTWxW40bLMtcmzE2653Uek-HnkTPhi92drwrFQ/s320/dist_up_186.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;But, if we start changing the orientations randomly, we have point distributions that are much less regular:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikzzk1WVBIw9-eoOh0KyIyBxSFnWkXMlRiNXktAEaxHMn5j1rLQo0MqUEQ469EjscJItrPJIw1FwSV343OfjfEEd9huMVBFEN7apnnJC_ksJsl1MBNY9u-gbasGMngoy_bD7UKGJk8ew8/s1600/dist_rd_115.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikzzk1WVBIw9-eoOh0KyIyBxSFnWkXMlRiNXktAEaxHMn5j1rLQo0MqUEQ469EjscJItrPJIw1FwSV343OfjfEEd9huMVBFEN7apnnJC_ksJsl1MBNY9u-gbasGMngoy_bD7UKGJk8ew8/s320/dist_rd_115.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIaaCG8qWtIZpP_t6A7wpWTs-gcWWUUor8gO-F-L8rI1z4hUqNlZv9k4I0CeIKKtCmTl8SLorD7hfoj3ZsXjdddElmJWDBudXjh7Rt88NwJ1CsQ41MLetn_UtSk18Jtfs03jc4ZiCWVvs/s1600/dist_rd_124.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIaaCG8qWtIZpP_t6A7wpWTs-gcWWUUor8gO-F-L8rI1z4hUqNlZv9k4I0CeIKKtCmTl8SLorD7hfoj3ZsXjdddElmJWDBudXjh7Rt88NwJ1CsQ41MLetn_UtSk18Jtfs03jc4ZiCWVvs/s320/dist_rd_124.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;With this method, we can see that creating a random night sky is not that difficult.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;It&#39;s also possible to manage point distribution with clusters. A basic method to do clusters is first to place clusters centers, just like distributing points (&lt;i&gt;by choosing an orientation and a distance function&lt;/i&gt;), but without any minimal distance (&lt;i&gt;but it&#39;s possible to have one&lt;/i&gt;). Then, for each point that you want to add to the point set, you first look for the closest center. Just like before, you test that new point with all the previous points already in the point set. If the point can be added, you assign a minimal distance to that point using the distance between that point and its center. The minimal distance can be the distance itself, but for better result, you can use the square or the square root of that distance.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Here&#39;s some result of cluster point distribution:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipIXsX8P7kRDM5nwMez6Zg3e-65QIlryubMNGe5K_w4qOAN3fDRfbc-imi9DDaAaoOehW4ar5LGXVk-vcix9cDlAqrWy_hysGvrEwqgGdsUSzUiqYEMYGG56wW3vb8MbSoH3loFIcPR7I/s1600/cluster_12ct_511pt_0.5_rand_ctp.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipIXsX8P7kRDM5nwMez6Zg3e-65QIlryubMNGe5K_w4qOAN3fDRfbc-imi9DDaAaoOehW4ar5LGXVk-vcix9cDlAqrWy_hysGvrEwqgGdsUSzUiqYEMYGG56wW3vb8MbSoH3loFIcPR7I/s320/cluster_12ct_511pt_0.5_rand_ctp.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhidzOuH4TVxN8aeYbafdUmj-RkPiJpN5tiH1WV52k5kkokeZtxrNWqiaPWT70jSFd4mm-JWolNLtvAkseN6W-sZ0gv4ItgTrdjXzytXUYTUF_22lgeZyukXjJVXKeyeNYnIfozxZOMCEk/s1600/cluster_12ct_1125pt_0.5_rand_ctp.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhidzOuH4TVxN8aeYbafdUmj-RkPiJpN5tiH1WV52k5kkokeZtxrNWqiaPWT70jSFd4mm-JWolNLtvAkseN6W-sZ0gv4ItgTrdjXzytXUYTUF_22lgeZyukXjJVXKeyeNYnIfozxZOMCEk/s320/cluster_12ct_1125pt_0.5_rand_ctp.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGkq1ABtHVK-O_L1fNZwwxExdi4fEaSn0l6OXGi9qMKSYn0VftycpAjDPjetQ3mY17IYfIBCQlhd-5ze1kGNXAJlJEw2XUQujjOG1ni7g3s5qFIFKiSgqwzt9kPUF-wJcTlEkPwINygPs/s1600/cluster_d1_d2_01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGkq1ABtHVK-O_L1fNZwwxExdi4fEaSn0l6OXGi9qMKSYn0VftycpAjDPjetQ3mY17IYfIBCQlhd-5ze1kGNXAJlJEw2XUQujjOG1ni7g3s5qFIFKiSgqwzt9kPUF-wJcTlEkPwINygPs/s320/cluster_d1_d2_01.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN74cJdUAzCH9VZSxVPqqzfztbjyi0fdRrRNXSBn8HVG-Oxrjxsb35rcy2qUrjyUT3PNxr_1G2KzsWI0puA2e6kDDyyy_2N3r0wQAiv6wMetCPopHLq9PtRkeo_FD_rsumF_QGgkLSv0I/s1600/cluster_to_center_03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN74cJdUAzCH9VZSxVPqqzfztbjyi0fdRrRNXSBn8HVG-Oxrjxsb35rcy2qUrjyUT3PNxr_1G2KzsWI0puA2e6kDDyyy_2N3r0wQAiv6wMetCPopHLq9PtRkeo_FD_rsumF_QGgkLSv0I/s320/cluster_to_center_03.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7Mf-myUANYp1cULcUhyphenhyphen4Kh9Uleb2hnQYNUQfI4pSWbfh9F63G57ew7cOqsWUCFhoziyF5grsgFwkmcr3d3VuCe_EbqXlBVWPBbBBkxiK-FxY_tT6l-fAcVAUnRcRyuUPSoaaZPr4KkGQ/s1600/cluster_to_center_05.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7Mf-myUANYp1cULcUhyphenhyphen4Kh9Uleb2hnQYNUQfI4pSWbfh9F63G57ew7cOqsWUCFhoziyF5grsgFwkmcr3d3VuCe_EbqXlBVWPBbBBkxiK-FxY_tT6l-fAcVAUnRcRyuUPSoaaZPr4KkGQ/s320/cluster_to_center_05.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;So now that we have methods to distribute points that also use our tool, we are now able to generate textures. We plan to first use these point distribution to create textures such as caustics, clouds and random abstract images.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/3718002639250044009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/10/point-distribution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/3718002639250044009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/3718002639250044009'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/10/point-distribution.html' title='Point Distribution'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEift0jkXlOD8amlPj9dwGIGsYSH5ulpKGyFFn0xvacwTsOUlxfDJPIdk_rhR1U2u51uyuCorElAsW4GgsGkRe9vZ7x0e4tDt9C_DHEnkRd-k5OQ2XEgHExlfz4bKxFNp134x3QUq8DNqyc/s72-c/dist_up_173.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-2811281627503347749</id><published>2011-10-29T13:19:00.000-04:00</published><updated>2011-10-29T13:19:31.068-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="google docs"/><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><title type='text'>Learn to code | Codecademy</title><content type='html'>Today&#39;s post is about a website I planned to talk about, bu totally forgot! It&#39;s called&amp;nbsp;&lt;a href=&quot;http://www.codecademy.com/&quot;&gt;Codecademy&lt;/a&gt;&amp;nbsp;and it&#39;s actually a very nice tutorial to teach kids, from 7 to 77, how to handle basic principles in source code.&lt;br /&gt;
&lt;br /&gt;
It shows how to code in Javascript. And in the last years, mostly with HTML5, Javascript is getting even more important. And there&#39;s a rule on the Internet about Javascript: If something can be done in Javascript, eventually, someone will do it. And it&#39;s actually true. Just take a look at Google Docs. Also, by choosing Javascript, you don&#39;t have to think about compilers or on which OS you are. You can jump directly in the fun part.&lt;br /&gt;
&lt;br /&gt;
The tutorial starts by asking your name and you just have to write it as a string like &lt;i&gt;&quot;Widgg&quot;&lt;/i&gt;. Then, gradually, you are introduce to various concepts like variables, conditions, loops and so on. The only problem that I had with the tutorial is that the syntax in Javascript requires semicolons at the end of each statement, but that was not explicitly mentioned in the tutorial. Or I just did not find it.&lt;br /&gt;
&lt;br /&gt;
I did that tutorial a while ago, so maybe they corrected it. But even with that small problem, it&#39;s actually a really good starts for anyone who want to start programming or are just curious.</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/2811281627503347749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/10/learn-to-code-codecademy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/2811281627503347749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/2811281627503347749'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/10/learn-to-code-codecademy.html' title='Learn to code | Codecademy'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-5141377937164910496</id><published>2011-10-13T22:40:00.000-04:00</published><updated>2011-10-13T22:40:03.754-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Alan Turing"/><category scheme="http://www.blogger.com/atom/ns#" term="Cantor"/><category scheme="http://www.blogger.com/atom/ns#" term="Chaitin machine"/><category scheme="http://www.blogger.com/atom/ns#" term="Church-Turing thesis"/><category scheme="http://www.blogger.com/atom/ns#" term="Complexity"/><category scheme="http://www.blogger.com/atom/ns#" term="Computability"/><category scheme="http://www.blogger.com/atom/ns#" term="decision problem"/><category scheme="http://www.blogger.com/atom/ns#" term="Halting Problem"/><category scheme="http://www.blogger.com/atom/ns#" term="Miguel-Angel Martin-Delgado"/><category scheme="http://www.blogger.com/atom/ns#" term="NP-complete"/><category scheme="http://www.blogger.com/atom/ns#" term="NP-hard"/><category scheme="http://www.blogger.com/atom/ns#" term="P vs. NP"/><category scheme="http://www.blogger.com/atom/ns#" term="Turing Machine"/><title type='text'>Paper Review: Alan Turing and the Origins of Complexity</title><content type='html'>It&#39;s the first time I&#39;m doing a post like this one. I don&#39;t really know how to approach this paper review or even if it should be considered a paper review. So, first here&#39;s the basic information about that paper.&lt;br /&gt;
&lt;br /&gt;
Abstract:&lt;br /&gt;
&lt;blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, helvetica, arial, verdana, sans-serif; font-size: 14px; line-height: 19px;&quot;&gt;The 75th anniversary of Turing&#39;s seminal paper and his centennial year anniversary occur in 2011 and 2012, respectively. It is natural to review and assess Turing&#39;s contributions in diverse fields in the light of new developments that his thoughts has triggered in many scientific communities. Here, the main idea is to discuss how the work of Turing allows us to change our views on the foundations of Mathematics, much like quantum mechanics changed our conception of the world of Physics. Basic notions like computability and universality are discussed in a broad context, making special emphasis on how the notion of complexity can be given a precise meaning after Turing, i.e., not just qualitative but also quantitative. Turing&#39;s work is given some historical perspective with respect to some of his precursors, contemporaries and mathematicians who took up his ideas farther.&lt;/span&gt;&lt;/blockquote&gt;Author:&lt;br /&gt;
&lt;blockquote&gt;&lt;a href=&quot;http://www.ucm.es/info/giccucm/PersonalMAMD/index.htm&quot;&gt;Dr. Miguel Angel Martín-Delgado&lt;/a&gt;&lt;/blockquote&gt;Link:&lt;br /&gt;
&lt;blockquote&gt;&lt;a href=&quot;http://arxiv.org/abs/1110.0271&quot;&gt;Alan Turing and the Origins of Complexity&lt;/a&gt;&lt;/blockquote&gt;I decided to talk about that paper because it&#39;s about the work of a great man, Alan Turing, without whom, the world would be so different, at so many levels that it&#39;s hard to understand the impact he had. As mention in the abstract, he gave us a better understanding of complicated Mathematical concepts. In WWII, he helped breaking the naval Enigma&amp;nbsp;machine used by Nazis to communicate.&lt;br /&gt;
&lt;br /&gt;
But the main reason that I decided to write a post about this paper is that it covers subjects that most computer scientists should be aware of. It doesn&#39;t matter if the proofs are not understood, but it&#39;s very important to get the foundation of computer science and to know what are the limitations of computers. Even if you already know this material, it&#39;s always good to read it again. Particularly if it&#39;s been a while.&lt;br /&gt;
&lt;br /&gt;
First, Alan Turing introduce what he called the &quot;a-machine&quot; for automatic machine. That machine is now called a Turing machine. To know what a Turing machine is, take a look at this video:&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/E3keLeMwfHY&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
It might be hard to understand, but a machine like this can reproduce everything a computer can do. Here, we&#39;re not talking about speed, but the capacity to compute the same result. The most important Turing machine is a Universal Turing machine, i.e. a machine that can simulate any other Turing machine. Such a machine requires two inputs: a program and input data. Then the machine follow the instruction of the program, according to the input data, and produce an output.&lt;br /&gt;
&lt;br /&gt;
This is exactly like a computer. You have the hardware (&lt;i&gt;the machine&lt;/i&gt;), when it starts, it loads an operating system (&lt;i&gt;the program&lt;/i&gt;) and you start typing on your keyboard, moving the mouse, receiving data from an internet connection (&lt;i&gt;the input data&lt;/i&gt;). And in exchange, you get outputs in the form of images shown on your screen, data sent to a server or a document printed (&lt;i&gt;an output&lt;/i&gt;).&lt;br /&gt;
&lt;br /&gt;
Turing also showed the limitation of his machine. For example, that machine would not be able to compute the square root of two because the computation would never stop. If the machine cannot stop, it&#39;s considered non-computable. But, if we put a limit to the computation such as a maximum number of decimals, then it&#39;s computable because the machine will know when it&#39;s done.&lt;br /&gt;
&lt;br /&gt;
Then, if something can be computed, how hard is it to compute it ? How much time and how much space ? Time, so given an input of size N, how much steps a Turing machine will need to solve it. Space, how much place on the tape (&lt;i&gt;see the video above&lt;/i&gt;) is needed. On a Turing machine, the tape is considered as &quot;infinite&quot; but in practice, computers don&#39;t have infinite space and it takes time to do any operations. The paper covers the common complexity classes and problems related to these, specially the well know &lt;b&gt;P vs. NP&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
The paper also talk about the famous &lt;b&gt;Halting Problem&lt;/b&gt;, i.e. there&#39;s no way to find whether a computer will eventually halt. A proof of the Halting Problem is given in the paper by using Cantor&#39;s diagonal method. That method can be used to show that even if there&#39;s an infinite number of natural numbers &lt;b&gt;N&lt;/b&gt;, the cardinality (&lt;i&gt;the size&lt;/i&gt;) of the set of real numbers &lt;b&gt;R&lt;/b&gt;&amp;nbsp;is greater than the cardinality of &lt;b&gt;N&lt;/b&gt;. A concept that is weird the first time you read about it (&lt;i&gt;I remember how surprised I was when I saw a proof for that&lt;/i&gt;) but very important to understand the foundation of Mathematics.&lt;br /&gt;
&lt;br /&gt;
Have fun reading this paper!</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/5141377937164910496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/10/paper-review-alan-turing-and-origins-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/5141377937164910496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/5141377937164910496'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/10/paper-review-alan-turing-and-origins-of.html' title='Paper Review: Alan Turing and the Origins of Complexity'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/E3keLeMwfHY/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-8520803823763759240</id><published>2011-10-05T11:04:00.000-04:00</published><updated>2011-10-05T11:04:20.637-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="background"/><category scheme="http://www.blogger.com/atom/ns#" term="new renderer"/><category scheme="http://www.blogger.com/atom/ns#" term="rendering"/><category scheme="http://www.blogger.com/atom/ns#" term="smoke"/><category scheme="http://www.blogger.com/atom/ns#" term="smoke texture"/><title type='text'>more smoke</title><content type='html'>So, yesterday I presented some smoke textures that I created. I continued to work on it and after altering some values, I managed to create some new interesting smoke textures. These textures look cleaner than those made yesterday. I made sure that the background would be closer to black and it helps to see the curves made by the smoke.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s some of these outputs:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiMJAnnwHUsltW0BtT3tert_Ja4Oh91f7ADEdXZCky4to2c1YV3qx1UGUy3B6srZH2P3j7gSWH5TPLqH11f1q6gepJUo1Lx6DeJNBFRTmIynW6RFAP5rsXV3fC0Gdyu2SiT118Rykfd88/s1600/black_smoke_02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiMJAnnwHUsltW0BtT3tert_Ja4Oh91f7ADEdXZCky4to2c1YV3qx1UGUy3B6srZH2P3j7gSWH5TPLqH11f1q6gepJUo1Lx6DeJNBFRTmIynW6RFAP5rsXV3fC0Gdyu2SiT118Rykfd88/s320/black_smoke_02.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9wHBBQ9MEdixsYfSrL8QZRItuFtF5YVnHVe4bKdkmXyrhLD8jskPHZpno1KnYDLHcuHpQm1tGpgzkvFaYmCeoD_o-5hXQrTW1e-uUOq0DiGLINAS5eP6ZFTIB3_CcHg8P5jgc3xjamEI/s1600/black_smoke_04.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9wHBBQ9MEdixsYfSrL8QZRItuFtF5YVnHVe4bKdkmXyrhLD8jskPHZpno1KnYDLHcuHpQm1tGpgzkvFaYmCeoD_o-5hXQrTW1e-uUOq0DiGLINAS5eP6ZFTIB3_CcHg8P5jgc3xjamEI/s320/black_smoke_04.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz8TikGljcSO9ru-2hNn4cIohBR6pQKpBXro3-weirOicjN-PJc4ms-BR6juwC_ZAcGzo8oUZoUKworU2skuXiAAr1v_RuEr27UZxY7tMDYySBt6xyzMhIK_9VNWonXrJNUGAw2I2nBp0/s1600/black_smoke_06.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz8TikGljcSO9ru-2hNn4cIohBR6pQKpBXro3-weirOicjN-PJc4ms-BR6juwC_ZAcGzo8oUZoUKworU2skuXiAAr1v_RuEr27UZxY7tMDYySBt6xyzMhIK_9VNWonXrJNUGAw2I2nBp0/s320/black_smoke_06.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgERUc_giDgGn8rTbHhohVo2-KC8e6fGN8nLOMoRcVvkmZx_CgpmKWMoJoOlgAZwVoIONvqeRykwOlKjNt1Axl2HyD-4Q6HuZvk-DRLQ_X2p8I6svnY77Q8ZVPX744gVW8ReP1Tji35m4o/s1600/black_smoke_07.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgERUc_giDgGn8rTbHhohVo2-KC8e6fGN8nLOMoRcVvkmZx_CgpmKWMoJoOlgAZwVoIONvqeRykwOlKjNt1Axl2HyD-4Q6HuZvk-DRLQ_X2p8I6svnY77Q8ZVPX744gVW8ReP1Tji35m4o/s320/black_smoke_07.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgakmdrOJjSpCNxgxrGaPPZWPI2lVYMBqgQqkBWSm3p1Bl5VwkOdKmL4PY0kfSK56ryXHOTxoZXLw_-Eos879MisAGFGjrs8xU4JHSE9X7VSxpDEzIW_3ZxAUJ6SjIzQB91D6mKifEyRH4/s1600/black_smoke_09.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgakmdrOJjSpCNxgxrGaPPZWPI2lVYMBqgQqkBWSm3p1Bl5VwkOdKmL4PY0kfSK56ryXHOTxoZXLw_-Eos879MisAGFGjrs8xU4JHSE9X7VSxpDEzIW_3ZxAUJ6SjIzQB91D6mKifEyRH4/s320/black_smoke_09.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEgEaFTjQPd5-aeHG_grRudD0kMIb4iAXq6wsaCw6KO7SlaNhOZ4Ep8z136ctzxDCVrmmlpe-H3RboDHmAg-KOfjpVXrNFpp5DvsD5u4pIW9PuN_1e-_yZtbMxMleJ-xEfaSB0gB7keuo/s1600/black_smoke_10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEgEaFTjQPd5-aeHG_grRudD0kMIb4iAXq6wsaCw6KO7SlaNhOZ4Ep8z136ctzxDCVrmmlpe-H3RboDHmAg-KOfjpVXrNFpp5DvsD5u4pIW9PuN_1e-_yZtbMxMleJ-xEfaSB0gB7keuo/s320/black_smoke_10.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTl6fBcrZXsB-j568wh5jnYoVgoTDAfKa8ItjuOxYIXmjJ7Pe6fj5vOx04ZRBLqML6dF-IMDa6c-Huq4rgieK8IqXz2qMe2YPyfEcK0FfT93l4Q0IomPtpl36C_AWvWvXmo5-AB5OWWT4/s1600/black_smoke_13.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTl6fBcrZXsB-j568wh5jnYoVgoTDAfKa8ItjuOxYIXmjJ7Pe6fj5vOx04ZRBLqML6dF-IMDa6c-Huq4rgieK8IqXz2qMe2YPyfEcK0FfT93l4Q0IomPtpl36C_AWvWvXmo5-AB5OWWT4/s320/black_smoke_13.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgupgYbYfjEyUBH0rhXfv3_hIQoOnNCY6IQC-3V_jpsNuYiGrUzPTnUafEmJBq-Jqe1Je9_3UJOaSQap29pBeEap34oFTMjbfiKIbeO0NCMqxV0AI8gmcs7-cw_5tAbB72xtdV5eRIQpM4/s1600/black_smoke_17_add.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgupgYbYfjEyUBH0rhXfv3_hIQoOnNCY6IQC-3V_jpsNuYiGrUzPTnUafEmJBq-Jqe1Je9_3UJOaSQap29pBeEap34oFTMjbfiKIbeO0NCMqxV0AI8gmcs7-cw_5tAbB72xtdV5eRIQpM4/s320/black_smoke_17_add.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
When the process would be easier to control, with well defined functions to distribute the points, I will be able to generate as much smoke textures as I want. Might put a package of a hundred of them on Renderosity.</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/8520803823763759240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/10/more-smoke.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/8520803823763759240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/8520803823763759240'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/10/more-smoke.html' title='more smoke'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiMJAnnwHUsltW0BtT3tert_Ja4Oh91f7ADEdXZCky4to2c1YV3qx1UGUy3B6srZH2P3j7gSWH5TPLqH11f1q6gepJUo1Lx6DeJNBFRTmIynW6RFAP5rsXV3fC0Gdyu2SiT118Rykfd88/s72-c/black_smoke_02.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-8605156792938451981</id><published>2011-10-04T21:43:00.000-04:00</published><updated>2011-10-04T21:43:06.453-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gray scale"/><category scheme="http://www.blogger.com/atom/ns#" term="hierarchy"/><category scheme="http://www.blogger.com/atom/ns#" term="layer"/><category scheme="http://www.blogger.com/atom/ns#" term="smoke"/><category scheme="http://www.blogger.com/atom/ns#" term="smoke art"/><title type='text'>smoke textures</title><content type='html'>Back on creating textures. First, I finished the first version of that new renderer. Might still have some bug, but in general, it&#39;s done.&lt;br /&gt;
&lt;br /&gt;
One of the objectives that we had with this new tool that we created was to create some smoke. A bit similar to this one:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://smokingstories.files.wordpress.com/2008/09/abstract-color-smoke-art.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;216&quot; src=&quot;http://smokingstories.files.wordpress.com/2008/09/abstract-color-smoke-art.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
The picture above is called Smoke Art, so creating images using smoke. This one is not generated by any computer. Other Smoke Art are listed there:&amp;nbsp;&lt;a href=&quot;http://www.bablotech.com/2008/12/14/20-amazing-smoke-art-pictures/&quot;&gt;http://www.bablotech.com/2008/12/14/20-amazing-smoke-art-pictures/&lt;/a&gt;, and some of them are really amazing.&lt;br /&gt;
&lt;br /&gt;
With our new method, we try to reproduce such piece of art, but completely random. We don&#39;t try to recreate a scene or anything. Just create random smoke effects.&lt;br /&gt;
&lt;br /&gt;
There&#39;s many ways to do such images, the most popular is probably with particles. You use thousands or millions of points and let them behave like smoke. But this approach is heavy to run and it&#39;s mostly for animation. For static images like ours, it&#39;s not very interesting to manage that amount of points to finally find the right image.&lt;br /&gt;
&lt;br /&gt;
Our method still consists of placing points and some information of associated with points on the plane to partition it. We are still using the layers to create the effects and it works really well with smoke. So here&#39;s some of my favorite that I created today:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhehlJBUNCvxfslnPrJEE9stONm2tDhveTBIWQLr9ALM7nihCL2YT3bjtvFNWJCdF3nefzwStr_BnzwVvH4yS2TDt5utZ4JgnUmWdDGGTWHs6_LLIWa0GmVQgAwp9OrVu9Va9WhOgMbW5E/s1600/smoke_13_bet.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhehlJBUNCvxfslnPrJEE9stONm2tDhveTBIWQLr9ALM7nihCL2YT3bjtvFNWJCdF3nefzwStr_BnzwVvH4yS2TDt5utZ4JgnUmWdDGGTWHs6_LLIWa0GmVQgAwp9OrVu9Va9WhOgMbW5E/s320/smoke_13_bet.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAIv9b8HmnLes8Cm9mgjW5BCmCo6v9rNJgvasf-TlgZf__-PJTLjhEJ5cOtJmydy4YuIE8sf8EgvU-QR2nVnujCAVIcPEvg_qhQmL6qvO3dL3JJ3-kuEjRZZMNl-jjMw_K1LYMS3mpNH0/s1600/smoke_16_3g.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAIv9b8HmnLes8Cm9mgjW5BCmCo6v9rNJgvasf-TlgZf__-PJTLjhEJ5cOtJmydy4YuIE8sf8EgvU-QR2nVnujCAVIcPEvg_qhQmL6qvO3dL3JJ3-kuEjRZZMNl-jjMw_K1LYMS3mpNH0/s320/smoke_16_3g.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmRwiMUHkp-yvDu1r4zyqPvcpZ2ghOLid2KFzcxSk4Fe4Vo4YPIOdGaYDjQbNdRcV3yTvD9SJWuDVXhOMg6K4q1PwkV2HfwOzRXq2EAkpNRUBDM-LyrwyFwUoy9nGhUa8g6g85s2zW1eQ/s1600/smoke_17_3g.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmRwiMUHkp-yvDu1r4zyqPvcpZ2ghOLid2KFzcxSk4Fe4Vo4YPIOdGaYDjQbNdRcV3yTvD9SJWuDVXhOMg6K4q1PwkV2HfwOzRXq2EAkpNRUBDM-LyrwyFwUoy9nGhUa8g6g85s2zW1eQ/s320/smoke_17_3g.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsJtwyaPj5XH8hfjqPqSIIYmw46rtmLx1m-XPo9_0jw-kZl77vapOtfSzrNKZuq_nmjyvboo3QwAvKlU4PCmKDOv9YLqB4mepiit8oM9ApRKmORWAYu5ctu_B4W01K4NCdABZ72BQc6NM/s1600/smoke_18_3g.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsJtwyaPj5XH8hfjqPqSIIYmw46rtmLx1m-XPo9_0jw-kZl77vapOtfSzrNKZuq_nmjyvboo3QwAvKlU4PCmKDOv9YLqB4mepiit8oM9ApRKmORWAYu5ctu_B4W01K4NCdABZ72BQc6NM/s320/smoke_18_3g.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGk8g9HEtYhV4Iiz2mAqR3s-Fafn53gjGPMc_9S_bxXqiPJZY3m6IeQigu_mI_YKfiagsT-kqtFCyFrzRPJlTOoMwT6_543nMVblQJEXeTen8s9Bx00fMxtPL-UmchZSlX8nmEWA2gdB8/s1600/smoke_19_3g.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGk8g9HEtYhV4Iiz2mAqR3s-Fafn53gjGPMc_9S_bxXqiPJZY3m6IeQigu_mI_YKfiagsT-kqtFCyFrzRPJlTOoMwT6_543nMVblQJEXeTen8s9Bx00fMxtPL-UmchZSlX8nmEWA2gdB8/s320/smoke_19_3g.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCl4Yd4B3_14HkZt6SapZUxMv8oTyq6Q2eRK8MSz9C_r_HtGOtFqgLXLkJuLEqgbHEJJk2JiSzgXyQyoHZq7dBBkKhByvN3VeRj9kcDGIVq6GD0cfNwpLbiWmSlsLDUaYJCTTx5JopL9I/s1600/smoke_23_3g.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCl4Yd4B3_14HkZt6SapZUxMv8oTyq6Q2eRK8MSz9C_r_HtGOtFqgLXLkJuLEqgbHEJJk2JiSzgXyQyoHZq7dBBkKhByvN3VeRj9kcDGIVq6GD0cfNwpLbiWmSlsLDUaYJCTTx5JopL9I/s320/smoke_23_3g.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFrTsUhM_3aOC7FchTy_J_CnAKwHS3QwwKqQ0zbWjzyt9iIRfxtrRQ3bw-MvTquXtyy1q7l_jdXCBI5YKW_WmHXQxgBk8ccalo_IIdXVoPlTF_055ABsJ09ott_0lkHOocPoGxnIeEcI4/s1600/smoke_26_3g_o.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFrTsUhM_3aOC7FchTy_J_CnAKwHS3QwwKqQ0zbWjzyt9iIRfxtrRQ3bw-MvTquXtyy1q7l_jdXCBI5YKW_WmHXQxgBk8ccalo_IIdXVoPlTF_055ABsJ09ott_0lkHOocPoGxnIeEcI4/s320/smoke_26_3g_o.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyOON-hmgiVtMZtSk2SF1LE_6w1K-_jRvMmpJMpAzYh512cqYtKKvpUaJzAL6t6eYHv2fz81R9tEpRxZsjDMIddwD6iEwUYRCCQfPWqhl5ym5db_AIinEKZBGcGytPu7kCENOdYa8YBIA/s1600/smoke_27_3g_o.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyOON-hmgiVtMZtSk2SF1LE_6w1K-_jRvMmpJMpAzYh512cqYtKKvpUaJzAL6t6eYHv2fz81R9tEpRxZsjDMIddwD6iEwUYRCCQfPWqhl5ym5db_AIinEKZBGcGytPu7kCENOdYa8YBIA/s320/smoke_27_3g_o.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_Zl2KH16SIlnmpcrW9VLFYV5H8p_Ba_XjSj95yVku0s_gUq8WtQCV3TP2S47BogBlSSjyGrBHbpevFMVZXA5YR8pXj50xQm0JXG-b6cMS9AaKF2Uzl73s1DLHWuFYHZIitXtex4gbsAw/s1600/smoke_29_3g_xy.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_Zl2KH16SIlnmpcrW9VLFYV5H8p_Ba_XjSj95yVku0s_gUq8WtQCV3TP2S47BogBlSSjyGrBHbpevFMVZXA5YR8pXj50xQm0JXG-b6cMS9AaKF2Uzl73s1DLHWuFYHZIitXtex4gbsAw/s320/smoke_29_3g_xy.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyakneV-QpomLdCY2VGp_IBlOo7b4Pg24JCi0164LslYe0lMC4XsoQ-VsUSY2ExS5dB-XbZYDjasLZLzBihjbT4VD_1mA_hVef5VuBAi8dDW2ifDzqAP_AgoGVEwgyiygIs098tyhnxe0/s1600/smoke_30_3g_xy.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyakneV-QpomLdCY2VGp_IBlOo7b4Pg24JCi0164LslYe0lMC4XsoQ-VsUSY2ExS5dB-XbZYDjasLZLzBihjbT4VD_1mA_hVef5VuBAi8dDW2ifDzqAP_AgoGVEwgyiygIs098tyhnxe0/s320/smoke_30_3g_xy.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjqw5xpCE-MNPgBPn5LUUopOiZDQhHLth4VJejSL_Qh0PbDkVO9OJCdUFaiZI-Ot_xt1ZRnmqjQ7dZ_wRj355cX9PPWbScFDA4N_puCTrAON_ozYwkup5NdzP9zplIU0HhB2i6X2JeFcc/s1600/smoke_32_3g_xya.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjqw5xpCE-MNPgBPn5LUUopOiZDQhHLth4VJejSL_Qh0PbDkVO9OJCdUFaiZI-Ot_xt1ZRnmqjQ7dZ_wRj355cX9PPWbScFDA4N_puCTrAON_ozYwkup5NdzP9zplIU0HhB2i6X2JeFcc/s320/smoke_32_3g_xya.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgUL77sjSwyGiW7DBH5bukNouIDu-ml9FMaUon_M-02izhjbWXtOjWkTY9kE9YLbgERZ7w4H_k3b-s-_3nqJc8aEMHOOsqF8t3oHUeIoIydoPqvBFU_7ALPYQn0CY97aU8QfdDRDSHNHI/s1600/smoke_33_3g_xya.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgUL77sjSwyGiW7DBH5bukNouIDu-ml9FMaUon_M-02izhjbWXtOjWkTY9kE9YLbgERZ7w4H_k3b-s-_3nqJc8aEMHOOsqF8t3oHUeIoIydoPqvBFU_7ALPYQn0CY97aU8QfdDRDSHNHI/s320/smoke_33_3g_xya.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZyU7-jpnL5n0C2pcBXD2nABnGABIhocwOmzObf7R_AnNTc_VXi6zCKl_1ZLgQ1OvCnDhDRszQS9Mf8rUs7la2UesidbyRV511V6xcoz0xMncwqb04F6j2iEmSYN21BKhAgChSWcHXkDc/s1600/smoke_34_3g_xya.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZyU7-jpnL5n0C2pcBXD2nABnGABIhocwOmzObf7R_AnNTc_VXi6zCKl_1ZLgQ1OvCnDhDRszQS9Mf8rUs7la2UesidbyRV511V6xcoz0xMncwqb04F6j2iEmSYN21BKhAgChSWcHXkDc/s320/smoke_34_3g_xya.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimgpdkSlpnPmOp24QMoyXHvdfQZlNiIgQCKo9edb66ioeCE13wtc-IgjE_wOPxK73Ii2YEYIo6WF9Sci5UfiHXLeQbhNF_6ZY1Sp5-w4LcxCrzDXQYBPwM6d6WdIzcOY84bu5JSYuBnqk/s1600/smoke_37_3g_xya.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimgpdkSlpnPmOp24QMoyXHvdfQZlNiIgQCKo9edb66ioeCE13wtc-IgjE_wOPxK73Ii2YEYIo6WF9Sci5UfiHXLeQbhNF_6ZY1Sp5-w4LcxCrzDXQYBPwM6d6WdIzcOY84bu5JSYuBnqk/s320/smoke_37_3g_xya.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;We still have some work to do to really control that new technique. And also some experimentation to be sure that the behavior is more stable. One thing that we might try is adding a bit of color to it instead of working in gray. But not drastic colors like red or green. Little variation from gray, but enough to see that there&#39;s more.&lt;br /&gt;
&lt;br /&gt;
Please leave any comment or question that you have about these textures.</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/8605156792938451981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/10/smoke-textures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/8605156792938451981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/8605156792938451981'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/10/smoke-textures.html' title='smoke textures'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhehlJBUNCvxfslnPrJEE9stONm2tDhveTBIWQLr9ALM7nihCL2YT3bjtvFNWJCdF3nefzwStr_BnzwVvH4yS2TDt5utZ4JgnUmWdDGGTWHs6_LLIWa0GmVQgAwp9OrVu9Va9WhOgMbW5E/s72-c/smoke_13_bet.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-1694045452758938850</id><published>2011-09-30T14:57:00.000-04:00</published><updated>2011-09-30T14:57:12.392-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="new logo"/><title type='text'>Changed my profil logo...</title><content type='html'>... just for the fun of doing it.&lt;br /&gt;
&lt;br /&gt;
I had an idea last night about a simple drawing:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj63EdXRg5bvdMIH6aaocfF5ydBaR39cbg2sbVxPz_dkUrTkUSJiLARyrjd6wY6hLoE8_MEQqrNMm-MZmJhJtptQO7ar9BhZBcPW-6w63khEuPP_MQojc5XTbsELGG-bIIyykx6m6shG8Y/s1600/circ_over_diameter.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj63EdXRg5bvdMIH6aaocfF5ydBaR39cbg2sbVxPz_dkUrTkUSJiLARyrjd6wY6hLoE8_MEQqrNMm-MZmJhJtptQO7ar9BhZBcPW-6w63khEuPP_MQojc5XTbsELGG-bIIyykx6m6shG8Y/s320/circ_over_diameter.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
But hey... it&#39;s very simple and it includes a bit my passion for mathematics without being that obvious... but I don&#39;t think it&#39;s very complicated to understand! And more important... it&#39;s better than just my nickname written in green :)</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/1694045452758938850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/09/changed-my-profil-logo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/1694045452758938850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/1694045452758938850'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/09/changed-my-profil-logo.html' title='Changed my profil logo...'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj63EdXRg5bvdMIH6aaocfF5ydBaR39cbg2sbVxPz_dkUrTkUSJiLARyrjd6wY6hLoE8_MEQqrNMm-MZmJhJtptQO7ar9BhZBcPW-6w63khEuPP_MQojc5XTbsELGG-bIIyykx6m6shG8Y/s72-c/circ_over_diameter.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-3945607637945280366</id><published>2011-09-30T01:21:00.002-04:00</published><updated>2011-09-30T01:42:13.166-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="C++ to CUDA"/><category scheme="http://www.blogger.com/atom/ns#" term="C++ to OpenCL"/><category scheme="http://www.blogger.com/atom/ns#" term="classes"/><category scheme="http://www.blogger.com/atom/ns#" term="cuda"/><category scheme="http://www.blogger.com/atom/ns#" term="function pointers"/><category scheme="http://www.blogger.com/atom/ns#" term="GPGPU"/><category scheme="http://www.blogger.com/atom/ns#" term="GPU"/><category scheme="http://www.blogger.com/atom/ns#" term="inheritance"/><category scheme="http://www.blogger.com/atom/ns#" term="Khronos"/><category scheme="http://www.blogger.com/atom/ns#" term="new renderer"/><category scheme="http://www.blogger.com/atom/ns#" term="nvidia"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenCL"/><category scheme="http://www.blogger.com/atom/ns#" term="polymorphism"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="switch statement"/><category scheme="http://www.blogger.com/atom/ns#" term="virtual functions"/><title type='text'>research news</title><content type='html'>I don&#39;t have new stuff to show right now, but I&#39;ve been busy in the last week. I&#39;m currently implementing a more dynamic version of my renderer. CUDA is very nice, but when you need to add quickly new modules or do some rapid&amp;nbsp;tweaks, it&#39;s not the best solution.&amp;nbsp;So, for now the plan is to render to have a slower renderer that would be easier to change and adapt. When we&#39;re sure of the features that we really want to keep and we&#39;ll know the full limitation of our system, an implementation in CUDA would be possible.&lt;br /&gt;
&lt;br /&gt;
One of the reason to change the renderer is that I needed some C++ features like virtual functions, which is very useful for designing rapidly a new system. I think there&#39;s some language that allows to create virtual function in CUDA or OpenCL by simply adding some hidden piece of code.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;If it doesn&#39;t exist, here&#39;s how I&#39;d do it:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
First, in CUDA, there&#39;s no function pointers. But if we take a look at how polymorphism works, it&#39;s really just a way to&amp;nbsp;disguise procedural code. Actually, the whole object oriented programming scheme is just a way to disguise procedural code by hiding some information to the programmer so (s)he doesn&#39;t have to worry about it. Just like many other languages do (&lt;i&gt;Java is the most popular about that one because it hides a lot of security features like buffer overflows done during the execution to avoid major problems&lt;/i&gt;).&lt;br /&gt;
&lt;br /&gt;
So, if we have:&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;class&lt;/b&gt; A&lt;br /&gt;
{&lt;br /&gt;
&lt;b&gt;private&lt;/b&gt;:&lt;br /&gt;
&amp;nbsp; &lt;b&gt;int&lt;/b&gt; value;&lt;br /&gt;
&lt;b&gt;public&lt;/b&gt;:&lt;br /&gt;
&amp;nbsp; A(&lt;b&gt;void&lt;/b&gt;);&lt;br /&gt;
&amp;nbsp; &lt;b&gt;virtual&lt;/b&gt; ~A&lt;b&gt;(void&lt;/b&gt;);&lt;br /&gt;
&amp;nbsp; &lt;b&gt;virtual void&lt;/b&gt; test(T param1, U param2);&lt;br /&gt;
};&lt;/blockquote&gt;Then this piece of code is actually converted into something that look basically like this:&lt;br /&gt;
&lt;blockquote&gt;&lt;i&gt;// prototypes&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;struct&lt;/b&gt; class_A;&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_A_constructor(&lt;b&gt;struct&lt;/b&gt; class_A *&lt;b&gt;this&lt;/b&gt;);&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_A_destructor(&lt;b&gt;struct&lt;/b&gt; class_A *&lt;b&gt;this&lt;/b&gt;);&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_A_test(&lt;b&gt;struct&lt;/b&gt; class_A *&lt;b&gt;this&lt;/b&gt;, T param1, U param2);&lt;br /&gt;
&lt;b&gt;struct&lt;/b&gt; class_A_virtual_table&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &lt;b&gt;void&lt;/b&gt; (*class_A_destructor)(&lt;b&gt;struct &lt;/b&gt;class_A *&lt;b&gt;this&lt;/b&gt;);&lt;br /&gt;
&amp;nbsp; &lt;b&gt;void&lt;/b&gt; (*class_A_test)(&lt;b&gt;struct &lt;/b&gt;class_A *&lt;b&gt;this&lt;/b&gt;, T param1, U param2);&lt;br /&gt;
};&lt;br /&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;i&gt;// create a single instance of the virtual table and assign the values for the function pointers&lt;/i&gt;&lt;b&gt;struct&lt;/b&gt; class_A_virtual_table class_A_virtual_table_only_instance_needed =&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;__class_A_destructor,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;__class_A_test&lt;br /&gt;
};&lt;br /&gt;
&lt;b&gt;struct&lt;/b&gt; class_A&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; class_A_virtual_table *VT;&lt;br /&gt;
&amp;nbsp; &lt;b&gt;int&lt;/b&gt; value;&lt;br /&gt;
};&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_A_constructor(&lt;b&gt;struct&lt;/b&gt; class_A *&lt;b&gt;this&lt;/b&gt;)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;b&gt;this&lt;/b&gt;-&amp;gt;value = 0; &lt;i&gt;// or some other default value&lt;/i&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;b&gt;this&lt;/b&gt;-&amp;gt;VT = &amp;amp;class_A_virtual_table_only_instance_needed;&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_A_destructor(&lt;b&gt;struct&lt;/b&gt; class_A *&lt;b&gt;this&lt;/b&gt;)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &lt;i&gt;// stuff to destroy&lt;/i&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_A_test(struct class_A *&lt;b&gt;this&lt;/b&gt;, T param1, U param2)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; // stuff to test&lt;br /&gt;
}&lt;br /&gt;
// virtual functions&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; virtual_class_A_destructor(&lt;b&gt;struct&lt;/b&gt; class_A *&lt;b&gt;this&lt;/b&gt;)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;b&gt;this&lt;/b&gt;-&amp;gt;VT.class_A_destructor(&lt;b&gt;this&lt;/b&gt;);&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; virtual_class_A_test(&lt;b&gt;struct &lt;/b&gt;class_A*&lt;b&gt;this&lt;/b&gt;, T param1, U param2)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;b&gt;this&lt;/b&gt;-&amp;gt;VT.class_A_test(&lt;b&gt;this&lt;/b&gt;, param1, param2);&lt;br /&gt;
}&lt;/blockquote&gt;And then, with a subclass B, we have:&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;class&lt;/b&gt; B:&lt;b&gt; public&lt;/b&gt; A&lt;br /&gt;
{&lt;br /&gt;
&lt;b&gt;private&lt;/b&gt;:&lt;br /&gt;
&amp;nbsp;&lt;b&gt; double&lt;/b&gt; value;&lt;br /&gt;
&lt;b&gt;public&lt;/b&gt;:&lt;br /&gt;
&amp;nbsp; B(&lt;b&gt;void&lt;/b&gt;);&lt;br /&gt;
&amp;nbsp; ~B(&lt;b&gt;void&lt;/b&gt;);&lt;br /&gt;
&amp;nbsp; &lt;b&gt;void&lt;/b&gt; test(T param1, U param2); &amp;nbsp;&lt;i&gt;// version of test but for class B&lt;/i&gt;&lt;br /&gt;
&amp;nbsp;&lt;b&gt; void&lt;/b&gt; function_in_B(&lt;b&gt;void&lt;/b&gt;);&lt;br /&gt;
};&amp;nbsp;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;b&gt;int&lt;/b&gt; main(&lt;b&gt;void&lt;/b&gt;)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; B b;&lt;br /&gt;
&amp;nbsp; A *a = &amp;amp;b;&lt;br /&gt;
&amp;nbsp; a-&amp;gt;test(1, 2); &amp;nbsp;&lt;i&gt;// let way that type T and U are integers..&lt;/i&gt;.&lt;br /&gt;
&amp;nbsp; b.function_in_B();&lt;br /&gt;
}&lt;/blockquote&gt;Then, all of this become:&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;struct&lt;/b&gt; class_B&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &lt;b&gt;struct&lt;/b&gt; class_A super;&lt;br /&gt;
&amp;nbsp; &lt;b&gt;double&lt;/b&gt; value;&lt;br /&gt;
};&lt;br /&gt;
&lt;i&gt;// prototypes for class B&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_B_constructor(&lt;b&gt;struct&lt;/b&gt; class_B *&lt;b&gt;this&lt;/b&gt;);&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_B_destructor(&lt;b&gt;struct&lt;/b&gt; class_B *&lt;b&gt;this&lt;/b&gt;);&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_B_test(&lt;b&gt;struct&lt;/b&gt; class_B *&lt;b&gt;this&lt;/b&gt;, T param1, U param2);&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_B_function_in_B(&lt;b&gt;struct&lt;/b&gt; class_B *&lt;b&gt;this&lt;/b&gt;);&lt;br /&gt;
&lt;i&gt;// virtual table for B, with the virtual functions for B&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;struct&lt;/b&gt; class_A_virtual_table class_B_virtual_table_only_instance_needed =&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;__class_B_destructor,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;__class_B_test&lt;br /&gt;
};&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_B_constructor(struct class_B *&lt;b&gt;this&lt;/b&gt;)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; __class_B_constructor(&amp;amp;(&lt;b&gt;this&lt;/b&gt;-&amp;gt;super));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;b&gt;this&lt;/b&gt;-&amp;gt;VT = &amp;amp;class_B_virtual_table_only_instance_needed; &lt;i&gt;&amp;nbsp;// replace the virtual table&lt;/i&gt;&lt;br /&gt;
&amp;nbsp; &lt;b&gt;this&lt;/b&gt;-&amp;gt;value = 0.0; &lt;i&gt;// or some other default value&lt;/i&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_B_destructor(&lt;b&gt;struct&lt;/b&gt; class_B *&lt;b&gt;this&lt;/b&gt;)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&lt;i&gt; // stuff to destroy in B&lt;/i&gt;&lt;br /&gt;
&amp;nbsp; __class_A_destructor(&amp;amp;(&lt;b&gt;this&lt;/b&gt;-&amp;gt;super)); &amp;nbsp;&lt;i&gt;// then, destroy the stuff in the parent&lt;/i&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_B_test(&lt;b&gt;struct&lt;/b&gt; class_B *&lt;b&gt;this&lt;/b&gt;, T param1, U param2)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &lt;i&gt;// stuff to test, but for B&lt;/i&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_B_function_in_B(&lt;b&gt;struct&lt;/b&gt; class_B *&lt;b&gt;this&lt;/b&gt;)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &lt;i&gt;// whatever that function does!&lt;/i&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;int&lt;/b&gt; main(&lt;b&gt;void&lt;/b&gt;)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &lt;b&gt;struct&lt;/b&gt; class_B b;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;__class_B_constructor(&amp;amp;b);&lt;br /&gt;
&amp;nbsp; struct class_A *a = &amp;amp;(b.super); &amp;nbsp;&lt;i&gt;// the address of the parent in struct class_B&lt;/i&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;virtual_class_A_test(a, 1, 2);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;__class_B_function_in_B(&amp;amp;b)&lt;b&gt;;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;__class_B_destructor(&amp;amp;b);&lt;br /&gt;
}&lt;/blockquote&gt;So, as you can see, polymorphism is using function pointers to create the illusion that the right function is called each time.&lt;br /&gt;
&lt;br /&gt;
But, without any function pointers, we need to recreate that illusion. So, one way that can be done in CUDA/OpenCL, is to add a unique ID for each class. And each instance of that class will have that ID assigned in the constructor. So:&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;enum&lt;/b&gt; CLASS_IDS { CLASS_A_ID, CLASS_B_ID, ..., CLASS_X_ID };&lt;br /&gt;
&lt;b&gt;struct&lt;/b&gt; class_A&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&lt;b&gt; int&lt;/b&gt; ID;&lt;br /&gt;
&amp;nbsp; &lt;b&gt;int&lt;/b&gt; value;&lt;br /&gt;
};&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_A_constructor(&lt;b&gt;struct&lt;/b&gt; class_A *&lt;b&gt;this&lt;/b&gt;)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &lt;b&gt;this&lt;/b&gt;-&amp;gt;ID = CLASS_A_ID;&lt;br /&gt;
&amp;nbsp;&lt;b&gt;&amp;nbsp;this&lt;/b&gt;-&amp;gt;value = 0; // or some other default value&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;struct&lt;/b&gt; class_B&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &lt;b&gt;struct&lt;/b&gt; class_A super;&lt;br /&gt;
&amp;nbsp; &lt;b&gt;double&lt;/b&gt; value;&lt;br /&gt;
};&lt;br /&gt;
&lt;b&gt;void&lt;/b&gt; __class_B_constructor(&lt;b&gt;struct&lt;/b&gt; class_B *&lt;b&gt;this&lt;/b&gt;)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;__class_A_constructor(&amp;amp;(&lt;b&gt;this&lt;/b&gt;-&amp;gt;super)); &amp;nbsp;&lt;i&gt;// always call the parent constructor first!&lt;/i&gt;&lt;br /&gt;
&amp;nbsp; &lt;b&gt;this&lt;/b&gt;-&amp;gt;ID = CLASS_B_ID; &amp;nbsp;&lt;i&gt;// overwrite the ID&lt;/i&gt;&lt;br /&gt;
&amp;nbsp;&lt;b&gt;&amp;nbsp;this&lt;/b&gt;-&amp;gt;value = 0.0; &lt;i&gt;// or some other default value&lt;/i&gt;&lt;br /&gt;
}&lt;/blockquote&gt;Finally, write the virtual functions like this:&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;void&lt;/b&gt; virtual_class_A_destructor(&lt;b&gt;struct&lt;/b&gt; class_A *&lt;b&gt;this&lt;/b&gt;)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &lt;b&gt;switch&lt;/b&gt;(&lt;b&gt;this&lt;/b&gt;-&amp;gt;ID)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &lt;b&gt;case&lt;/b&gt; CLASS_A_ID:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; __class_A_destructor(&lt;b&gt;this&lt;/b&gt;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;b&gt;break&lt;/b&gt;;&lt;br /&gt;
&amp;nbsp; &lt;b&gt;case&lt;/b&gt; CLASS_B_ID:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; __class_B_destructor((class_B*)&lt;b&gt;this&lt;/b&gt;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;b&gt;break&lt;/b&gt;;&lt;br /&gt;
&amp;nbsp;&lt;i&gt; // ...&lt;/i&gt;&lt;br /&gt;
&amp;nbsp; &lt;b&gt;case&lt;/b&gt; CLASS_X_ID:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; __class_X_destructor((class_X*)&lt;b&gt;this&lt;/b&gt;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;b&gt;break&lt;/b&gt;;&lt;br /&gt;
&amp;nbsp; };&lt;br /&gt;
}&lt;/blockquote&gt;So, with a switch statement, it&#39;s possible to replace the virtual table. So, a compiler that would be able to take C++ code and convert it in CUDA/OpenCL would be able to do polymorphism with that approach. It&#39;s much more slower than a function pointer, but the result of the computation would be the same.&lt;br /&gt;
&lt;br /&gt;
I think that such compilers exist already, but I never used one of them. But it&#39;s probably using a method similar to the one above to emulate the virtual tables.&lt;br /&gt;
&lt;br /&gt;
And for those of you who didn&#39;t know how polymorphism worked, now you have a better idea of the process the compiler has to do to convert classes and their virtual functions in machine bytecode. So, I hoped that post helps a bit for that. Otherwise, there&#39;s a couple of resources available on the web that would clearly describe that process.&lt;br /&gt;
&lt;br /&gt;
If any of you know a (&lt;i&gt;free if possible&lt;/i&gt;) compiler that convert basic C++ code in CUDA or OpenCL, but also has integrated some of the features of those languages like the synchronization between threads of the same bloc and atomic operations, I&#39;d really like to see that and use it eventually. It must work on Linux!</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/3945607637945280366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/09/research-news.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/3945607637945280366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/3945607637945280366'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/09/research-news.html' title='research news'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-2957334951393398456</id><published>2011-08-25T13:48:00.000-04:00</published><updated>2011-08-25T13:48:23.813-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cuda"/><category scheme="http://www.blogger.com/atom/ns#" term="flower"/><category scheme="http://www.blogger.com/atom/ns#" term="hierarchy"/><category scheme="http://www.blogger.com/atom/ns#" term="pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="procedural texturing"/><category scheme="http://www.blogger.com/atom/ns#" term="rendering"/><category scheme="http://www.blogger.com/atom/ns#" term="texture"/><category scheme="http://www.blogger.com/atom/ns#" term="voronoi diagram"/><title type='text'>first pattern</title><content type='html'>So, yesterday I mentioned two steps that we need to work on to finish the hierarchy project. And one of them is to work on patterns or structures to show what is possible to do with that product.&lt;br /&gt;
&lt;br /&gt;
Today, I managed to to a first structure, a flower. Very simple to do. Just needed some adjustment first, but I got that result in few minutes. So here it is:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihE-_F7dnxx3Fe9zrMgvAOGJWSB-ydIGoagJ9n6W1sr0G6G-M_IUZqiY9urwMEV3XHQczCz22a8ZlA_uAYceMgYTaQ2L3BqSJz0qBcWxiihOWkAf67ZQs55_KX7Z2GmbP5d27cOwCxKao/s1600/flower_08.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihE-_F7dnxx3Fe9zrMgvAOGJWSB-ydIGoagJ9n6W1sr0G6G-M_IUZqiY9urwMEV3XHQczCz22a8ZlA_uAYceMgYTaQ2L3BqSJz0qBcWxiihOWkAf67ZQs55_KX7Z2GmbP5d27cOwCxKao/s320/flower_08.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Naturally, I just showed the final product. I had other images created before I managed to do the right effect that I wanted. I think that this is a nice preview of what that product can do.&lt;br /&gt;
&lt;br /&gt;
Let me know what you think about that output!</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/2957334951393398456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/08/first-pattern.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/2957334951393398456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/2957334951393398456'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/08/first-pattern.html' title='first pattern'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihE-_F7dnxx3Fe9zrMgvAOGJWSB-ydIGoagJ9n6W1sr0G6G-M_IUZqiY9urwMEV3XHQczCz22a8ZlA_uAYceMgYTaQ2L3BqSJz0qBcWxiihOWkAf67ZQs55_KX7Z2GmbP5d27cOwCxKao/s72-c/flower_08.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-6282302701905900190</id><published>2011-08-24T15:00:00.000-04:00</published><updated>2011-08-24T15:00:28.317-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cuda"/><category scheme="http://www.blogger.com/atom/ns#" term="cuda-c"/><category scheme="http://www.blogger.com/atom/ns#" term="GPU"/><category scheme="http://www.blogger.com/atom/ns#" term="hierarchy"/><category scheme="http://www.blogger.com/atom/ns#" term="opengl"/><category scheme="http://www.blogger.com/atom/ns#" term="procedural texturing"/><category scheme="http://www.blogger.com/atom/ns#" term="shader"/><category scheme="http://www.blogger.com/atom/ns#" term="SIGGRAPH"/><category scheme="http://www.blogger.com/atom/ns#" term="texture"/><category scheme="http://www.blogger.com/atom/ns#" term="voronoi diagram"/><title type='text'>Hierarchy textures</title><content type='html'>So, it&#39;s been a while. I was so busy at SIGGRAPH that I never had the time to share anything.&lt;br /&gt;
&lt;br /&gt;
In this post, I&#39;m showing you some of the last textures I&#39;ve been working on. These are build as a hierarchy. We use again our variation of the Voronoi diagram to create weird shapes. But this time, instead of using simply one level, we introduce many levels.&lt;br /&gt;
&lt;br /&gt;
On the first level, again, the Voronoi cells are computed and once we know in which cell we are, if that cell has a sub-level, we can then continue the visit in the structure into that sub-level. Each level has can have a small or big influence on the final color of the pixel.&lt;br /&gt;
&lt;br /&gt;
So, here&#39;s some outputs:&lt;br /&gt;
&lt;br /&gt;
One of the first output made. It has two cells on the first level. One is the circle-like shape in the middle and then the rest. In the &quot;rest&quot;, there&#39;s a sub level with a simple small division of the plane in two.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7NIb_5Yn982ZsL95u4QSZit57e7zHW9_Adm1H9HynoiK8as9u1mt1ZQNnkf8Q8PSl0mYoHvFaueoKFbU3JLbhKz8HtsjNT_sgjGNIDAUkF1bxUQz1HWKTfPLqfne1leJh5CKFRRDbL2w/s1600/evol_00.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7NIb_5Yn982ZsL95u4QSZit57e7zHW9_Adm1H9HynoiK8as9u1mt1ZQNnkf8Q8PSl0mYoHvFaueoKFbU3JLbhKz8HtsjNT_sgjGNIDAUkF1bxUQz1HWKTfPLqfne1leJh5CKFRRDbL2w/s320/evol_00.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Exactly as the previous one, but here, there&#39;s a sub-level in the circle-like shape. As you can see, the fact that there&#39;s a new sub-level only affects the part where that sub-level is.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdRebIOUSPSeYKOxL9-zYU7eqAc_JplqQXEUNVgeZMMZKiM4TEqXehO9CtNlRC6wqbmyHHOKiUnVJuQc8q2EbXkhtcw1JkumlWGy65amfcyp6WnFCsFmxvrM03U_BxSFjTP4qMMmJdgz4/s1600/evol_01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdRebIOUSPSeYKOxL9-zYU7eqAc_JplqQXEUNVgeZMMZKiM4TEqXehO9CtNlRC6wqbmyHHOKiUnVJuQc8q2EbXkhtcw1JkumlWGy65amfcyp6WnFCsFmxvrM03U_BxSFjTP4qMMmJdgz4/s320/evol_01.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
The actual first output that I got with the hierarchy.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFOP2MSTunZ0-LUA3DE4WnLKNLD_Eqc9WDfNhgkEXngtXbcFNWAQc5fdqLenSn15x919RNHM_DeMMKcL3wjZnRCYdQQMuL7BJl6ouGX6mOzdFHFv6cB-0Q8JcKtIgERCH7yaiAhWp1k3k/s1600/first.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFOP2MSTunZ0-LUA3DE4WnLKNLD_Eqc9WDfNhgkEXngtXbcFNWAQc5fdqLenSn15x919RNHM_DeMMKcL3wjZnRCYdQQMuL7BJl6ouGX6mOzdFHFv6cB-0Q8JcKtIgERCH7yaiAhWp1k3k/s320/first.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
In the next images, I start playing with colors inside the cells. Naturally, all of these images where made from random point distribution.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht3WMW3ZE9Vp4f16Fs6nDl0xuG3aL9aWlOVTyny8t6yVt5j_wANBh1AHUNtCFhFdXpvc19pTDUY9XvjlXoLJ8S61EPyc9VvaYuWkSsKqMaIbGbLgMBGJhYD0ddCoGhUB7gVQfLiBWUEhk/s1600/color_02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht3WMW3ZE9Vp4f16Fs6nDl0xuG3aL9aWlOVTyny8t6yVt5j_wANBh1AHUNtCFhFdXpvc19pTDUY9XvjlXoLJ8S61EPyc9VvaYuWkSsKqMaIbGbLgMBGJhYD0ddCoGhUB7gVQfLiBWUEhk/s320/color_02.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEUndsenmD0vQwGFACTRD3u8uFHfK7cIJVY1TOEbb_hqn1z3WgmmaiLs56dSQi69mhTWRdcpnUuPJXxkOjdAqo68pLJ1HxnkVJk09iO9rKZ3n1syZzKYc4Jwnwr6-38YL0KmCxIL-ByUI/s1600/color_05.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEUndsenmD0vQwGFACTRD3u8uFHfK7cIJVY1TOEbb_hqn1z3WgmmaiLs56dSQi69mhTWRdcpnUuPJXxkOjdAqo68pLJ1HxnkVJk09iO9rKZ3n1syZzKYc4Jwnwr6-38YL0KmCxIL-ByUI/s320/color_05.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHqnMdpnPGW90A5UHWcslr3u5KLv-kgQvo6s0YX-C6DrqRlYfGCYvRB8mKvhsk1WwJVDC0v-1YQn_but_c8PH71R-XmW_AzBBPXFIWX7ahexTFGiFMUk4_TWMzRTphmvi4gSWlDm7uIEw/s1600/color_06.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHqnMdpnPGW90A5UHWcslr3u5KLv-kgQvo6s0YX-C6DrqRlYfGCYvRB8mKvhsk1WwJVDC0v-1YQn_but_c8PH71R-XmW_AzBBPXFIWX7ahexTFGiFMUk4_TWMzRTphmvi4gSWlDm7uIEw/s320/color_06.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In these images, I simply played with the hierarchy. Each cell has a random chance to get a sub-level and so on. Until a maximal depth was reached. In some of them, I played also with the feature that at each level, you can influence the final color by accumulating a value.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_TaAHgrcww2Bg55Bi7GryFwceP3AauibhCbf6m7PKg6HlO25rtsP775KbrHMbfHw1z2ehQvqqoqbTL9dOdljQy2ieHfO-aYVrIw28xGCmZamlClmgdi4sZ0jzJo0MhCNj0bnMO7-bntg/s1600/random_02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_TaAHgrcww2Bg55Bi7GryFwceP3AauibhCbf6m7PKg6HlO25rtsP775KbrHMbfHw1z2ehQvqqoqbTL9dOdljQy2ieHfO-aYVrIw28xGCmZamlClmgdi4sZ0jzJo0MhCNj0bnMO7-bntg/s320/random_02.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHjKC6wtgqIZF-07aIZ0u1bdqY4g2etPt0ZDO0Xei4rHH29QgkgU-S_VurmIe9AhOL2g6xMMTgmna4LBHKaLsS-5qFuw14o4s_SxPPeS1clEuB2xT51MHwnTXKfxG1nzv2x3H8Qxpxxuo/s1600/random_06.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHjKC6wtgqIZF-07aIZ0u1bdqY4g2etPt0ZDO0Xei4rHH29QgkgU-S_VurmIe9AhOL2g6xMMTgmna4LBHKaLsS-5qFuw14o4s_SxPPeS1clEuB2xT51MHwnTXKfxG1nzv2x3H8Qxpxxuo/s320/random_06.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4YLdcMDzrKhKL3-YFMLonnI9ec6RUfrdeDzT2BLsjaMAigIn76ChosRSd2-AIpUSsVlT6ke_je1Swscv39C0DSaJdOPKF5poesY_Qkp0gXPMlaQnKQ3Nu4kljxLHqLMsBAN8GX-dgNug/s1600/random_07.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4YLdcMDzrKhKL3-YFMLonnI9ec6RUfrdeDzT2BLsjaMAigIn76ChosRSd2-AIpUSsVlT6ke_je1Swscv39C0DSaJdOPKF5poesY_Qkp0gXPMlaQnKQ3Nu4kljxLHqLMsBAN8GX-dgNug/s320/random_07.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu_qMRIGE1v4WTl0QDkj_4Fg11MuGMAQ6dsGtp17N4UXzKRJNuTOW6Amb3GpqBkVLSdarHk7TJVWtf3O-eRSc2DI7tr7PjsZMl5M0BOQmHoi1gJ43otPT7EWOpSRSNJ6hlUdWthSdPeHc/s1600/random_08.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu_qMRIGE1v4WTl0QDkj_4Fg11MuGMAQ6dsGtp17N4UXzKRJNuTOW6Amb3GpqBkVLSdarHk7TJVWtf3O-eRSc2DI7tr7PjsZMl5M0BOQmHoi1gJ43otPT7EWOpSRSNJ6hlUdWthSdPeHc/s320/random_08.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguGmsjLlzXWxB-lNp573eA5RBNFLbpinQW2dCQoU8OwqSQ9nUlfeE4nlvPOLgI5DNytSgTauAzNNCm0WGjjfZCuzP5iPboLMTgYZpdW5IuhgP9Yx6GFNVMrmBOmsXUJd2vJegAOPK1-Qg/s1600/random_09.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguGmsjLlzXWxB-lNp573eA5RBNFLbpinQW2dCQoU8OwqSQ9nUlfeE4nlvPOLgI5DNytSgTauAzNNCm0WGjjfZCuzP5iPboLMTgYZpdW5IuhgP9Yx6GFNVMrmBOmsXUJd2vJegAOPK1-Qg/s320/random_09.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Finally, there&#39;s two big step to do before we consider that project finished. First, we want to investigate various patterns. So, how can we do a particular shape for a cell. For this part, we don&#39;t need the hierarchy because we know it works. When we are able to control properly the patterns, we will be able to used them at various level.&lt;br /&gt;
&lt;br /&gt;
Second, we want to be more dynamic for the color. Right now, each cell use a function f:[0;1]-&amp;gt;[0;1] to control its value that will influence all the other levels. But those functions are a bit static. I can add more, but it will never be enough. So we turn to use something like the shaders in OpenGL. Literally, each cell could have its own function (&lt;i&gt;coded in CUDA-C&lt;/i&gt;) and that function would be used to control the contribution of that cell and its sub-level to the final color of the pixel.</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/6282302701905900190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/08/hierarchy-textures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/6282302701905900190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/6282302701905900190'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/08/hierarchy-textures.html' title='Hierarchy textures'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7NIb_5Yn982ZsL95u4QSZit57e7zHW9_Adm1H9HynoiK8as9u1mt1ZQNnkf8Q8PSl0mYoHvFaueoKFbU3JLbhKz8HtsjNT_sgjGNIDAUkF1bxUQz1HWKTfPLqfne1leJh5CKFRRDbL2w/s72-c/evol_00.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-3858954576345362226</id><published>2011-08-05T23:24:00.000-04:00</published><updated>2011-08-05T23:24:03.375-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="3D"/><category scheme="http://www.blogger.com/atom/ns#" term="opengl"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenGL ES"/><category scheme="http://www.blogger.com/atom/ns#" term="procedural"/><category scheme="http://www.blogger.com/atom/ns#" term="rendering"/><category scheme="http://www.blogger.com/atom/ns#" term="SIGGRAPH"/><category scheme="http://www.blogger.com/atom/ns#" term="texture"/><category scheme="http://www.blogger.com/atom/ns#" term="Vancouver"/><title type='text'>SIGGRAPH</title><content type='html'>This week, I will be at SIGGRAPH in Vancouver. I will try to share some of the stuff I will see on the blog. I hope to be able to talk about the last stuffs in procedural texturing and rendering.</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/3858954576345362226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/08/siggraph.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/3858954576345362226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/3858954576345362226'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/08/siggraph.html' title='SIGGRAPH'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-4677620477727275084</id><published>2011-08-04T12:46:00.000-04:00</published><updated>2011-08-04T12:46:45.392-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="demo"/><category scheme="http://www.blogger.com/atom/ns#" term="live-wallpaper"/><category scheme="http://www.blogger.com/atom/ns#" term="market"/><category scheme="http://www.blogger.com/atom/ns#" term="trial"/><category scheme="http://www.blogger.com/atom/ns#" term="twin pictures"/><title type='text'>Twin Pictures DEMO</title><content type='html'>I decided to put a demo on the market of Twin Pictures. In that free version, the only difference with the paid version is that you cannot change the pictures. But all the other effects are there.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s the link:&amp;nbsp;&lt;a href=&quot;https://market.android.com/details?id=com.blogspot.widgg_research.twin_demo&quot;&gt;https://market.android.com/details?id=com.blogspot.widgg_research.twin_demo&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If you like it, you will definitely like the full version where you can change the images!</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/4677620477727275084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/08/twin-pictures-demo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/4677620477727275084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/4677620477727275084'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/08/twin-pictures-demo.html' title='Twin Pictures DEMO'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-4341841256341480622</id><published>2011-07-29T23:38:00.000-04:00</published><updated>2011-07-29T23:38:22.934-04:00</updated><title type='text'>Twin Pictures video</title><content type='html'>So here&#39;s a small video to show you Twin Pictures.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;349&quot; src=&quot;http://www.youtube.com/embed/A4LwOGGDDfo?hl=en&amp;amp;fs=1&quot; width=&quot;425&quot;&gt;&amp;amp;amp;lt;p&amp;amp;amp;gt;&amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;gt; &amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;gt; Sorry about the bad quality and my voice, it&#39;s my first video... and I&#39;m not the most eloquent speaker.&amp;amp;amp;lt;/p&amp;amp;amp;gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/4341841256341480622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/07/twin-pictures-video.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/4341841256341480622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/4341841256341480622'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/07/twin-pictures-video.html' title='Twin Pictures video'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/A4LwOGGDDfo/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-638094637351128829</id><published>2011-07-28T21:52:00.000-04:00</published><updated>2011-07-28T21:52:50.614-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="aesthetic"/><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="GPU"/><category scheme="http://www.blogger.com/atom/ns#" term="images"/><category scheme="http://www.blogger.com/atom/ns#" term="live-wallpaper"/><category scheme="http://www.blogger.com/atom/ns#" term="market"/><category scheme="http://www.blogger.com/atom/ns#" term="masking images"/><category scheme="http://www.blogger.com/atom/ns#" term="merged voronoi diagram"/><category scheme="http://www.blogger.com/atom/ns#" term="symmetry"/><category scheme="http://www.blogger.com/atom/ns#" term="twin pictures"/><category scheme="http://www.blogger.com/atom/ns#" term="voronoi diagram"/><title type='text'>upgrades on Twin Pictures</title><content type='html'>So today I published a new version of Twin Pictures. I added some interesting features.&lt;br /&gt;
&lt;br /&gt;
First, for the second image, you can choose instead to use the first image in negative. So, just like the default settings with the Android logo, it creates a really great effect. You can really enjoy the&amp;nbsp;dueling&amp;nbsp;process for the two images with the negative option.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s an example with the Mortal Kombat Logo:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkNGbaASVSg7lX2M0eS2ol9rfDN6Ex9hWaTdfbmy2t7Jlska4K4nYG1yQwmwF_t5EbJdu128kNCDPyFNL2RudXM_A-CpM1s8vW1LNa3L4UiqK7jMffEmXbPbVSWz_7iDPcs2RwGWgZiwA/s1600/mk00.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkNGbaASVSg7lX2M0eS2ol9rfDN6Ex9hWaTdfbmy2t7Jlska4K4nYG1yQwmwF_t5EbJdu128kNCDPyFNL2RudXM_A-CpM1s8vW1LNa3L4UiqK7jMffEmXbPbVSWz_7iDPcs2RwGWgZiwA/s320/mk00.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
I also added new ways to split the screen for the images:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Random: the original method, no real structure, it&#39;s spinning around at various speed&lt;/li&gt;
&lt;li&gt;Symmetry: this method splits the screen in two. So you see equally part of image 1 and image 2 at all time.&lt;/li&gt;
&lt;li&gt;Asymmetry: this method can look symmetrical on certain point of view, but not on the part shared by the images. At some point, you will not see one of the image.&lt;/li&gt;
&lt;li&gt;Symmetrical Yin Yang: this one is inspired by some pictures I showed in a previous post. The screen is split in two, but there&#39;s no axis of symmetry.&lt;/li&gt;
&lt;li&gt;Asymmetrical Yin Yang: just like asymmetry above, it splits the screen, but not necessary equally and without an axis of symmetry.&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;It&#39;s also possible to set the brightness. The minimum is 50% and by default it&#39;s at 100%.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;Next upgrade&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;I&#39;m looking at options for the part of the screen where the images intersect. For now, there&#39;s a very small change between the images. But it&#39;s enough to be a rough one (&lt;i&gt;but it will be an option&lt;/i&gt;).&amp;nbsp;So, i&#39;m planning 5-6 options just to give more choice to the users with the visual aspect.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://market.android.com/details?id=com.blogspot.widgg_research.twin&quot;&gt;https://market.android.com/details?id=com.blogspot.widgg_research.twin&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/638094637351128829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/07/upgrades-on-twin-pictures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/638094637351128829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/638094637351128829'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/07/upgrades-on-twin-pictures.html' title='upgrades on Twin Pictures'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkNGbaASVSg7lX2M0eS2ol9rfDN6Ex9hWaTdfbmy2t7Jlska4K4nYG1yQwmwF_t5EbJdu128kNCDPyFNL2RudXM_A-CpM1s8vW1LNa3L4UiqK7jMffEmXbPbVSWz_7iDPcs2RwGWgZiwA/s72-c/mk00.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-5834285166345025406</id><published>2011-07-26T11:28:00.001-04:00</published><updated>2011-07-26T11:30:27.841-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="GLSL"/><category scheme="http://www.blogger.com/atom/ns#" term="GPU"/><category scheme="http://www.blogger.com/atom/ns#" term="live-wallpaper"/><category scheme="http://www.blogger.com/atom/ns#" term="market"/><category scheme="http://www.blogger.com/atom/ns#" term="masking images"/><category scheme="http://www.blogger.com/atom/ns#" term="merged voronoi diagram"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenGL ES"/><category scheme="http://www.blogger.com/atom/ns#" term="plane"/><category scheme="http://www.blogger.com/atom/ns#" term="qr code"/><category scheme="http://www.blogger.com/atom/ns#" term="voronoi"/><title type='text'>A new live-wallpaper</title><content type='html'>Recently, I showed images about grouping points together to create a different kind of Voronoi diagram (&lt;i&gt;see &lt;a href=&quot;http://widgg-research.blogspot.com/2011/07/merging-voronoi.html&quot;&gt;Merging Voronoi&lt;/a&gt;&lt;/i&gt;).&lt;br /&gt;
&lt;br /&gt;
The case with two groups is very interesting because it splits the plane in two parts. I was first intrigued by what it would look like animated and then I imagined that if each group is associated with an image. It&#39;s possible to show parts of the first image where its group is visible and part of the second image where the second group is.&lt;br /&gt;
&lt;br /&gt;
So I came up with a very simple live-wallpaper. All you need to do is select two images and let the animation do the rest. This is much more easier to use than the Weird Voronoi (Pro) with all the functions.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s some outputs:&lt;br /&gt;
&lt;br /&gt;
(&lt;i&gt;this one is the default, when you first start the live-wallpaper&lt;/i&gt;)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6UbiL476Ct-RT3I-S8DB2AgT7jnSqISZB9RSNTrN3zP8g1pBwJ6r8PNM4iaXTopbmGxIWQrTmLtAYR2kDVzZN0WCWER86b6EbdcqWie2cj2IFVnfMPn7SAeb8MFgoB80O1bDPcYZG9q4/s1600/s00.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6UbiL476Ct-RT3I-S8DB2AgT7jnSqISZB9RSNTrN3zP8g1pBwJ6r8PNM4iaXTopbmGxIWQrTmLtAYR2kDVzZN0WCWER86b6EbdcqWie2cj2IFVnfMPn7SAeb8MFgoB80O1bDPcYZG9q4/s320/s00.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdswhoY1U1Ib21ZLqx0KQuCsVhEzDZl7iYFZeceUOiomtCwyNwiGNqwR-w758xPmD6zks2aIDoYlT402KKotXUgi8E72fRtfSF3DgILrxlq1C6eKIJXAJtISHA3URMIKHcbfnNVgnm4HI/s1600/s03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdswhoY1U1Ib21ZLqx0KQuCsVhEzDZl7iYFZeceUOiomtCwyNwiGNqwR-w758xPmD6zks2aIDoYlT402KKotXUgi8E72fRtfSF3DgILrxlq1C6eKIJXAJtISHA3URMIKHcbfnNVgnm4HI/s320/s03.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgALxWeo0wxlJDHEKwqXvXZt9hYnGMbYHWKmSHNXtveLrbNNFF1Ld_GmyUY3PW5lq5kgGWcH2wHnyqlz274VArVJlvABD5AKu-4kD-dhAfPh5CNbaORIRNxRm-Z8g12hyphenhyphenZ1_mEP19ltbFc/s1600/s04.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgALxWeo0wxlJDHEKwqXvXZt9hYnGMbYHWKmSHNXtveLrbNNFF1Ld_GmyUY3PW5lq5kgGWcH2wHnyqlz274VArVJlvABD5AKu-4kD-dhAfPh5CNbaORIRNxRm-Z8g12hyphenhyphenZ1_mEP19ltbFc/s320/s04.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXIxqwod2AIm9HpnK8AVS85u2rn3tRrjrBeJ5qFIMBk161yllzx4_tzAwJC0VF2RMJwx8Ln2-tynfxD8pOsrv-9BaOp0_eBwwvo-IAAhPAkQIcLDJ7FNaUowM1c6j_peJO922TpbroLIU/s1600/s11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXIxqwod2AIm9HpnK8AVS85u2rn3tRrjrBeJ5qFIMBk161yllzx4_tzAwJC0VF2RMJwx8Ln2-tynfxD8pOsrv-9BaOp0_eBwwvo-IAAhPAkQIcLDJ7FNaUowM1c6j_peJO922TpbroLIU/s320/s11.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdEOqdUcSYQeAyVlTzlvVHTKbTWMjUQ481-ZCJv0SPAyvsKX4nCkmojXY_ywzmdMFmVeg610Ptf4ArAXvFQQIV3lAz644gelbNpr_FRhTRSV3T-h3R3Ln_Udh367o-AMEceU0e5wSpJWI/s1600/s15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdEOqdUcSYQeAyVlTzlvVHTKbTWMjUQ481-ZCJv0SPAyvsKX4nCkmojXY_ywzmdMFmVeg610Ptf4ArAXvFQQIV3lAz644gelbNpr_FRhTRSV3T-h3R3Ln_Udh367o-AMEceU0e5wSpJWI/s320/s15.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVDUHTMLLNgUu8d-a9nFCM9b3s6RpKpFi4Lp2Llzzu0D0cvC8-2-EEuXXKxrBv3CRtqeGiUQgbIol0GbXM46edibaiNpZwXnigtMSmAeYrH7sFBwQFHQ-Pj-xfP7mRwdwmuvmASTm4wyk/s1600/s22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVDUHTMLLNgUu8d-a9nFCM9b3s6RpKpFi4Lp2Llzzu0D0cvC8-2-EEuXXKxrBv3CRtqeGiUQgbIol0GbXM46edibaiNpZwXnigtMSmAeYrH7sFBwQFHQ-Pj-xfP7mRwdwmuvmASTm4wyk/s320/s22.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Here&#39;s the link and the QR code:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://qrcode.kaywa.com/img.php?s=5&amp;amp;d=https%3A%2F%2Fmarket.android.com%2Fdetails%3Fid%3Dcom.blogspot.widgg_research.twin&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://qrcode.kaywa.com/img.php?s=5&amp;amp;d=https%3A%2F%2Fmarket.android.com%2Fdetails%3Fid%3Dcom.blogspot.widgg_research.twin&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a href=&quot;https://market.android.com/details?id=com.blogspot.widgg_research.twin&quot;&gt;https://market.android.com/details?id=com.blogspot.widgg_research.twin&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/5834285166345025406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/07/new-live-wallpaper.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/5834285166345025406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/5834285166345025406'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/07/new-live-wallpaper.html' title='A new live-wallpaper'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6UbiL476Ct-RT3I-S8DB2AgT7jnSqISZB9RSNTrN3zP8g1pBwJ6r8PNM4iaXTopbmGxIWQrTmLtAYR2kDVzZN0WCWER86b6EbdcqWie2cj2IFVnfMPn7SAeb8MFgoB80O1bDPcYZG9q4/s72-c/s00.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-7565313776672281979</id><published>2011-07-18T16:53:00.000-04:00</published><updated>2011-07-18T16:53:10.414-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="GLSL"/><category scheme="http://www.blogger.com/atom/ns#" term="market"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenGL ES"/><category scheme="http://www.blogger.com/atom/ns#" term="Weird Voronoi"/><title type='text'>Weird Voronoi Pro (news and possible improvement)</title><content type='html'>So first, after playing around with all the functions. I found my favorite configuration yet (&lt;i&gt;but I might found a better one... who knows&lt;/i&gt;).&lt;br /&gt;
&lt;br /&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;th&gt;field&lt;/th&gt;     &lt;th&gt;value&lt;/th&gt;   &lt;/tr&gt;
&lt;tr&gt;     &lt;td&gt;Select a ratio, R =&lt;/td&gt;     &lt;td&gt;(d1*d2)/(d3^2)&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;     &lt;td&gt;x = f(R)&lt;/td&gt;     &lt;td&gt;f(R) = tan(R*pi/4)&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;     &lt;td&gt;y = f(x)&lt;/td&gt;     &lt;td&gt;f(R) = R*(0.5*[!] + 0.5)&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;     &lt;td&gt;z = f(y)&lt;/td&gt;     &lt;td&gt;f(R) = R^2&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;     &lt;td&gt;c = f(z)&lt;/td&gt;     &lt;td&gt;f(R) = R&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
And for the improvements, one option is to at least double the number of steps. But I will wait for some comments about this. As you can see, in the above configuration, I don&#39;t even need the last one.&lt;br /&gt;
&lt;br /&gt;
Also, I&#39;m still looking for more functions to offer a larger variety of transition in the [0;1] range. Particularly functions that might reach both limits more than once in the [0;1] of the input. This will create more disturbance inside one cell alone!&lt;br /&gt;
&lt;br /&gt;
This week, I will start writing some documentation, to explain all of this and to present the choices available later to develop your own function with GLSL.</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/7565313776672281979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/07/weird-voronoi-pro-news-and-possible.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/7565313776672281979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/7565313776672281979'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/07/weird-voronoi-pro-news-and-possible.html' title='Weird Voronoi Pro (news and possible improvement)'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-2455660846980867176</id><published>2011-07-16T23:04:00.004-04:00</published><updated>2011-07-18T16:40:32.453-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="cell"/><category scheme="http://www.blogger.com/atom/ns#" term="color distribution"/><category scheme="http://www.blogger.com/atom/ns#" term="market"/><category scheme="http://www.blogger.com/atom/ns#" term="pro"/><category scheme="http://www.blogger.com/atom/ns#" term="professional"/><category scheme="http://www.blogger.com/atom/ns#" term="qr code"/><category scheme="http://www.blogger.com/atom/ns#" term="voronoi"/><category scheme="http://www.blogger.com/atom/ns#" term="weird"/><title type='text'>Weird Voronoi Pro</title><content type='html'>Finally, I published my professional version of my live-wallpaper. Currently (&lt;i&gt;while I&#39;m writing those words&lt;/i&gt;), the live-wallpaper is not available on the Market, &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000;&quot;&gt;&lt;b&gt;BUT NOW IT&#39;S AVAILABLE&lt;/b&gt;&lt;/span&gt;. I think there&#39;s a delay before a paid apps is officially available (&lt;i&gt;I hope it&#39;s not too long&lt;/i&gt;).&lt;br /&gt;
&lt;br /&gt;
The big changes compared with the free version is the number of functions. First, you can choose a &quot;ratio&quot; as a basic value. For each pixel, before determining its color, the three closest points (&lt;i&gt;according to the distance function used, not necessary the straight line&lt;/i&gt;) are found. Let d1, d2 and d3 be those distances. In the free version, the only ratio that exists is d1/d2. Which is the basic one used to draw Voronoi diagram. The background used on this blog is drawn with that ratio. Remember that where there&#39;s a Voronoi&#39;s edge, it means that two points are a the same distance, so d1/d2 = 1. If the pixel is right on a point, then d1/d2 = 0.&lt;br /&gt;
&lt;br /&gt;
But in this new version, you have access to other ratio, like d1/d3, d2/d3 and&amp;nbsp;(d1*d2)/(d3*d3). You, currently, have 11 choices for this. And the ratio influence the shape of the cells. For the color, only ratio using d1 and d2 make sense. All the other creates weird interaction. But some people might like it.&lt;br /&gt;
&lt;br /&gt;
Second, the functions. For now, the function used to compute the distribution of the color consist of 4 steps. Let R be the ratio, then you have:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;x = f(R)&lt;/li&gt;
&lt;li&gt;y = f(x)&lt;/li&gt;
&lt;li&gt;z = f(y)&lt;/li&gt;
&lt;li&gt;c = f(z)&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
where &#39;c&#39; is the value used for the color. For each step, you can choose among 55 functions (&lt;i&gt;but let say 54, because if you choose f(R) = 1, then you remove a lot of choices&lt;/i&gt;). The default function is f(R) = R.&lt;br /&gt;
So, if we consider all possible choices (&lt;i&gt;and ignore those that opposed each other&lt;/i&gt;), you have 54^4 possibles functions with 11 ratios. Therefore, you have 93 millions functions available to you.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NOTE&lt;/b&gt; that all function are f:[0,1] -&amp;gt; [0,1]. So, by restraining to this interval, it&#39;s easier to control at each steps.&lt;br /&gt;
&lt;br /&gt;
Among the functions, there&#39;s some that use [?] and [!], two values between 0 and 1. These are values controlled elsewhere in the computation.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;[?] is a random value that changes for each frame rendered. This value is not stable so it creates effects that some time might look like lightnings.&lt;/li&gt;
&lt;li&gt;[!] on the other hand is more stable. It&#39;s a wave that follow the positive values of a sine. Therefore, it goes from 0 to 1 and then from 1 to 0. It can be used to have a regular effects over the color distribution. By default, it takes 4 seconds to have a full cycle, but it&#39;s possible to change the speed.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
Here&#39;s the qr code and the direct link:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://qrcode.kaywa.com/img.php?s=8&amp;amp;d=https%3A%2F%2Fmarket.android.com%2Fdetails%3Fid%3Dcom.blogspot.widgg_research.WVP&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://qrcode.kaywa.com/img.php?s=8&amp;amp;d=https%3A%2F%2Fmarket.android.com%2Fdetails%3Fid%3Dcom.blogspot.widgg_research.WVP&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a href=&quot;https://market.android.com/details?id=com.blogspot.widgg_research.WVP&quot;&gt;https://market.android.com/details?id=com.blogspot.widgg_research.WVP&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Here&#39;s some screenshots:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL6MWfM-sU8uMXEgni5DO5bhFigiuoemfQToaT9mL4jBdwC4BbxYjNmftbdayyMoFetsvxC7oOL_-dl7M749vhPuSWJbFuC6ukA8xH42w1prXKZ6mASvIdTLxC2ROZwZO5bEVis8mKLo4/s1600/ss00.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL6MWfM-sU8uMXEgni5DO5bhFigiuoemfQToaT9mL4jBdwC4BbxYjNmftbdayyMoFetsvxC7oOL_-dl7M749vhPuSWJbFuC6ukA8xH42w1prXKZ6mASvIdTLxC2ROZwZO5bEVis8mKLo4/s320/ss00.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHR4WvSTVxI3GwLF0QWhoOhCTlDPoKLXHaEYgDkpLtueWC9KR7mMMPDzHrmBtev83CdYFCuHI2unKkj34DJ6ee2bXQ59U9M6PPD2aViGHHFQg1icpicpzT9WFycsNJysXCrr91BlJDVm8/s1600/ss01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHR4WvSTVxI3GwLF0QWhoOhCTlDPoKLXHaEYgDkpLtueWC9KR7mMMPDzHrmBtev83CdYFCuHI2unKkj34DJ6ee2bXQ59U9M6PPD2aViGHHFQg1icpicpzT9WFycsNJysXCrr91BlJDVm8/s320/ss01.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
The settings for the function. From the settings, click on &quot;Functions&quot; then &quot;Cell and Color functions&quot;. You can see the selection of the ratio first followed by the four steps of functions.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBeLfKtW_iJmxPA-ozMBWNx4vEe7gyW_4YGZOqzKMZGIpuo2PrJuXeMRx0IoiLa2nNJf74t10exqSeCw6ApS15JRZ0HgwHLtvlcT-u2Mcfvi5pj4X9fBt3smUmfPCHgb7x0ZhLvwnSy4s/s1600/ss02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBeLfKtW_iJmxPA-ozMBWNx4vEe7gyW_4YGZOqzKMZGIpuo2PrJuXeMRx0IoiLa2nNJf74t10exqSeCw6ApS15JRZ0HgwHLtvlcT-u2Mcfvi5pj4X9fBt3smUmfPCHgb7x0ZhLvwnSy4s/s320/ss02.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRAFY8GeYGQovmYlNzAkDNZU31O22mNk6bn6uH3wDblnq9c6hCA8yC0s5H3Aa-37sofRfyKvP0_lRMfECV2NTR7_8sxQqxYG6hNP-Vrfc-3yIUAtYcL3AdIbriCi9EWWkzv-hiODEVA4s/s1600/ss03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRAFY8GeYGQovmYlNzAkDNZU31O22mNk6bn6uH3wDblnq9c6hCA8yC0s5H3Aa-37sofRfyKvP0_lRMfECV2NTR7_8sxQqxYG6hNP-Vrfc-3yIUAtYcL3AdIbriCi9EWWkzv-hiODEVA4s/s320/ss03.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjukvN6SOjnuRIwKSd4O1wnSWmLLbAPi7sdUNXDv9PZnVMMTauBFqKFFFtaMLH7Ot9GZU816L4MnWGlSdmWsHtPojVy2thyphenhyphentWUvFRkLkSa4RyZo7ASJLg8XZp_AIg3bIbq3MWsOh2iOfow/s1600/ss04.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjukvN6SOjnuRIwKSd4O1wnSWmLLbAPi7sdUNXDv9PZnVMMTauBFqKFFFtaMLH7Ot9GZU816L4MnWGlSdmWsHtPojVy2thyphenhyphentWUvFRkLkSa4RyZo7ASJLg8XZp_AIg3bIbq3MWsOh2iOfow/s320/ss04.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvfjMM6fdH8cB8DIDfxVqHk0wJalQninM2Too-eXkmK6qKqtnmrjngvPcXzU7yCqlMlDQWXtNwpL7KOnMP7sMQbkjZbLjV0MvLQxGoeop6Broa5kYHPH4lnZVQ0vYGfqKdq8_suVkAVwc/s1600/ss05.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvfjMM6fdH8cB8DIDfxVqHk0wJalQninM2Too-eXkmK6qKqtnmrjngvPcXzU7yCqlMlDQWXtNwpL7KOnMP7sMQbkjZbLjV0MvLQxGoeop6Broa5kYHPH4lnZVQ0vYGfqKdq8_suVkAVwc/s320/ss05.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5uszPlHDGLIyFw1g_V9W4kOPct2-yyXvGiDupavsLcSERqJsu-ccT2vJCYZn2Wln6klftIv3rcf8jF0Mqe3TzwzUZA5XejVoXTT4jmLeY5U4od2gCncwoGcasZ4p-qxxn4GFBOkhpeeM/s1600/ss06.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5uszPlHDGLIyFw1g_V9W4kOPct2-yyXvGiDupavsLcSERqJsu-ccT2vJCYZn2Wln6klftIv3rcf8jF0Mqe3TzwzUZA5XejVoXTT4jmLeY5U4od2gCncwoGcasZ4p-qxxn4GFBOkhpeeM/s320/ss06.png&quot; width=&quot;192&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
I also post an update for the [!] feature. First, I was using the function sin(pi * t) where t is in [0;1]. But I forgot that this function is not continuous on the first derivative. This mean that at some point, the transition was not very fluid. It was following an half-circle and going fast on the 0 and took a lot of time around the 1.&lt;br /&gt;
&lt;br /&gt;
Therefore, I changed it to cos(2*pi*t) * 0.5 + 0.5. With this, the function is still in the [0;1] range but the transition is very smooth. There&#39;s no drastic, unaesthetic, changes. All of this because the this function is continuous on the first derivative.</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/2455660846980867176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/07/weird-voronoi-pro.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/2455660846980867176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/2455660846980867176'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/07/weird-voronoi-pro.html' title='Weird Voronoi Pro'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL6MWfM-sU8uMXEgni5DO5bhFigiuoemfQToaT9mL4jBdwC4BbxYjNmftbdayyMoFetsvxC7oOL_-dl7M749vhPuSWJbFuC6ukA8xH42w1prXKZ6mASvIdTLxC2ROZwZO5bEVis8mKLo4/s72-c/ss00.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-8418956103254296283</id><published>2011-07-08T21:04:00.001-04:00</published><updated>2011-07-08T21:43:31.920-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cell"/><category scheme="http://www.blogger.com/atom/ns#" term="cuda"/><category scheme="http://www.blogger.com/atom/ns#" term="Delaunay Triangulation"/><category scheme="http://www.blogger.com/atom/ns#" term="diagram"/><category scheme="http://www.blogger.com/atom/ns#" term="domination"/><category scheme="http://www.blogger.com/atom/ns#" term="DT"/><category scheme="http://www.blogger.com/atom/ns#" term="dual graph"/><category scheme="http://www.blogger.com/atom/ns#" term="fast food"/><category scheme="http://www.blogger.com/atom/ns#" term="merged voronoi diagram"/><category scheme="http://www.blogger.com/atom/ns#" term="MVD"/><category scheme="http://www.blogger.com/atom/ns#" term="nvidia"/><category scheme="http://www.blogger.com/atom/ns#" term="partition"/><category scheme="http://www.blogger.com/atom/ns#" term="plane"/><category scheme="http://www.blogger.com/atom/ns#" term="restaurant"/><category scheme="http://www.blogger.com/atom/ns#" term="site"/><category scheme="http://www.blogger.com/atom/ns#" term="synthesis"/><category scheme="http://www.blogger.com/atom/ns#" term="texture"/><category scheme="http://www.blogger.com/atom/ns#" term="VD"/><category scheme="http://www.blogger.com/atom/ns#" term="voronoi diagram"/><title type='text'>merging voronoi</title><content type='html'>Here we are playing again with the Voronoi diagram (&lt;i&gt;VD&lt;/i&gt;). We wanted to see what happen when sites are merged together (&lt;i&gt;MVD, merged VD&lt;/i&gt;).&lt;br /&gt;
&lt;br /&gt;
VD partitions the plane in cells where each of these cell represents the closest part of the plane to a particular site. So, if you have sites on a map of various fast food restaurants, the Voronoi diagram tells you which one is physically the closest to your location.&lt;br /&gt;
&lt;br /&gt;
But imagine that we want to consider all restaurant from a particular chain as one entity. We want to know the influence or the domination of a particular chain.&lt;br /&gt;
&lt;br /&gt;
The following images are in pair. The first one is the influence of a chain of restaurant and the second is the actual VD that everyone knows. Cells with the same color represents a chain of restaurant.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj06aob4KJaqZmA-F11Nws9cAJxsnlc60vCj0esLLczRcXQK4xAdR23IkXDZqneW5eNtdPQA4KIcSO3DyWzdDBwxpsmv3086NmgydJ4nlwp1-1xbjcyPcVnYAgZSq98hgA23aWKcou1GvA/s1600/bet_18_21_00_a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj06aob4KJaqZmA-F11Nws9cAJxsnlc60vCj0esLLczRcXQK4xAdR23IkXDZqneW5eNtdPQA4KIcSO3DyWzdDBwxpsmv3086NmgydJ4nlwp1-1xbjcyPcVnYAgZSq98hgA23aWKcou1GvA/s320/bet_18_21_00_a.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUWZGl3PWesLCig_6xOOXGUDF8KVAn7aqQyXjdf6LK0WOQAky-Bt1M_qL-FVNUqHsS8zjscpiaukZL9Ge9Mn17EJ6HJ_9kbl_SmdO85y7hbmo9U-RUxkSoUdV7p9IqoU4MtsfkUOoQ5Ls/s1600/bet_18_21_00_b.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUWZGl3PWesLCig_6xOOXGUDF8KVAn7aqQyXjdf6LK0WOQAky-Bt1M_qL-FVNUqHsS8zjscpiaukZL9Ge9Mn17EJ6HJ_9kbl_SmdO85y7hbmo9U-RUxkSoUdV7p9IqoU4MtsfkUOoQ5Ls/s320/bet_18_21_00_b.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSNPL-bLUNb6L0uyEzKTQcqInlO5vkmqT1q1EaCT0WY6QND2siGLjr3AgrQUjUWfoNR97Idp-2gp8A9N57zL5YvS1bvqHJ69eDTlR3GjfudVHmP4XD_tne1iIbuRzppKLVDaCUGFNwa-Y/s1600/mult_02_a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSNPL-bLUNb6L0uyEzKTQcqInlO5vkmqT1q1EaCT0WY6QND2siGLjr3AgrQUjUWfoNR97Idp-2gp8A9N57zL5YvS1bvqHJ69eDTlR3GjfudVHmP4XD_tne1iIbuRzppKLVDaCUGFNwa-Y/s320/mult_02_a.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkNrHSoFHR8kISqnL_5OhU4zJiiEQmY8i2ameptwD0DVdjAgikV2OI4INVQn3xrrXrXAayLoOlTKtXN01A9952uLMbVIyjzM4Hp-uVNAqGtu5bdpdMKBpxEoseqxTM0VINj0fOVbk6qhU/s1600/mult_02_b.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkNrHSoFHR8kISqnL_5OhU4zJiiEQmY8i2ameptwD0DVdjAgikV2OI4INVQn3xrrXrXAayLoOlTKtXN01A9952uLMbVIyjzM4Hp-uVNAqGtu5bdpdMKBpxEoseqxTM0VINj0fOVbk6qhU/s320/mult_02_b.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
In the images, you can see some brighter points (&lt;i&gt;particularly in the first two images&lt;/i&gt;), this is the actual location of the site (&lt;i&gt;or restaurant for in our example&lt;/i&gt;).&lt;br /&gt;
&lt;br /&gt;
And just like the VD is well known for its role in texture synthesis, we hope to find a way to use the MVD to create some interesting results.&lt;br /&gt;
&lt;br /&gt;
As for the diagram itself, we don&#39;t really know what to do with it or how to interpret it. VD has a dual graph called the Delaunay Triangulation. But what would be the dual graph of MVD ? Where do we put the edges ? That&#39;s an open question.</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/8418956103254296283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/07/merging-voronoi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/8418956103254296283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/8418956103254296283'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/07/merging-voronoi.html' title='merging voronoi'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj06aob4KJaqZmA-F11Nws9cAJxsnlc60vCj0esLLczRcXQK4xAdR23IkXDZqneW5eNtdPQA4KIcSO3DyWzdDBwxpsmv3086NmgydJ4nlwp1-1xbjcyPcVnYAgZSq98hgA23aWKcou1GvA/s72-c/bet_18_21_00_a.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-2116075806419260381</id><published>2011-07-04T22:31:00.000-04:00</published><updated>2011-07-04T22:31:24.546-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="artistic"/><category scheme="http://www.blogger.com/atom/ns#" term="cuda"/><category scheme="http://www.blogger.com/atom/ns#" term="nvidia"/><category scheme="http://www.blogger.com/atom/ns#" term="rendering"/><category scheme="http://www.blogger.com/atom/ns#" term="synthesis"/><category scheme="http://www.blogger.com/atom/ns#" term="texture"/><category scheme="http://www.blogger.com/atom/ns#" term="voronoi"/><title type='text'>More texture synthesis</title><content type='html'>In this post, I present some new result that we really like. Again, it&#39;s a variation of the Voronoi diagram. You can observe the Voronoi cells interacting with each other. The colors help to see clearly the cells. And because of the few number of color, some cells might share the same color but are not related at all.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s some of the results:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr-eS6nvzgn95__SRW6BW2fkErxfLapmSLEoPMOSqnUeJ8RE3uoVH99ec3W9br1isjAdEhjOfyokDj6XcEkwj_0TN2ATamjI7PNKxIs4xdmybMiNFD9bNzdIzB0DvsnubxftZwx_v_Vmo/s1600/compare_01_a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr-eS6nvzgn95__SRW6BW2fkErxfLapmSLEoPMOSqnUeJ8RE3uoVH99ec3W9br1isjAdEhjOfyokDj6XcEkwj_0TN2ATamjI7PNKxIs4xdmybMiNFD9bNzdIzB0DvsnubxftZwx_v_Vmo/s320/compare_01_a.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOzjIJcNsvyZZLb6WERD8pjta61bqxyKU1hkW6MgXyBXzNNbMK5WaRK9q0B1t-LefigHJEtcLiCXbVX6FYoDhTBDoVxinrqb0sE2B-0A4E_CUaihUl_xVq_sFQm1lcwG8zynkVQD0JnJg/s1600/mult_00_a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOzjIJcNsvyZZLb6WERD8pjta61bqxyKU1hkW6MgXyBXzNNbMK5WaRK9q0B1t-LefigHJEtcLiCXbVX6FYoDhTBDoVxinrqb0sE2B-0A4E_CUaihUl_xVq_sFQm1lcwG8zynkVQD0JnJg/s320/mult_00_a.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR8b1_OsxKQ2bzmX-ByNaeVZ0z6EMtGGpSGoI0UMmXL5_NrhEm8vD14hDuduqzc1hvtzgkGnfdUPIaGFSIsgle7Hr9yH7faGa0Ml62q-9CiYrgroHax63dNvdT-AQUArMOtti6rur6QGs/s1600/mult_02_a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR8b1_OsxKQ2bzmX-ByNaeVZ0z6EMtGGpSGoI0UMmXL5_NrhEm8vD14hDuduqzc1hvtzgkGnfdUPIaGFSIsgle7Hr9yH7faGa0Ml62q-9CiYrgroHax63dNvdT-AQUArMOtti6rur6QGs/s320/mult_02_a.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWreTD3WA2dldaZGkl6FLAkrEV9uJFmlFPv2rNlz07ZCxn47Vdd-eGtwIehopz6876hwSDPBULqrbKCRk5UuZZRlUgMWOImeHsJIUcYartRBbVMJgnU-nb4QTGccSf7vkhM8OdpcAZa4w/s1600/mult_03_a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWreTD3WA2dldaZGkl6FLAkrEV9uJFmlFPv2rNlz07ZCxn47Vdd-eGtwIehopz6876hwSDPBULqrbKCRk5UuZZRlUgMWOImeHsJIUcYartRBbVMJgnU-nb4QTGccSf7vkhM8OdpcAZa4w/s320/mult_03_a.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyzB0LVlKW2AQ23PNTBUuLdEqDQ8B8PqGuXe8ER4zV7v-IRmOmTKZ2swNSwGPR_zvqsq0PwfapwgZIihs_H3LOij9uz2X335BGtnFgm5i1G2DGMbavf23AxErwwrgJ6yFXIvfWvurKi-k/s1600/mult_04_a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyzB0LVlKW2AQ23PNTBUuLdEqDQ8B8PqGuXe8ER4zV7v-IRmOmTKZ2swNSwGPR_zvqsq0PwfapwgZIihs_H3LOij9uz2X335BGtnFgm5i1G2DGMbavf23AxErwwrgJ6yFXIvfWvurKi-k/s320/mult_04_a.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfQrwmNbWYqLJSvqX4QTPkcf35Hcp8TK1Ktm5C0ttHXVtZ_tfMKLHQqF3JMHy6-DwcWovaS6sOsAVujiCEFQhn7TBCyInRtqQz_2GZmVvlBO_1adv1CoeMYYAyS14qsefAd1lt2-Gg_yw/s1600/paired_03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfQrwmNbWYqLJSvqX4QTPkcf35Hcp8TK1Ktm5C0ttHXVtZ_tfMKLHQqF3JMHy6-DwcWovaS6sOsAVujiCEFQhn7TBCyInRtqQz_2GZmVvlBO_1adv1CoeMYYAyS14qsefAd1lt2-Gg_yw/s320/paired_03.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhksAuLFDkwO5sh35Exv4XcBm_Y894Vu7aI4o51MvJLcbX2irnp39Mu5V-VQZnzgZV9SDjP6SdyGiO3Kan9We6-56YCyERQ6rxErqPRqiC-tcgjy4Drr7EyI50q9QnFG-IVhXARIwUG6ZE/s1600/paired_04.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhksAuLFDkwO5sh35Exv4XcBm_Y894Vu7aI4o51MvJLcbX2irnp39Mu5V-VQZnzgZV9SDjP6SdyGiO3Kan9We6-56YCyERQ6rxErqPRqiC-tcgjy4Drr7EyI50q9QnFG-IVhXARIwUG6ZE/s320/paired_04.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
This method, if it produces the result we&#39;re expecting, can be used to create texture by simply specifying some parameters or an artist can use a program with that method implemented to place some control points and control other parameters.&lt;br /&gt;
&lt;br /&gt;
Again, all these images can be computed with CUDA because each pixel is unique.</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/2116075806419260381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/07/more-texture-synthesis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/2116075806419260381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/2116075806419260381'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/07/more-texture-synthesis.html' title='More texture synthesis'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr-eS6nvzgn95__SRW6BW2fkErxfLapmSLEoPMOSqnUeJ8RE3uoVH99ec3W9br1isjAdEhjOfyokDj6XcEkwj_0TN2ATamjI7PNKxIs4xdmybMiNFD9bNzdIzB0DvsnubxftZwx_v_Vmo/s72-c/compare_01_a.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5917243066768946222.post-2771532062254496198</id><published>2011-06-27T16:03:00.000-04:00</published><updated>2011-06-27T16:03:57.829-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cuda"/><category scheme="http://www.blogger.com/atom/ns#" term="mosaic"/><category scheme="http://www.blogger.com/atom/ns#" term="nvidia"/><category scheme="http://www.blogger.com/atom/ns#" term="orientation"/><category scheme="http://www.blogger.com/atom/ns#" term="point"/><category scheme="http://www.blogger.com/atom/ns#" term="South Park"/><category scheme="http://www.blogger.com/atom/ns#" term="voronoi"/><title type='text'>mosaic</title><content type='html'>Yesterday I mentioned using images as a source for the points and orientations. And I managed to do something.&lt;br /&gt;
&lt;br /&gt;
First, the original image (a South Park version of myself, before I lose some weight):&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpiyqjmgDVdzdPwgUsKPLfINrocqgMJyn2vfgaDIsd2_IwCuLMofDPVR5J2aS03fRad3Ppm34QwDLaDApoFn5Be921HfvIbNbOn8Wrhrunm-6SwkGock8-WkRK8CpeoLYSkWHrBdLzdFY/s1600/me_southpark.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpiyqjmgDVdzdPwgUsKPLfINrocqgMJyn2vfgaDIsd2_IwCuLMofDPVR5J2aS03fRad3Ppm34QwDLaDApoFn5Be921HfvIbNbOn8Wrhrunm-6SwkGock8-WkRK8CpeoLYSkWHrBdLzdFY/s1600/me_southpark.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
And here&#39;s the various mosaic:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHucV4RaZCQlI1UAIKJkGvKjnkyptdeWXMbBIwjkZxWqUSQtjz3v5_yuVM2-gz-j-GeB0BY-t9kOJhcRB3sLTxKSBD_F8nWgjykyXhKGEdvRn4QDCzcwMLjZuuwaz9_xztgGdARy37s3I/s1600/out_01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHucV4RaZCQlI1UAIKJkGvKjnkyptdeWXMbBIwjkZxWqUSQtjz3v5_yuVM2-gz-j-GeB0BY-t9kOJhcRB3sLTxKSBD_F8nWgjykyXhKGEdvRn4QDCzcwMLjZuuwaz9_xztgGdARy37s3I/s320/out_01.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCwTjAioWqjj6GjHyf8ib5s-mGIuGMUdDQudf6BSGOztCSHLKinzUHIVg1hZa2iGOdCDKCgMQNedPKJQ4RmY_K_FldPJuP5czQdDxdWHOp8D3wcSixjq29MuhWZf99kTKEbfkwZMSNsR8/s1600/out_03_255.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCwTjAioWqjj6GjHyf8ib5s-mGIuGMUdDQudf6BSGOztCSHLKinzUHIVg1hZa2iGOdCDKCgMQNedPKJQ4RmY_K_FldPJuP5czQdDxdWHOp8D3wcSixjq29MuhWZf99kTKEbfkwZMSNsR8/s320/out_03_255.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSHt-XVNqGr7e_SbGtaEgtWbCskN6ltzu8O0NNwQCIa9qysoSVfgSnR9u_n9SVHIoKxf0cpU2MDnvj3wYDt36OS8lpxXB3jwCu-hVwkRcqwYj_m0c6AaIetGlmtVrAVMTHsYuFQJzJ_Fs/s1600/out_04_128.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSHt-XVNqGr7e_SbGtaEgtWbCskN6ltzu8O0NNwQCIa9qysoSVfgSnR9u_n9SVHIoKxf0cpU2MDnvj3wYDt36OS8lpxXB3jwCu-hVwkRcqwYj_m0c6AaIetGlmtVrAVMTHsYuFQJzJ_Fs/s320/out_04_128.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVqTw-uy3muCwAnDUlyHyEDVcjuE9edGp5E83BNdWyBT_FT-23nKuyAG-oSwZV0mj0gnNEn85BxBafP7U4-EkHTLdsaY5fOfceGYMdf1QmrakRFo7sozW-ZOWhwzFlME3WZXEp6f-BMh0/s1600/out_07_128.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVqTw-uy3muCwAnDUlyHyEDVcjuE9edGp5E83BNdWyBT_FT-23nKuyAG-oSwZV0mj0gnNEn85BxBafP7U4-EkHTLdsaY5fOfceGYMdf1QmrakRFo7sozW-ZOWhwzFlME3WZXEp6f-BMh0/s320/out_07_128.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3egeYEKbKOSIh_OON7V2wSLDKGlDBUWl0uqhicJLFG1anOn2D7CTy56FD6oijx-4n_bdexbjIrUhyxwe2IVrnuigXlIRlzrTSjWpTWBkog7e8P1K9KMp5tXwLa-JTCi0_mOpPWcIDjTU/s1600/out_08_new_M_0.9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3egeYEKbKOSIh_OON7V2wSLDKGlDBUWl0uqhicJLFG1anOn2D7CTy56FD6oijx-4n_bdexbjIrUhyxwe2IVrnuigXlIRlzrTSjWpTWBkog7e8P1K9KMp5tXwLa-JTCi0_mOpPWcIDjTU/s320/out_08_new_M_0.9.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
I used various effects to control the orientation in the cell. Plus I tried a random point selection, except for the first output.&lt;br /&gt;
&lt;br /&gt;
Which one do you prefer ?&lt;br /&gt;
&lt;br /&gt;
Naturally, to produce the output, I&#39;m still using CUDA. I didn&#39;t used any data structure to optimize, so it can be computed a bit faster.</content><link rel='replies' type='application/atom+xml' href='http://widgg-research.blogspot.com/feeds/2771532062254496198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://widgg-research.blogspot.com/2011/06/mosaic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/2771532062254496198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5917243066768946222/posts/default/2771532062254496198'/><link rel='alternate' type='text/html' href='http://widgg-research.blogspot.com/2011/06/mosaic.html' title='mosaic'/><author><name>widgg</name><uri>http://www.blogger.com/profile/06726054590740287992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJTkP5uywa31j9IYFkOdqMnvZITVhX9f5-NgT8ToYXoYAwGSBKLZ6mJzBUyPrSWq02rjSUIh5sEBC-DWDIqsrJM3EPA2NAU7AD-OkpAs3y3zvMwzuzz-FhHU8og977xg/s220/circ_over_diameter.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpiyqjmgDVdzdPwgUsKPLfINrocqgMJyn2vfgaDIsd2_IwCuLMofDPVR5J2aS03fRad3Ppm34QwDLaDApoFn5Be921HfvIbNbOn8Wrhrunm-6SwkGock8-WkRK8CpeoLYSkWHrBdLzdFY/s72-c/me_southpark.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>