<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:a10="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Plane9</title>
    <link>http://www.plane9.com/blog</link>
    <description>The Plane9 visualizer and things of a related nature</description>
    <language>en</language>
    <copyright>Joakim Dahl / Planestate Software</copyright>
    <a10:author>
      <a10:name>Joakim Dahl</a10:name>
      <a10:uri>http://www.plane9.com/profiles/1</a10:uri>
    </a10:author>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Plane9Blog" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="plane9blog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
      <guid isPermaLink="false">bp95</guid>
      <link>http://www.plane9.com/blog/posts/95</link>
      <a10:author>
        <a10:name>Joakim Dahl</a10:name>
        <a10:uri>http://www.plane9.com/profiles/1</a10:uri>
      </a10:author>
      <title>The wonderful world of bloom</title>
      <description>Bloom is a very powerful and useful effect when used in moderation. It&amp;#39;s the simulation of very bright lights. Your monitor can only represent a light intensity that goes from 0.0 to 1.0. So say you render a forest scene with a average brightness of 0.7. Now you want to simulate that the user is looking at the sun in this scene. The brightness of the sun compared to your forest is many orders of magnitude larger but you can only set it to 1.0 so it looks white like a white circle in the sky. But that is all. It wont overshadow the forest as it would if you looked at the sun in real life.&lt;br /&gt;&lt;br /&gt;What bloom does to help in this is that it simulates how the bright light floods over to other part of the scene. This is done using a (large) blur. So you set your sun, can be just a few pixels, to a brightness of 100000.0. Then blur the scene to spread out the brightness over the scene. Here is the problem with bloom. This blur needs to be very wide to be effective. In this example the radius on a 1920x1080 screen needs to be 960 pixels wide if the sun is in the center of the screen.  &lt;br /&gt;&lt;br /&gt;So I have tried to find a good way to solve this problem for quite a while and the simplest and best I could come up with was to downscale the screen then blur it. This system is used in a few scenes and it works somewhat. The blur wont be of a large radius and it will also show aliasing artifacts. It can furthermore quickly become square shaped. But now I finally found a way to do it quickly in a old GDC paper from 2004 by Masaki Kawase and what put the pieces together was the technical paper &amp;#39;Unreal 4 - The Technology Behind the Elemental Demo&amp;#39;. Using the approach outlined in those papers I can go from this&lt;br /&gt;&lt;img src="http://plane9.com/content/blog/20130225-pixel-nobloom.jpg" alt="Screenshot 1" title="Screenshot 1" /&gt;&lt;br /&gt;to this&lt;br /&gt;&lt;img src="http://plane9.com/content/blog/20130225-pixel-bloom.jpg" alt="Screenshot 1" title="Screenshot 1" /&gt;&lt;br /&gt;&lt;br /&gt;using about 1.5ms/5% of frame time on a NVidia Geforce 670&lt;br /&gt;&lt;br /&gt;Here are a few more practical examples. The first one shows what the effect can do to a simple dull looking cube.&lt;br /&gt;&lt;img src="http://plane9.com/content/blog/20130225-cube-nobloom.jpg" alt="Screenshot 1" title="Screenshot 1" /&gt;&lt;br /&gt;&lt;img src="http://plane9.com/content/blog/20130225-cube-bloom.jpg" alt="Screenshot 1" title="Screenshot 1" /&gt;&lt;br /&gt;&lt;br /&gt;This next one show how easy it is to create a night sky by just placing some random pixels and applying the effect&lt;br /&gt;&lt;img src="http://plane9.com/content/blog/20130225-starsky-nobloom.jpg" alt="Screenshot 1" title="Screenshot 1" /&gt;&lt;br /&gt;&lt;img src="http://plane9.com/content/blog/20130225-starsky-bloom.jpg" alt="Screenshot 1" title="Screenshot 1" /&gt;&lt;br /&gt;</description>
      <pubDate>Mon, 25 Feb 2013 21:02:00 Z</pubDate>
      <a10:updated>2013-02-25T21:02:00Z</a10:updated>
    </item>
    <item>
      <guid isPermaLink="false">bp93</guid>
      <link>http://www.plane9.com/blog/posts/93</link>
      <a10:author>
        <a10:name>Joakim Dahl</a10:name>
        <a10:uri>http://www.plane9.com/profiles/1</a10:uri>
      </a10:author>
      <title>The road to v2.0</title>
      <description>Work has been progressing along for the v2.0 release. It has however taken a bit longer than I hoped. The main feature of the release was going to be a completely rebuilt GUI using Qt 5.0. This is so I can remove the dependency on .Net and the commercial GUI control library I used with it. That however relied on that Qt 5.0 actually got released and it has been postponed since Nokia, the previous owner, sold it. Luckily it is progressing and what I have tested so far from the beta that got release not too long ago looks very promising. &lt;br /&gt;&lt;br /&gt;I started to rebuild the gui in WPF first but then Microsoft couldn&amp;#39;t give a clear response on how they saw the future and what technology they though should be used for real desktop applications (WinForm, WPF, Silverlight, &amp;#39;Metro&amp;#39;). So I started to look around for a alternative that should be supported for the foreseeable future. That is where I found Qt and comparing QML (Qt) with XAML (WPF) it just boggles the mind of how complicated Microsoft did it&amp;#39;s control setup and how simple and easy it could be to create a gui. Qt really succeeded there and used a javascript engine as a base. Something a lot of developers already know or have use for in other projects.&lt;br /&gt;&lt;br /&gt;While waiting for the official Qt 5.0 release I have however added some new features to the engine that looks very promising. I&amp;#39;ll do some separate posts about these new changes in the future. &lt;br /&gt;&lt;br /&gt;As it looks now so will there be breaking changes in the scene format and I want to get as many breaking changes in as possible in v2.0 so I don&amp;#39;t have to break the scene format again in some other future release.&lt;br /&gt;&lt;br /&gt;</description>
      <pubDate>Thu, 04 Oct 2012 14:51:00 Z</pubDate>
      <a10:updated>2012-10-04T14:51:00Z</a10:updated>
    </item>
    <item>
      <guid isPermaLink="false">bp91</guid>
      <link>http://www.plane9.com/blog/posts/91</link>
      <a10:author>
        <a10:name>Joakim Dahl</a10:name>
        <a10:uri>http://www.plane9.com/profiles/1</a10:uri>
      </a10:author>
      <title>New scenes &amp; website updates</title>
      <description>I&amp;#39;m currently working on v2.0 of the visualizer and it will be a while longer until it can be launched since its a complete rewrite of the configuration and scene editor. Because of this I will start to upload a few new scenes as a normal user and eat my own dog food so to speak by going though the real scene upload system. I have found and fixed a few issues so far and if I find any more I&amp;#39;ll correct them too. So if you have a nice scene feel free to upload it. &lt;br /&gt;&lt;br /&gt;The front page has received a &amp;#39;new scenes&amp;#39; section. It should help when trying to quickly see if any new scenes has been uploaded. The scenes page have received a few extra tabs also to filter the existing scenes and quickly find scenes that are not included in the installer. &lt;br /&gt;&lt;br /&gt;Since new scenes are now uploaded to the site you have to go to the site and download the scenes manually if you like one. The visualizer already captures the scene specific file extension so it should be a quite streamlined experience. The process should works something like this.&lt;br /&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Click to download scene&lt;/li&gt;
&lt;li&gt;Go to the folder where the scene was placed or double click on it in the browsers file download window&lt;/li&gt;
&lt;li&gt;Answer yes that you want to import the scene&lt;/li&gt;
&lt;li&gt;Answer yes that you want to open the configuration window&lt;/li&gt;
&lt;li&gt;Go to the scenes tab and you should find the new scene under the &amp;#39;Imported&amp;#39; branch&lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;The website have also received a few visual tweaks however you need a fairly modern browser to see them.&lt;br /&gt;&lt;br /&gt;Lastly the &lt;a href="http://plane9.com/plane9/stats" class="externalLink"&gt;statistics page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; have been updated with a few new values including memory and core counts.&lt;br /&gt;</description>
      <pubDate>Sun, 16 Oct 2011 15:24:00 Z</pubDate>
      <a10:updated>2011-10-16T15:24:00Z</a10:updated>
    </item>
    <item>
      <guid isPermaLink="false">bp90</guid>
      <link>http://www.plane9.com/blog/posts/90</link>
      <a10:author>
        <a10:name>Joakim Dahl</a10:name>
        <a10:uri>http://www.plane9.com/profiles/1</a10:uri>
      </a10:author>
      <title>Plane9 v1.8 has been released</title>
      <description>The main features in this release is distance field fonts and ColorNext output port.&lt;br /&gt;&lt;br /&gt;The distance field fonts creates much nicer font using the same installer size and performance as before. It also allows for creation of outline effect and the like.&lt;br /&gt;&lt;img src="http://plane9.com/content/blog/20110605-colorclock.jpg" alt="Color clock" title="Color clock" /&gt;&lt;br /&gt;&lt;br /&gt;The render to texture node now has a &amp;#39;ColorNext&amp;#39; output. It contains the next buffer to be rendered to. The texture can be used as a texture input further down the graph and thus create mirror effects, &amp;#39;life&amp;#39; simulations, 2d fluid effects and the like. &lt;br /&gt;&lt;img src="http://plane9.com/content/blog/20110605-smokebox.jpg" alt="Smokebox" title="Smokebox" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Added&lt;/b&gt;
&lt;ul&gt;&lt;li&gt;Engine: 30 new scenes&lt;/li&gt;
&lt;li&gt;Engine: RenderToTexture has a ColorNext that contains the texture that will be reused in the next frame. Can be used for &amp;#39;ping-pong&amp;#39; effects&lt;/li&gt;
&lt;li&gt;Engine: Shatter node&lt;/li&gt;
&lt;li&gt;Engine: Added font type to clock node&lt;/li&gt;
&lt;li&gt;Engine: Clock uses shader port for font shader&lt;/li&gt;
&lt;li&gt;Engine: TextWriter uses shader port for font shader&lt;/li&gt;
&lt;li&gt;Editor: Select a template when creating a new scene&lt;/li&gt;
&lt;li&gt;Editor: Strings delay port updates for 0.5s before updating the engine. Helps when quickly writing in large shaders&lt;/li&gt;
&lt;li&gt;Editor: FPS lock toggle&lt;/li&gt;
&lt;li&gt;Engine: CopyToTexture added effect ports to allow filtering during the copy&lt;/li&gt;
&lt;li&gt;Engine: Auto skip slow scenes after 5 seconds&lt;/li&gt;
&lt;li&gt;Engine: A scene now knows what other scenes it will fit well/not well with&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;b&gt;Modified/fixed&lt;/b&gt;
&lt;ul&gt;&lt;li&gt;Engine: Much improved font rendering using distance fields&lt;/li&gt;
&lt;li&gt;Engine: numchars doesn&amp;#39;t work in the textwriter expression&lt;/li&gt;
&lt;li&gt;Engine: Changed default font size to 1.0 &lt;b&gt;Breaking change&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Engine: Clock/Textwriter color port has been renamed to color1 &lt;b&gt;Breaking change&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Engine: Updated to Cg Feb 2011 Release&lt;/li&gt;
&lt;li&gt;Config: Monitors that didn&amp;#39;t exists was shown on the render tab&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;</description>
      <pubDate>Sun, 05 Jun 2011 18:43:00 Z</pubDate>
      <a10:updated>2011-06-05T18:43:00Z</a10:updated>
    </item>
    <item>
      <guid isPermaLink="false">bp89</guid>
      <link>http://www.plane9.com/blog/posts/89</link>
      <a10:author>
        <a10:name>Joakim Dahl</a10:name>
        <a10:uri>http://www.plane9.com/profiles/1</a10:uri>
      </a10:author>
      <title>Statistics</title>
      <description>Previously I had to use the &lt;a href="http://store.steampowered.com/hwsurvey" class="externalLink"&gt;steam hardware survey&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; to try to get an idea of what users actually have for machines. But their survey is from gamers that play games. To help in dealing with this lack of screensaver/music visualizer oriented information the anonymous usage statistics was added to the visualizer.&lt;br /&gt;&lt;br /&gt;I though I share some of these findings for others to use. So if you want to create a demo, music visualizer or screensaver this information should hopefully match your intended target audience better than the steam hardware survey does.&lt;br /&gt;&lt;br /&gt;The statistics are updated once a day and shown on the &lt;a href="http://plane9.com/plane9/stats" class="externalLink"&gt;plane9 statistics page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Statistics is also gathered on what scenes are most viewed and this did really have a few surprises for me. &lt;br /&gt;&lt;br /&gt;The top 10 scenes are as follows&lt;br /&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt;Scene name&lt;/th&gt;&lt;th&gt;Run count&lt;/th&gt;&lt;th&gt;Run time&lt;/th&gt;&lt;th&gt;Average FPS&lt;/th&gt;&lt;th&gt;Number of installations&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;things\android.p9s&lt;/td&gt;&lt;td&gt;200702&lt;/td&gt;&lt;td&gt;237 days&lt;/td&gt;&lt;td&gt;15&lt;/td&gt;&lt;td&gt;22.93 %&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;misc\matrixtrails.p9s&lt;/td&gt;&lt;td&gt;493544&lt;/td&gt;&lt;td&gt;179 days&lt;/td&gt;&lt;td&gt;24&lt;/td&gt;&lt;td&gt;24.47 %&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;particle\starfield.p9s&lt;/td&gt;&lt;td&gt;470176&lt;/td&gt;&lt;td&gt;126 days&lt;/td&gt;&lt;td&gt;28&lt;/td&gt;&lt;td&gt;28.56 %&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;nature\galaxy.p9s&lt;/td&gt;&lt;td&gt;463027&lt;/td&gt;&lt;td&gt;125 days&lt;/td&gt;&lt;td&gt;22&lt;/td&gt;&lt;td&gt;28.64 %&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;text\crimescene.p9s&lt;/td&gt;&lt;td&gt;242669&lt;/td&gt;&lt;td&gt;122 days&lt;/td&gt;&lt;td&gt;29&lt;/td&gt;&lt;td&gt;23.68 %&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;demoscene\metaice.p9s&lt;/td&gt;&lt;td&gt;215094&lt;/td&gt;&lt;td&gt;118 days&lt;/td&gt;&lt;td&gt;20&lt;/td&gt;&lt;td&gt;24.85 %&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;abstract\colorstorm.p9s&lt;/td&gt;&lt;td&gt;288543&lt;/td&gt;&lt;td&gt;114 days&lt;/td&gt;&lt;td&gt;25&lt;/td&gt;&lt;td&gt;24.22 %&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;particle\particlespray.p9s&lt;/td&gt;&lt;td&gt;339066&lt;/td&gt;&lt;td&gt;113 days&lt;/td&gt;&lt;td&gt;29&lt;/td&gt;&lt;td&gt;25.10 %&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;demoscene\totheroadofribbon.p9s&lt;/td&gt;&lt;td&gt;229125&lt;/td&gt;&lt;td&gt;112 days&lt;/td&gt;&lt;td&gt;20&lt;/td&gt;&lt;td&gt;24.74 %&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;demoscene\chasingthedream.p9s&lt;/td&gt;&lt;td&gt;229974&lt;/td&gt;&lt;td&gt;109 days&lt;/td&gt;&lt;td&gt;20&lt;/td&gt;&lt;td&gt;24.78 %&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;Run count is counted as anytime the scene is viewed. &lt;br /&gt;Average fps is the average frames per second. &lt;br /&gt;Number of installations is the amount of installations that have viewed the specific scene.&lt;br /&gt;&lt;br /&gt;Seems like there is a lot of android users out there since it tops the list. I have to thank &lt;a href="http://industrialarithmetic.blogspot.com/2011/01/ray-traced-google-robot-in-webgl.html" class="externalLink"&gt;Simon green&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; again for allowing me to use his shader for that scene. 15 fps for average fps on a realtime raytraced scene is rather good. It&amp;#39;s interesting to see starfield in the top 3. I guess nothing beats the old classics. But what surprised me is that the crimescene scene is in the top 5. Its a scene I was very close to removing since I though it to be quite pointless. But I&amp;#39;m happy to have been proven wrong on that.&lt;br /&gt;We also have 3 demoscene related scenes that got their shaders from various intros. This is exactly what I hoped for. That great intros that would have been viewed once or twice and then forgotten now are running on monitors across the world for all to see. Totheroadofribbon &amp;amp; metaice are created by &lt;a href="http://www.frequency.fr" class="externalLink"&gt;XT95/FRequency&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. Chasingthedream is just a slight modification I did on totheroadofribbon.&lt;br /&gt;&lt;br /&gt;Now all I need to do is to figure out how to create a scene featuring a android in a crimescene in the matrix while flying though a starfield... then again. Maybe not.&lt;br /&gt;&lt;br /&gt;Lastly we have the run count for the various applications&lt;br /&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt;Application name&lt;/th&gt;&lt;th&gt;Run count&lt;/th&gt;&lt;th&gt;Run time&lt;/th&gt;&lt;th&gt;Average FPS&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Config&lt;/td&gt;&lt;td&gt;5140&lt;/td&gt;&lt;td&gt;17 days&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Editor&lt;/td&gt;&lt;td&gt;1863&lt;/td&gt;&lt;td&gt;30 days&lt;/td&gt;&lt;td&gt;-&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Screensaver&lt;/td&gt;&lt;td&gt;4912640&lt;/td&gt;&lt;td&gt;11 years 318 days&lt;/td&gt;&lt;td&gt;23&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Winamp&lt;/td&gt;&lt;td&gt;18585&lt;/td&gt;&lt;td&gt;409 days&lt;/td&gt;&lt;td&gt;57&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;WMP&lt;/td&gt;&lt;td&gt;5986&lt;/td&gt;&lt;td&gt;112 days&lt;/td&gt;&lt;td&gt;17&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;The screensaver is by far the most used with a bit low average fps of 23. The screensaver is locked to run at a maximum of 30 fps since it is a screensaver and should use a low amount of resources. The reason is probably that the complex android scene is the most viewed that has a average fps of 15.&lt;br /&gt;Winamp comes next but with a much higher average fps of 57. Winamp is locked to 60 fps and is usually run in a smaller window so that can explain the comparatively high fps. The lower fps in windows media player is because windows media player handles the frame locking and only calls the visualizer ever so often.&lt;br /&gt;I&amp;#39;m happy to see that the editor is run quite a lot. I had plans on removing it since no one seemed to use it but with this data in hand it will stay.&lt;br /&gt;</description>
      <pubDate>Wed, 11 May 2011 20:57:00 Z</pubDate>
      <a10:updated>2011-05-11T20:57:00Z</a10:updated>
    </item>
    <item>
      <guid isPermaLink="false">bp88</guid>
      <link>http://www.plane9.com/blog/posts/88</link>
      <a10:author>
        <a10:name>Joakim Dahl</a10:name>
        <a10:uri>http://www.plane9.com/profiles/1</a10:uri>
      </a10:author>
      <title>Shatter</title>
      <description>On the morning of 26th of March I finally came up with an idea that I could use to join the &lt;a href="http://www.dbfinteractive.com/forum/index.php?topic=4924.0" class="externalLink"&gt;DBF Destruction competition 2011&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. The problem was that the deadline was the very same day. The idea I had was to simulate the shattering of glass and as such it was a fairly ambitious idea for the 8 hours that was left until the deadline but I though I might as well try. A while before the deadline I had a entry that I though was good enough to enter the compo with. &lt;br /&gt;&lt;br /&gt;The original entry &lt;a href="http://www.dbfinteractive.com/display_comp.php?dl_id=24" class="externalLink"&gt;finished 3rd&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; but work continued on the effect and this is the end result of a few days of polishing. &lt;br /&gt;&lt;div class="video" style="text-align:Center"&gt;&lt;span class="player"&gt;&lt;object height="450px" width="720px"&gt;&lt;param name="movie" value="http://www.youtube.com/v/8UcEGzIw_NI"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;embed height="450px" width="720px" type="application/x-shockwave-flash" wmode="transparent" src="http://www.youtube.com/v/8UcEGzIw_NI" /&gt;&lt;/object&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="external"&gt;&lt;a href="http://www.youtube.com/watch?v=8UcEGzIw_NI" target="_blank"&gt;Launch in another window&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The process to do this effect is as follows.
&lt;ol&gt;&lt;li&gt;Create 4 points and add to a list&lt;/li&gt;
&lt;li&gt;Depending on the destruction done on the window
&lt;ul&gt;&lt;li&gt;For a explosion randomize a number of points inside the rectangle formed by the 4 points&lt;/li&gt;
&lt;li&gt;For a bullet hit pick a random point and generate rings with the initial point in the center&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Triangulate the point list. &lt;a href="http://paulbourke.net/papers/triangulate" class="externalLink"&gt;Paul Bourkes triangulation&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; works fine for this&lt;/li&gt;
&lt;li&gt;From the triangle soup create one shard per triangle.&lt;/li&gt;
&lt;li&gt;Depending on the destruction done on the window
&lt;ul&gt;&lt;li&gt;For a explosion calculate the distance from ground zero and apply a force equal to that to each point in the shard list&lt;/li&gt;
&lt;li&gt;For a bullet hit calculate the distance from the ray and apply a force equal to that to each point in the shard list&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Use a &lt;a href="http://en.wikipedia.org/wiki/Verlet_integration" class="externalLink"&gt;verlet integrator&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; to simulate the shards particles. The verlet integrator is very simple, fast and stable so perfect for shards.&lt;/li&gt;
&lt;li&gt;After the integrator has moved the shards forward a time step move all points out from any collision surfaces&lt;/li&gt;
&lt;li&gt;Let the effect run for a few seconds then apply a linear interpolation that takes the shard particles back to their original location to create the rebuild effect&lt;/li&gt;
&lt;li&gt;Apply an appropriate shader to the triangle list and the effect is complete&lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;Only one window is simulated and then cloned 3 more times to create the illusion of a fully simulated box.&lt;br /&gt;The first explosion in the video is about 2000 shards in each window the 2nd and 3rd explosions are closer to 30000 per window.&lt;br /&gt;&lt;br /&gt;No textures where used or harmed in the making of this entry. It&amp;#39;s all procedural.&lt;br /&gt;&lt;br /&gt;You can try it &lt;a href="http://plane9.com/content/blog/shatterv2.zip" class="externalLink"&gt;yourself&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. Start it with the &amp;quot;run.bat&amp;quot; file. Most of the scene can be changed in the scenes/shatter.p9s file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description>
      <pubDate>Mon, 04 Apr 2011 18:28:00 Z</pubDate>
      <a10:updated>2011-04-04T18:28:00Z</a10:updated>
    </item>
    <item>
      <guid isPermaLink="false">bp87</guid>
      <link>http://www.plane9.com/blog/posts/87</link>
      <a10:author>
        <a10:name>Joakim Dahl</a10:name>
        <a10:uri>http://www.plane9.com/profiles/1</a10:uri>
      </a10:author>
      <title>Large font support</title>
      <description>A while back I found a &lt;a href="http://www.valvesoftware.com/publications/2007/SIGGRAPH2007_AlphaTestedMagnification.pdf" class="externalLink"&gt;paper by valve&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on how they have done their font system in Team Fortress 2. I wanted to add such a system to the visualizer but didn&amp;#39;t find any good test scene for it. That all changed one day when I noticed &lt;a href="http://thecolourclock.co.uk" class="externalLink"&gt;the colour clock&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; on delicious. It looked rather nice and since the most favorite scene current is the digital led clock I though it could make a fine addition to Plane9. &lt;br /&gt;&lt;br /&gt;After a bit of work it was added and this new distance field font system is one beast with plenty of potential. However the only way to really give the scene creator that power is to allow him/her to edit the shader that is used for rendering and that is exactly what has been added. Slightly more complex but a lot more flexible. &lt;br /&gt;&lt;br /&gt;So how did it go with the color clock? Here is the end result of that&lt;br /&gt;&lt;img src="http://plane9.com/content/blog/20110304-ColorClock.jpg" alt="ColorClock" title="ColorClock" /&gt;&lt;br /&gt;&lt;br /&gt;Since you now have the complete shader system to play around with you can easily use the various noise functions to make the scene more interesting. For example make the text look like it&amp;#39;s made from bubbles.&lt;br /&gt;&lt;img src="http://plane9.com/content/blog/20110306-TextWriter.jpg" alt="Text writer" title="Text writer" /&gt;&lt;br /&gt;It&amp;#39;s just the voronoi shader function doing its work so one line of shader code.&lt;br /&gt;&lt;br /&gt;The end of the last line of text seems to be in a mess because it&amp;#39;s using the character expression that exists in the last few versions of plane9. It works by letting each character have its own expression and move independent of all others. The expression used in the screenshot is simply&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
pos.x = pos.x + noise2(age, charnr*12)*(1-age)*3;
pos.y = pos.y + noise2(age, charnr)*(1-age)*3;
&lt;/pre&gt;&lt;/div&gt;</description>
      <pubDate>Sun, 06 Mar 2011 22:13:00 Z</pubDate>
      <a10:updated>2011-03-06T22:13:00Z</a10:updated>
    </item>
    <item>
      <guid isPermaLink="false">bp86</guid>
      <link>http://www.plane9.com/blog/posts/86</link>
      <a10:author>
        <a10:name>Joakim Dahl</a10:name>
        <a10:uri>http://www.plane9.com/profiles/1</a10:uri>
      </a10:author>
      <title>Plane9 v1.7 has been released</title>
      <description>The next version of the visualizer is hot of the presses and its one very feature packed release. &lt;br /&gt;&lt;br /&gt;But before we go into the release details I want to show my appreciation to the paying supporters of the visualizer and announce that 10 scenes are released exclusively for them. Registered users should receive them shortly. You can also log in to your web page account, or register one if you don&amp;#39;t have one, and enter in your serial number under your accounts page. This will open up the customer page of the website where you can download the exclusive scenes. &lt;br /&gt;Thanks again for you support.&lt;br /&gt;&lt;br /&gt;Here are the changes that have gone into this release&lt;br /&gt;&lt;b&gt;Added&lt;/b&gt;
&lt;ul&gt;&lt;li&gt;Engine: 46 new scenes&lt;/li&gt;
&lt;li&gt;Engine: Editor and screensaver can now react to what is currently playing. So even if you have an unsupported application like itunes or spotify running in the background it will now react to the music! Only works on Vista/Windows 7.&lt;/li&gt;
&lt;li&gt;Engine: CopyTexture node. Copies another texture to a new possibly smaller texture&lt;/li&gt;
&lt;li&gt;Engine: Blur node can now specify radius of blur&lt;/li&gt;
&lt;li&gt;Engine: 2d fluid node&lt;/li&gt;
&lt;li&gt;Engine: Multicolor gradient texture node. Can create linear, radial, cone and square gradients with any center or rotation. Very good for color lookup tables&lt;/li&gt;
&lt;li&gt;Engine: Lightning bolt node&lt;/li&gt;
&lt;li&gt;Engine: Ribbon node. Creates ribbon strips using an expression&lt;/li&gt;
&lt;li&gt;Engine: SignalGenerator node that can generate sine,triangle,square,sawtooth and random waveforms&lt;/li&gt;
&lt;li&gt;Engine: Noise node creates a tillable noise texture in 1-3 dimensions&lt;/li&gt;
&lt;li&gt;Engine: Shader ports have a few, very powerful, predefined functions. See the &lt;a href="http://plane9.com/wiki" class="externalLink"&gt;Wiki&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; for details&lt;/li&gt;
&lt;li&gt;Engine: expression ports now have the functions rand() and srand() that uses seed value from a special port and has a much better random than the functions that take in a seed&lt;/li&gt;
&lt;li&gt;Engine: expression port new functions time() and date()&lt;/li&gt;
&lt;li&gt;Engine: PI,PI2 as define in shaders&lt;/li&gt;
&lt;li&gt;Engine: Shader ports define tex1size/tex2size/tex3size that contains the texture size in pixels&lt;/li&gt;
&lt;li&gt;Engine: Stop logging after writing more than 100kb during one session&lt;/li&gt;
&lt;li&gt;Engine: File texture node handles any texture size&lt;/li&gt;
&lt;li&gt;Engine: Support for 1d and 3d textures&lt;/li&gt;
&lt;li&gt;Engine: Added tangent and binormal to mesh objects&lt;/li&gt;
&lt;li&gt;Engine: Waveform &amp;amp; spectrum supports a mono channel output when specifying channel as -1&lt;/li&gt;
&lt;li&gt;Engine: Added Camera FOV to RenderObject node &lt;b&gt;Breaking change&lt;/b&gt;. Previous fov was 28, it&amp;#39;s now 45&lt;/li&gt;
&lt;li&gt;Engine: Anonymous usage information is periodically sent to help improve the visualizer. For details see the &lt;a href="http://plane9.com/faq" class="externalLink"&gt;faq&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Engine: Screenshots now include the name of the scene(s) that where rendered&lt;/li&gt;
&lt;li&gt;Editor: New much improved editor for shaders and math. Supports search &amp;amp; replace, intellisense, snippets, goto, unlimited undo and a lot more&lt;/li&gt;
&lt;li&gt;Editor: Color ports now show the color and have a picker dialog that can be shown&lt;/li&gt;
&lt;li&gt;Editor: Frames per second is shown on the status bar&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;b&gt;Changed&lt;/b&gt;
&lt;ul&gt;&lt;li&gt;Engine: Rewritten blur node&lt;/li&gt;
&lt;li&gt;Engine: Rewritten multimonitor support&lt;/li&gt;
&lt;li&gt;Engine: Changed expression ports noise1/2/3 to use simplex noise instead of perlin noise&lt;/li&gt;
&lt;li&gt;Engine: Resource leak when using renderbuffers like the blur/glow effect&lt;/li&gt;
&lt;li&gt;Engine: Disc/Cylinder nodes places a center vertex in the end caps now to make it easier with vertex manipulation on the meshes&lt;/li&gt;
&lt;li&gt;Engine: CloneExpressionNode center option now always centers all objects. No matter the distance between each object&lt;/li&gt;
&lt;li&gt;Engine: Large visual improvement on texture quality&lt;/li&gt;
&lt;li&gt;Engine: Fixed truncation of log if its larger than 100kb when starting&lt;/li&gt;
&lt;li&gt;Engine: Oscilloscope node was missing to update one line&lt;/li&gt;
&lt;li&gt;Engine: RenderObject scale by aspect now works correctly even if the object is rotating&lt;/li&gt;
&lt;li&gt;Engine: Point and Line primitive types works&lt;/li&gt;
&lt;li&gt;Engine: All old scenes have been improved with the new glow/blur, fullscreen render node and the like&lt;/li&gt;
&lt;li&gt;Editor: Crash when no node is selected and clicking create folder&lt;/li&gt;
&lt;li&gt;Editor: Double click on folder showed empty scene&lt;/li&gt;
&lt;li&gt;Engine: Expression smoothstep arguments have been changed to match smoothstep in shaders to avoid confusion. Now they are in the form &amp;quot;smoothstep(min, max, value)&amp;quot; &lt;b&gt;Breaking change&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Engine: &amp;#39;Dont render this monitor&amp;#39; didn&amp;#39;t cover the screen with a black window&lt;/li&gt;
&lt;li&gt;Editor: Crash when clearing rect port values&lt;/li&gt;
&lt;li&gt;Editor: Random crashes when editing variables/functions in expression ports&lt;/li&gt;
&lt;li&gt;Editor: Moved galaxy, grass &amp;amp; starfields nodes into a &amp;#39;nature&amp;#39; group&lt;/li&gt;
&lt;li&gt;Editor: Nicer property descriptions&lt;/li&gt;
&lt;li&gt;Editor: Fixed bug that overwrote port values when selecting another node that had the same port names&lt;/li&gt;
&lt;li&gt;Engine: Handle scene load failure better&lt;/li&gt;
&lt;li&gt;Config: Remade registration dialog to be easier to enter serial&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;b&gt;Deprecated/Removed&lt;/b&gt;
&lt;ul&gt;&lt;li&gt;Engine: Sin node has been deprecated. Use the new SignalGenerator instead&lt;/li&gt;
&lt;li&gt;Installer: Removed noise1,noise2,noise3,noise4,noise5 file textures. Use RandomTexture,NoiseTexture or a shader instead &lt;b&gt;Breaking change&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Installer: Removed snowflake file texture. Only one scene used it so not worth the added size. Replaced with simple shader &lt;b&gt;Breaking change&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;
</description>
      <pubDate>Tue, 22 Feb 2011 19:31:00 Z</pubDate>
      <a10:updated>2011-02-22T19:31:00Z</a10:updated>
    </item>
    <item>
      <guid isPermaLink="false">bp85</guid>
      <link>http://www.plane9.com/blog/posts/85</link>
      <a10:author>
        <a10:name>Joakim Dahl</a10:name>
        <a10:uri>http://www.plane9.com/profiles/1</a10:uri>
      </a10:author>
      <title>Gradients and the magic they can do</title>
      <description>I have spent a lot of time working on the visualizer the past few months so the next release is going to be a big one. Quite a lot of new nodes and scenes are going to be included. One of the new nodes that is going to be in the next release is a gradient node. A gradient in itself isn&amp;#39;t the most interesting thing in the world but it can act as a component in a lot of interesting effects. For example if you combine a yellow and red gradient with a noise effect you have yourself a fire effect. Combine a gradient with mostly black and a spike of color in it, apply it to a turbulence noise effect and you have yourself a energy beam.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://plane9.com/content/blog/20110106-gradientnoise.jpg" alt="Gradient noise" title="Gradient noise" /&gt;&lt;br /&gt;&lt;br /&gt;The gradient node handles linear, radial, conical and square gradients that can have a custom center point and it can also rotate the gradient to any angle. This makes for a very flexible gradient setup that should cater for most needs.&lt;br /&gt;&lt;br /&gt;Here is an example of the gradient types applied to a cube&lt;br /&gt;&lt;img src="http://plane9.com/content/blog/20110106-gradient.jpg" alt="Gradient" title="Gradient" /&gt;&lt;br /&gt;&lt;br /&gt;The project has been growing quite a bit now. It wasn&amp;#39;t long ago it past 110000 lines of code. If you wonder what those lines looks like here is an example to still your curiosity&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
star-&amp;gt;m_StartCol = startColMin + ((startColMax-startColMin) * CRGBA::Rand());
star-&amp;gt;m_EndCol = endColMin + ((endColMax-endColMin) * CRGBA::Rand());
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;The winamp page has another nice big number the project crossed over. Since the visualizer has now been downloaded over 300000 times from &lt;a href="http://www.winamp.com/visualization/plane9/222089" class="externalLink"&gt;winamps web page&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;!</description>
      <pubDate>Thu, 06 Jan 2011 19:31:00 Z</pubDate>
      <a10:updated>2011-01-06T19:31:00Z</a10:updated>
    </item>
    <item>
      <guid isPermaLink="false">bp84</guid>
      <link>http://www.plane9.com/blog/posts/84</link>
      <a10:author>
        <a10:name>Joakim Dahl</a10:name>
        <a10:uri>http://www.plane9.com/profiles/1</a10:uri>
      </a10:author>
      <title>The work it takes to be random</title>
      <description>Creating flexible programs like Plane9 does present some rather unique challenges.&lt;br /&gt;&lt;br /&gt;For example when creating a visualizer that is basically a single effect, like most other screensavers and music visualizers are, you can rather quickly put something together. If it looks ok and gives you the desired effect your done and you can quickly move onto the next feature you want to add. This however doesn&amp;#39;t really work when a end user can create their own content so each part can be used in ways you didn&amp;#39;t plan on from the start. This is of course both a blessing and a curse.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Randomizer&lt;/b&gt;&lt;br /&gt;For a more concrete example of this lets take the randomizer in Plane9. Randomizers, or rather psedorandomizers as is the proper term in this case, is a well studied subject and normally adding one shouldn&amp;#39;t take long at all. Using the build in library functions is the easiest option since its already created for you. However then we run into the problem that Plane9 requires two forms of randomizers. One that generates more true random and another that is based on a specific seed value and will generate the same random values each and every time.&lt;br /&gt;&lt;br /&gt;The standard randomizer has two things against it. You only have one random function so you can&amp;#39;t easily have multiple randomization seeds going at one time. The other thing is that the standard library randomizer is a &lt;a href="http://en.wikipedia.org/wiki/Linear_congruential_generator" class="externalLink"&gt;linear congruential generator&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. So it doesn&amp;#39;t generate very good random values from the start and further more it creates hyperplanes in multiple dimensions. This could be seen if you used the cloneexpression node and randomized the x,y and z position of the objects. Soon enough you would start to see planes form among the points. Here is the problem I mentioned at the start. Normally you could get away with the simple randomizer for the specific effect you wanted. But since this can be used in any number of ways I need to find something better than this. So there in the hunt began.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The hunt for two randomizers&lt;/b&gt;&lt;br /&gt;The first one was rather easy to solve. The one where you want as true random as possible since there is a known good randomizer for this. It&amp;#39;s called &lt;a href="http://en.wikipedia.org/wiki/Mersenne_twister" class="externalLink"&gt;mersenne twister&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. It&amp;#39;s fast and creates very good random values. But this has another problem. It requires a rather large work buffer and seeding it is problematic if you need to do it many times per frame. But if you only need one its very good.&lt;br /&gt;&lt;br /&gt;So that takes care of the first problem. The second one however was more difficult. It should also create very good random values but have as small work buffer as possible and be very fast to reseed. I though this was going to be simpler than it was but just about all good randomizer fail in usually both of the requirements.&lt;br /&gt;&lt;br /&gt;I eventually found what I was looking for in the &lt;a href="http://en.wikipedia.org/wiki/Xorshift" class="externalLink"&gt;xor shift&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; randomizer. It also passes the die hard tests so it should be good enough for a visualizer.&lt;br /&gt;&lt;br /&gt;So in the expression ports. If your calling random() you will get a value from the mersenne twister. If you however call rand() or rand(&amp;amp;myseedvalue) you will get a value created by the xorshift randomizer. Hopefully this will now take care of the randomizer once and for all so I too can go onto adding the next feature and you can get what you expect in your own scenes. Random values that are random.&lt;br /&gt;</description>
      <pubDate>Wed, 01 Dec 2010 20:00:00 Z</pubDate>
      <a10:updated>2010-12-01T20:00:00Z</a10:updated>
    </item>
  </channel>
</rss>
