<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Shazzam News</title>
	<atom:link href="http://blog.shazzam-tool.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.shazzam-tool.com</link>
	<description>A place to talk about upcoming changes, new features, bug fixes</description>
	<lastBuildDate>Sat, 27 Feb 2010 06:19:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Shazzam 1.2 &#8211; Multi Input Shaders Added</title>
		<link>http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-multi-input-shaders-added/</link>
		<comments>http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-multi-input-shaders-added/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 18:42:55 +0000</pubDate>
		<dc:creator>waltritscher</dc:creator>
				<category><![CDATA[Shazzam]]></category>

		<guid isPermaLink="false">http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-multi-input-shaders-added/</guid>
		<description><![CDATA[I get a lot of email regarding Shazzam.&#160; One constant request from the community is to add multi-input shaders.&#160; I’m happy to announce that you can now use up to three additional input samples in your shader definition.
First Look
I’ll start by looking at a simple example.&#160; I’m using the MultiInput_MergeImages.fx sample included in Shazzam 1.2.
First, [...]]]></description>
			<content:encoded><![CDATA[<p>I get a lot of email regarding Shazzam.&#160; One constant request from the community is to add multi-input shaders.&#160; I’m happy to announce that you can now use up to three additional input samples in your shader definition.</p>
<h3>First Look</h3>
<p>I’ll start by looking at a simple example.&#160; I’m using the MultiInput_MergeImages.fx sample included in Shazzam 1.2.</p>
<p>First, a little review. All shaders in Shazzam have a least one input sample.&#160; This is typically written like this.</p>
<p><span style="color: green">// this is the main input texture for the shader      <br /></span><span style="color: blue">sampler2D </span><span style="color: black">input : </span><span style="color: blue">register</span><span style="color: #006400">(</span><span style="color: black">s0</span><span style="color: #006400">); </span></p>
<p>To add another input to your shader (in HLSL) you have to create a variable and load it into one of the four GPU ‘S’ registers. Since there are only four registers, that is the limit for the number of samples you can use in your shader. </p>
<p>In the following code snippet I am loading the second sample into register s1.</p>
<pre class="code"><span style="color: green">// this is the main input texture for the shader
</span><span style="color: blue">sampler2D </span><span style="color: black">input : </span><span style="color: blue">register</span><span style="color: #006400">(</span><span style="color: black">s0</span><span style="color: #006400">);

</span><span style="color: green">// this is an additional texture
// note that textures use the S registers
</span><span style="color: blue">sampler2D </span><span style="color: black">Texture1 : </span><span style="color: blue">register</span><span style="color: #006400">(</span><span style="color: black">s1</span><span style="color: #006400">);</span></pre>
<p><a href="http://11011.net/software/vspaste"></a><a href="http://11011.net/software/vspaste"></a></p>
<p>Here are the two inputs that I will use for this example.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image12.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb12.png" width="400" height="271" /></a> </p>
<p>Figure 1 – Primary sample.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image13.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb13.png" width="400" height="276" /></a> </p>
<p>Figure 2 – 2nd sample.</p>
<p>Once we have second sample we can do any of the normal HLSL tricks. On top of the usual tricks you can also combine the pixels, from both samples, in interesting ways. This first example will merge the two images.</p>
<pre class="code"><span style="color: maroon">float </span><span style="color: black">Ratio : </span><span style="color: blue">register</span><span style="color: #006400">(</span><span style="color: black">C0</span><span style="color: #006400">);
</span><span style="color: maroon">float4 </span><span style="color: #191970">main</span><span style="color: #006400">(</span><span style="color: maroon">float2 </span><span style="color: black">uv : </span><span style="color: orange">TEXCOORD</span><span style="color: #006400">) </span><span style="color: black">: </span><span style="color: orange">COLOR
</span><span style="color: #006400">{ 

 </span><span style="color: maroon">float4 </span><span style="color: black">inputTex </span><span style="color: #006400">= </span><span style="color: #6495ed">tex2D</span><span style="color: #006400">(</span><span style="color: black">input</span><span style="color: #006400">, </span><span style="color: black">uv</span><span style="color: #006400">);
 </span><span style="color: maroon">float4 </span><span style="color: black">otherTex </span><span style="color: #006400">= </span><span style="color: #6495ed">tex2D</span><span style="color: #006400">(</span><span style="color: black">Texture1</span><span style="color: #006400">, </span><span style="color: black">uv</span><span style="color: #006400">); </span><span style="color: green">
 </span><span style="color: blue">return </span><span style="color: #006400">((</span><span style="color: black">inputTex </span><span style="color: #006400">* </span><span style="color: black">Ratio</span><span style="color: #006400">) + (</span><span style="color: black">otherTex </span><span style="color: #006400">* (</span><span style="color: black">1 </span><span style="color: #006400">- </span><span style="color: black">Ratio</span><span style="color: #006400">))); </span><span style="color: green">// mix the two images
</span><span style="color: #006400">}
</span></pre>
<p>Here are the results.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image14.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb14.png" width="400" height="276" /></a> </p>
<p>Figure 3 – Merged images.</p>
<h3>Changes in UI</h3>
<p>Now that Shazzam supports multiple inputs the testing interface had to be changed to accommodate selecting other images. When Shazzam detects additional sample input, like this sample HLSL,<br />
  <br /><span style="color: blue">sampler2D </span><span style="color: black">Texture3 :</span><span style="color: blue">register</span><span style="color: #006400">(</span><span style="color: black">s2</span><span style="color: #006400">);</span></p>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p>it automatically adds the ‘OpenImage control’ to the ‘Change shader settings ‘ tab. </p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image15.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb15.png" width="400" height="285" /></a> </p>
<p>Figure 4 – the new change Image controls</p>
<h3>Getting fancier</h3>
<p>I’ve recorded a video to show the new interface.&#160; This video uses a ripple effect to morph between the two sources.</p>
<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9761971&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9761971&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object></p>
<h3>The Catalyst</h3>
<p>I had help with this feature from Nikola Mihaylov, better known as Nokola at nokola.com.&#160; <a href="http://nokola.com">His site is a terrific Silverlight resource</a>.&#160; I suggest you take a look at his work over there.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image16.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb16.png" width="400" height="328" /></a> </p>
<p>Figure 5 – Nokola Shock Game</p>
<p>Nikola and I started corresponding a few months ago while he was working on his new Silverlight application (EasyPainter).&#160; He had a number of questions about Shazzam and many helpful suggestions regarding improvements in the Shazzam&#160; interface. As a result, Nikola contributed some code to the project that enables multi-input shaders. I am grateful for his contribution, he is the catalyst that caused multi-input to be added to Shazzam.</p>
<p><strong>As a side note, be sure and check out his easy painter application. It’s an excellent representation of what can be done in Silverlight 3.</strong></p>
<p><a title="http://nokola.com/EasyPainter/" href="http://nokola.com/EasyPainter/">http://nokola.com/EasyPainter/</a></p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image17.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb17.png" width="400" height="322" /></a> </p>
<p>Figure 6 – Easy Painter</p>
<h3>Future additions</h3>
<p>I’ve added a few sample multi-input&#160; shaders to Shazzam.&#160; I have more samples available from Microsoft.&#160;&#160; Those will be added to a future release as soon as they are Shazzam-alized*.</p>
<p>&#160;</p>
<p>* Shazzam-alized:&#160; Cleaned up, commented and provided with useful default values.</p>
<h3>Contribute your shaders</h3>
<p>Do you have ultra hip shader you are proud to show off? There are many shaders in Shazzam that were contributed by the community. Now that you can create multi-input shaders I’d like to see what you come up with.</p>
<p><a href="mailto:waltonline@scandiasoft.com">Submit your HLSL</a> and see if it ends up in the next release of Shazzam.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-multi-input-shaders-added/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Shazzam 1.2 &#8211; Even more more sample shaders added</title>
		<link>http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-even-more-more-sample-shaders-added/</link>
		<comments>http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-even-more-more-sample-shaders-added/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 07:00:58 +0000</pubDate>
		<dc:creator>waltritscher</dc:creator>
				<category><![CDATA[Shazzam]]></category>

		<guid isPermaLink="false">http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-even-more-more-sample-shaders-added/</guid>
		<description><![CDATA[I’ve added more shaders to the sample folder bringing the total count to nearly forty Here is a quick overview.
ParametricEdgeDetection
We’ve got more contributions from the community.&#160; Rene Schulte (http://kodierer.blogspot.com) sent over a few of his latest creations.      
Figure 1 – Original Image.
 
Figure 2 &#8211; ParametricEdgeDetection

Rene has posted a nice [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve added more shaders to the sample folder bringing the total count to nearly forty Here is a quick overview.</p>
<h3>ParametricEdgeDetection</h3>
<p>We’ve got more contributions from the community.&#160; Rene Schulte (<a title="http://kodierer.blogspot.com" href="http://kodierer.blogspot.com">http://kodierer.blogspot.com</a>) sent over a few of his latest creations.     <br /><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image6.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb6.png" width="400" height="273" /></a> </p>
<p>Figure 1 – Original Image.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image7.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb7.png" width="400" height="273" /></a> </p>
<p>Figure 2 &#8211; ParametricEdgeDetection</p>
</p>
<p>Rene has posted a <a href="http://kodierer.blogspot.com/2009/07/livin-on-edge-silverlight-parametric_4324.html">nice post</a> regarding his ParametricEdgeDetection shader. </p>
<blockquote><p>For Silverlight 3 I&#8217;ve implemented an edge detection post processing effect. It&#8217;s a parametric pixel shader, which performs a common image processing technique called <a href="http://en.wikipedia.org/wiki/Convolution">convolution</a>.</p>
</blockquote>
<h3>TransparentAlternatingPixels</h3>
<p>This is another shader contributed by Rene. Read his <a href="http://kodierer.blogspot.com/2009/10/read-between-pixels-hlsl-kill-pixel.html">blog post</a> for information.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image8.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb8.png" width="400" height="252" /></a> </p>
<p>Figure 3- TransparentAlternatingPixels</p>
<h3>OldMovie</h3>
<p>This is the last contribution from Rene.&#160; This shader makes it easy to simulate an old film, complete with scratches, noise and flickering projector light.&#160; Once again <a href="http://kodierer.blogspot.com/2009/08/ye-olde-pixels-silverlight-3-old-movie.html">Rene has a post explaining</a> more.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image9.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb9.png" width="400" height="295" /></a> </p>
<p>Figure 4 – OldMovie shader applied to wmv file</p>
<h3>Tiler</h3>
<p>The Tiler effect duplicates your sample across rows and columns.&#160; You get a result similar to the TileBrush in WPF.</p>
<p>From <a href="http://blog.boschin.it">A.Boschin</a></p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image10.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb10.png" width="400" height="278" /></a> </p>
<p>Figure 5 – Tiler brush with 3 row and 3 columns</p>
<h3>Splinter</h3>
<p>This is one of my sample effects.&#160; The idea for it came to me earler this week while testing the latest version of Shazzam.&#160;&#160; </p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image11.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb11.png" width="400" height="276" /></a> </p>
<h3>Multi Input Shaders</h3>
<p>We’ve finally added multi-input support to Shazaam. Multi-input support has been in the top 5 feature requests for a long time and it finally is here. Look for another post soon about this popular item.&#160;&#160; Props to <a href="http://nokola.com">nokola</a> for providing the code that got this feature launched.</p>
<p>Oh, and if you have a pixel shader you want to share with the community just <a href="mailto:waltonline@scandiasoft.com">drop me a line</a> and I’ll get it added to the project. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-even-more-more-sample-shaders-added/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Shazzam 1.2 &#8211; Feature Overview</title>
		<link>http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-feature-overview/</link>
		<comments>http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-feature-overview/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 09:13:39 +0000</pubDate>
		<dc:creator>waltritscher</dc:creator>
				<category><![CDATA[Shazzam]]></category>

		<guid isPermaLink="false">http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-feature-overview/</guid>
		<description><![CDATA[Learn more about the features available in Shazzam 1.2.

New shaders added 
Even more shaders 
Multi-input shaders
Sample UI and Media
Image stretch
Tutorials
Bug fixes and other enhancements

]]></description>
			<content:encoded><![CDATA[<p>Learn more about the features available in Shazzam 1.2.</p>
<ul>
<li><a href="http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-new-shaders-added/">New shaders added</a> </li>
<li><a href="http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-even-more-more-sample-shaders-added/">Even more shaders</a> </li>
<li><a href="http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-multi-input-shaders-added/">Multi-input shaders</a></li>
<li>Sample UI and Media</li>
<li>Image stretch</li>
<li>Tutorials</li>
<li>Bug fixes and other enhancements</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-feature-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shazzam 1.2 &#8211; new shaders added</title>
		<link>http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-new-shaders-added/</link>
		<comments>http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-new-shaders-added/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 09:08:04 +0000</pubDate>
		<dc:creator>waltritscher</dc:creator>
				<category><![CDATA[Shazzam]]></category>

		<guid isPermaLink="false">http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-new-shaders-added/</guid>
		<description><![CDATA[There are a handful of new WPF pixel shaders available in our Shazzam Pixel Shader Editor.
WaveWarper
WaveWarper applies a wavy pattern to the input.&#160; This shader was contributed by Timmy Kokke (http://blog.timmykokke.com)    
 
Figure 1 – Original Image.
 

Figure 2 – WaveWarper.
 
Figure 3 – Wavewarper with finer grain waves.
SketchGranite and SketchPencilStroke
These two [...]]]></description>
			<content:encoded><![CDATA[<p>There are a handful of new WPF pixel shaders available in our Shazzam Pixel Shader Editor.</p>
<h3>WaveWarper</h3>
<p>WaveWarper applies a wavy pattern to the input.&#160; This shader was contributed by Timmy Kokke (<a href="http://blog.timmykokke.com">http://blog.timmykokke.com</a>)    </p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb.png" width="400" height="273" /></a> </p>
<p>Figure 1 – Original Image.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image1.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb1.png" width="400" height="273" /></a> </p>
</p>
<p>Figure 2 – WaveWarper.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image2.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb2.png" width="400" height="271" /></a> </p>
<p>Figure 3 – Wavewarper with finer grain waves.</p>
<h3>SketchGranite and SketchPencilStroke</h3>
<p>These two Sketch shader apply a artistic effect, much like pencil drawings, to the input.</p>
<p>This shader was contributed by Ali Daneshmandi&#160; (<a href="http://daneshmandi.spaces.live.com/">http://daneshmandi.spaces.live.com/</a>)</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image3.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb3.png" width="400" height="276" /></a> </p>
<p>Figure 4 – SketchGranite</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image4.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb4.png" width="400" height="276" /></a> </p>
</p>
<p>Figure 5 – SketchPencilStroke</p>
<h3>Bands</h3>
<p>This shader divides the input into vertical bands.</p>
<p>This shader was contributed by Walt Ritsher (<a href="http://blog.wpfwonderland.com">http://blog.wpfwonderland.com</a>)</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image5.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2010/02/image_thumb5.png" width="400" height="276" /></a> </p>
<p>Figure 6 &#8211; Bands</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.shazzam-tool.com/index.php/2010/02/shazzam-1-2-new-shaders-added/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>New version of Shazzam available</title>
		<link>http://blog.shazzam-tool.com/index.php/2010/02/new-version-of-shazzam-available/</link>
		<comments>http://blog.shazzam-tool.com/index.php/2010/02/new-version-of-shazzam-available/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 06:24:08 +0000</pubDate>
		<dc:creator>waltritscher</dc:creator>
				<category><![CDATA[Shazzam]]></category>

		<guid isPermaLink="false">http://blog.shazzam-tool.com/index.php/2010/02/new-version-of-shazzam-available/</guid>
		<description><![CDATA[I’ve uploaded the newest version of Shazzam to the Shazzam-Tool.com servers. The version number for this release is a minor change (1.2.0.21).&#160; but are many interesting updates in the product.&#160; Look for more blog posts on this site for details regarding the new features.
If you have Shazzam installed on your computer it will attempt an [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve uploaded the newest version of Shazzam to the Shazzam-Tool.com servers. The version number for this release is a minor change (1.2.0.21).&#160; but are many interesting updates in the product.&#160; Look for more blog posts on this site for details regarding the new features.</p>
<p>If you have Shazzam installed on your computer it will attempt an update the next time you run the application.&#160; If you don’t have the Shazzam installed you can install it from this location.</p>
<p><a title="http://shazzam-tool.com/publish.htm" href="http://shazzam-tool.com/publish.htm">http://shazzam-tool.com/publish.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.shazzam-tool.com/index.php/2010/02/new-version-of-shazzam-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What&#8217;s New in Shazzam 1.1 &#8211; Better Silverlight Support</title>
		<link>http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-better-silverlight-support/</link>
		<comments>http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-better-silverlight-support/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 18:41:05 +0000</pubDate>
		<dc:creator>waltritscher</dc:creator>
				<category><![CDATA[Help]]></category>
		<category><![CDATA[Shazzam]]></category>

		<guid isPermaLink="false">http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-better-silverlight-support/</guid>
		<description><![CDATA[Silverlight and WPF are different beasts.&#160; The similarities between the two is high, but there are enough differences to foul you up now and then.
Choose your platform preference
There is a new addition to the Settings pane.&#160; The code generation engine will consider your desired platform when generating the .NET classes.
 
Figure 1:&#160; Target Framework setting.
As [...]]]></description>
			<content:encoded><![CDATA[<p>Silverlight and WPF are different beasts.&#160; The similarities between the two is high, but there are enough differences to foul you up now and then.</p>
<h3>Choose your platform preference</h3>
<p>There is a new addition to the Settings pane.&#160; The code generation engine will consider your desired platform when generating the .NET classes.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image20.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image_thumb11.png" width="350" height="342" /></a> </p>
<p>Figure 1:&#160; Target Framework setting.</p>
<p>As you can see from the following code examples Shazzam creates slightly different versions of the DependencyProperty registration code depending on your framework choice.&#160; Shazzam also ignores Point3D, Vector3D, or Point4D property types when creating Silverlight classes as Silverlight 3 doesn’t support these types yet.</p>
<p>&#160;</p>
<pre class="code"><span style="color: green">// Use UIPropertyMetaData for WPF</span></pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<pre class="code"><span style="color: blue"> public </span><span style="color: brown">static readonly </span><span style="color: black">DependencyProperty AspectRatioProperty </span></pre>
<pre class="code"><span style="color: black">      </span><span style="color: #006400">= </span><span style="color: black">DependencyProperty</span><span style="color: #006400">.</span><span style="color: #191970">Register</span><span style="color: #006400">(</span><span style="color: blue">&quot;AspectRatio&quot;</span><span style="color: #006400">, </span><span style="color: #008b8b">typeof</span><span style="color: #006400">(</span><span style="color: red">double</span><span style="color: #006400">), </span></pre>
<pre class="code"><span style="color: #006400">       </span><span style="color: #008b8b">typeof</span><span style="color: #006400">(</span><span style="color: black">BandedSwirlEffect</span><span style="color: #006400">), </span><span style="color: #008b8b">new </span><span style="color: #191970"><strong>UIPropertyMetadata</strong></span><span style="color: #006400">(((</span><span style="color: red">double</span><span style="color: #006400">)(</span><span style="color: #00008b">1.5</span><span style="color: #006400">)), </span></pre>
<pre class="code"><span style="color: #006400">       </span><span style="color: #191970">PixelShaderConstantCallback</span><span style="color: #006400">(</span><span style="color: #00008b">3</span><span style="color: #006400">)));</span></pre>
<pre class="code"><span style="color: #006400">
</span></pre>
<pre class="code"><span style="color: green">// Use PropertyMetaData for Silverlight</span></pre>
<pre class="code"><span style="color: blue">public </span><span style="color: brown">static readonly </span><span style="color: black">DependencyProperty AspectRatioProperty </span></pre>
<pre class="code"><span style="color: black">   </span><span style="color: #006400">= </span><span style="color: black">DependencyProperty</span><span style="color: #006400">.</span><span style="color: #191970">Register</span><span style="color: #006400">(</span><span style="color: blue">&quot;AspectRatio&quot;</span><span style="color: #006400">, </span><span style="color: #008b8b">typeof</span><span style="color: #006400">(</span><span style="color: red">double</span><span style="color: #006400">), </span></pre>
<pre class="code"><span style="color: #006400">   </span><span style="color: #008b8b">typeof</span><span style="color: #006400">(</span><span style="color: black">BandedSwirlEffect</span><span style="color: #006400">), </span><span style="color: #008b8b">new </span><span style="color: #191970"><strong>PropertyMetadata</strong></span><span style="color: #006400">(((</span><span style="color: red">double</span><span style="color: #006400">)(</span><span style="color: #00008b">1.5</span><span style="color: #006400">)),</span></pre>
<pre class="code"><span style="color: #006400">   </span><span style="color: #191970">PixelShaderConstantCallback</span><span style="color: #006400">(</span><span style="color: #00008b">3</span><span style="color: #006400">)));</span></pre>
<pre class="code"><span style="color: #006400"></span><font color="#006400"></font></pre>
<h3><span style="color: #006400">Constructor</span></h3>
<p><a href="http://11011.net/software/vspaste"></a><a href="http://11011.net/software/vspaste"></a></p>
<p>Shazzam now generates a parameterless constructor that automatically loads the compiled pixel shader from an assembly resource.&#160; If the name of your assembly is different from the name of your namespace, you&#8217;ll need to hand-edit the URI in the constructor.&quot;</p>
<p>The resource URI can be relative, taking the form &quot;/AssemblyName;component/ShaderName.ps&quot; – this new syntax works in both WPF and Silverlight.</p>
<h3><span style="color: #006400">Summary</span></h3>
<p><a href="http://11011.net/software/vspaste"></a><a href="http://11011.net/software/vspaste"></a></p>
<p>[Shazzam 1.1 was released on October 11, 2009]</p>
<p>See a list of <a href="http://blog.shazzam-tool.com/index.php/2009/10/shazzam-1-1-topic-list/">additional help pages here</a>.</p>
<p>Install your own copy of the free <a href="http://shazzam-tool.com/publish.htm">Shazzam Pixel Shader Utility here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-better-silverlight-support/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Shazzam 1.1 &#8211; Topic List</title>
		<link>http://blog.shazzam-tool.com/index.php/2009/10/shazzam-1-1-topic-list/</link>
		<comments>http://blog.shazzam-tool.com/index.php/2009/10/shazzam-1-1-topic-list/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 14:27:41 +0000</pubDate>
		<dc:creator>waltritscher</dc:creator>
				<category><![CDATA[Help]]></category>
		<category><![CDATA[Shazzam]]></category>

		<guid isPermaLink="false">http://blog.shazzam-tool.com/index.php/2009/10/shazzam-1-1-topic-list/</guid>
		<description><![CDATA[Learn more about the features available in Shazzam 1.1.
&#160;

HLSL Meta Tags – Controlling defaults 
Better Edit Controls 
Animation 
Better Silverlight Support 

Install your own copy of the free Shazzam Pixel Shader Utility here.
Some video tutorials are available also.
]]></description>
			<content:encoded><![CDATA[<p>Learn more about the features available in Shazzam 1.1.</p>
<p>&#160;</p>
<ul>
<li><a href="http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-metatags-2/">HLSL Meta Tags – Controlling defaults</a> </li>
<li><a href="http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-better-edit-controls/">Better Edit Controls</a> </li>
<li><a href="http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-animation/">Animation</a> </li>
<li><a href="http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-better-silverlight-support/">Better Silverlight Support</a> </li>
</ul>
<p>Install your own copy of the free <a href="http://shazzam-tool.com/publish.htm">Shazzam Pixel Shader Utility here</a>.</p>
<p>Some <a href="http://shazzam-tool.com/">video tutorials</a> are available also.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.shazzam-tool.com/index.php/2009/10/shazzam-1-1-topic-list/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>What&#8217;s New in Shazzam 1.1 &#8211; Animation</title>
		<link>http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-animation/</link>
		<comments>http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-animation/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 14:21:45 +0000</pubDate>
		<dc:creator>waltritscher</dc:creator>
				<category><![CDATA[Help]]></category>
		<category><![CDATA[Shazzam]]></category>

		<guid isPermaLink="false">http://blog.shazzam-tool.com/?p=40</guid>
		<description><![CDATA[Creating shaders is fun.&#160; But it’s more thrilling to see what your new shader can do.&#160;&#160; Shazzam has a testing screen for just that purpose, giving you a place to experiment with your effect, just choose the ‘Change Shader Settings’ tab.
 
Figure1 : Change Shader Settings tab.
The Edit Shader Property control
What happens when you compile [...]]]></description>
			<content:encoded><![CDATA[<p>Creating shaders is fun.&#160; But it’s more thrilling to see what your new shader can do.&#160;&#160; Shazzam has a testing screen for just that purpose, giving you a place to experiment with your effect, just choose the ‘Change Shader Settings’ tab.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image14.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image_thumb5.png" width="450" height="225" /></a> </p>
<p>Figure1 : Change Shader Settings tab.</p>
<h3>The Edit Shader Property control</h3>
<p>What happens when you compile your HLSL code? Each input parameter in your HLSL code is converted to a DependencyProperty in the generated C#/VB code. </p>
<pre class="code"><span style="color: green">/// The HLSL</span></pre>
<pre class="code"><span style="color: green">/// &lt;summary&gt;The aspect ratio (width / height) of the input.&lt;/summary&gt;
/// &lt;minValue&gt;0.5&lt;/minValue&gt;
/// &lt;maxValue&gt;2&lt;/maxValue&gt;
/// &lt;defaultValue&gt;1.5&lt;/defaultValue&gt;
</span><span style="color: maroon">float </span><span style="color: black">AspectRatio : </span><span style="color: blue">register</span><span style="color: #006400">(</span><span style="color: black">C3</span><span style="color: #006400">);</span></pre>
<pre class="code"><span style="color: #006400"></span></pre>
<pre class="code"><span style="color: gray">/// The C# Dependency Property</span></pre>
<pre class="code"><span style="color: gray"></span><span style="color: blue">public </span><span style="color: brown">static readonly </span><span style="color: black">DependencyProperty AspectRatioProperty </span></pre>
<pre class="code"><span style="color: black"></span><span style="color: #006400">   = </span><span style="color: black">DependencyProperty</span><span style="color: #006400">.</span><span style="color: #191970">Register</span><span style="color: #006400">(</span><span style="color: blue">&quot;AspectRatio&quot;</span><span style="color: #006400">, </span><span style="color: #008b8b">typeof</span><span style="color: #006400">(</span><span style="color: red">double</span><span style="color: #006400">), </span></pre>
<pre class="code"><span style="color: #006400"></span><span style="color: #008b8b">   typeof</span><span style="color: #006400">(</span><span style="color: black">BandedSwirlEffect</span><span style="color: #006400">), </span><span style="color: #008b8b">new </span><span style="color: #191970">UIPropertyMetadata</span><span style="color: #006400">(((</span><span style="color: red">double</span><span style="color: #006400">)(</span><span style="color: #00008b">1.5</span><span style="color: #006400">)), </span></pre>
<pre class="code"><span style="color: #006400"></span><span style="color: #191970">   PixelShaderConstantCallback</span><span style="color: #006400">(</span><span style="color: #00008b">3</span><span style="color: #006400">)));
    </span></pre>
<p><a href="http://11011.net/software/vspaste"></a><a href="http://11011.net/software/vspaste"></a></p>
<p>In turn, each DependencyProperty in your generated class is assigned an editor on the test page.&#160; See Figure 2 for an example.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image15.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image_thumb6.png" width="450" height="103" /></a> </p>
<p>Figure 2:&#160; AspectRatio editor.</p>
<p>The Min and Max textboxes on the editor set the range for the value slider.&#160; Move the slider to set the current value for the property (AspectRatio in this example).</p>
<h3>Animating the Property</h3>
<p>Manually changing the slider value is useful to see what happens to the image when a particular test value is applied.&#160; When you find a interesting version of your effect you can jot down the detail&#160; and use it in your Silverlight/WPF application.&#160; But sometimes you just want to play with the settings and see what happens.&#160; That’s why there is an animation section on the edit control.&#160; There are several buttons (exact number depends on the property type) available for controlling the animation.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image16.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image_thumb7.png" width="450" height="456" /></a> </p>
<p>Figure 3: Animation controls.</p>
<p>When the animation is running the value slider is replaced with a status textbox.&#160; This way you can see the current values as the animation runs and not be distracted by the slider racing dizzily back and forth on the screen. </p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image17.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image_thumb8.png" width="450" height="123" /></a> </p>
<p>Figure 4:&#160; Current animation value as text.</p>
<h3>Multi-value Animations</h3>
<p>Some properties like Point and 3DPoint have multiple values in each property. The editor provides more controls for editing and adds another animation button (Circular animation).</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image18.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image_thumb9.png" width="450" height="112" /></a> </p>
<p>Figure 5: Multiple editors and circular animation button.</p>
<h3>Set Default Animation Duration</h3>
<p>The Settings pane has a number of improvements in versions 1.1.&#160; The one you are interested in for today is the Default Animation Duration setting. This specifies the default duration for all animations.&#160; Your default is loaded in to the test page the next time you compile the shader. You can always modify the animation duration on the test screen, the default value is only used as the initial setting.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image19.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image_thumb10.png" width="350" height="624" /></a> </p>
<p>Figure 6:&#160; Setting pane – Default Animation Length.</p>
<h3>Summary</h3>
</p>
</p>
</p>
<p>[Shazzam 1.1 was released on October 11, 2009]</p>
<p>See a list of <a href="http://blog.shazzam-tool.com/index.php/2009/10/shazzam-1-1-topic-list/">additional help pages here</a>.</p>
<p>Install your own copy of the free <a href="http://shazzam-tool.com/publish.htm">Shazzam Pixel Shader Utility here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-animation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What&#8217;s New in Shazzam 1.1 &#8211; Better Edit Controls</title>
		<link>http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-better-edit-controls/</link>
		<comments>http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-better-edit-controls/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 06:17:53 +0000</pubDate>
		<dc:creator>waltritscher</dc:creator>
				<category><![CDATA[Help]]></category>
		<category><![CDATA[Shazzam]]></category>

		<guid isPermaLink="false">http://blog.shazzam-tool.com/?p=24</guid>
		<description><![CDATA[In HLSL code you can create input parameters of various datatypes.&#160; Here’s one of the simplest scalar types, the float.
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; float &#8211; 32-bit floating point value.
There are a number of vector types too.&#160; 
&#160;&#160;&#160;&#160;&#160;&#160;&#160; float2 – two dimensional float vector.    &#160;&#160;&#160;&#160;&#160;&#160;&#160; float3 – three dimensional float vector.     &#160;&#160;&#160;&#160;&#160;&#160;&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>In HLSL code you can create input parameters of various datatypes.&#160; Here’s one of the simplest scalar types, the float.</p>
<p><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; float</em> &#8211; 32-bit floating point value.</p>
<p>There are a number of vector types too.&#160; </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; float2 – two dimensional float vector.    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; float3 – three dimensional float vector.     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; float4 – four dimensional float vector.</p>
<p>When you need two float values stored in a type (think WPF Point and Size types) use a float2 in your HLSL.&#160; float3 is used for types like 3DPoint and float4 is handy for storing the four color values (Alpha, Red, Green, Blue) together.</p>
<h3>Shazzam test controls</h3>
<p>In Shazzam 1.0 float2&#160; and other vector values were shown in the test UI with a single textbox.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image10.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image_thumb1.png" width="344" height="80" /></a> </p>
<p>Figure 1:&#160; Shazzam 1.0 UI</p>
<p>Simple but not the most intuitive interface ever to grace an application.&#160; Plus the point values were not animatable in V1.0. In Shazzam 1.1 the test UI has been changed to support animation and updated to handle float2, float3 and float4 values in a smarter way.</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image11.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image_thumb2.png" width="344" height="338" /></a> </p>
<p>Figure 2:&#160; Shazzam 1.1 UI</p>
<p>There is a better use of color in the UI labeling too, which helps differentiate between labels and data. </p>
<h3>Forcing data type</h3>
<p>There is a new Meta Tag, the &lt;type&gt; tag,&#160; available for decorating your HLSL.&#160; This tag tells the compiler which .NET type to use for a given HLSL variable.</p>
<p><strong>float </strong>can be Double or Single.</p>
<p><strong>float2</strong> can be a Point, Size or Vector.</p>
<p><strong>float3</strong> can be Point3D (not available for Silverlight).</p>
<p><strong>float4</strong> can be Point4D or Color.</p>
<p><strong>Example HLSL</strong></p>
<pre class="code"><span style="color: green">//--------------------------------------------------------------------------------------
// float4
//--------------------------------------------------------------------------------------

// float4 map to Color or Point4D

/// &lt;type&gt;Color&lt;/type&gt;
</span><span style="color: maroon">float4 </span><span style="color: black">SampleColor: </span><span style="color: blue">register</span><span style="color: #006400">(</span><span style="color: black">C4</span><span style="color: #006400">);

</span><span style="color: green">/// &lt;type&gt;Point4D&lt;/type&gt;
</span><span style="color: maroon">float4 </span><span style="color: black">SamplePoint4D : </span><span style="color: blue">register</span><span style="color: #006400">(</span><span style="color: black">C5</span><span style="color: #006400">);</span></pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p>&#160;</p>
</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image12.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image_thumb3.png" width="344" height="226" /></a> </p>
<p>Figure 3:&#160; Shazzam 1.1 Color and Point4D</p>
<p>The result is that the Point4D gets four data entry controls.&#160; You still have to enter a color value (Red, Orange, #Ff4455FF) in a textbox however.&#160; In a future version of&#160; Shazzam this will be replaced with a color picker.&#160; In the meantime you can use the Color Picker in the side pane (thanks <a href="http://nerdplusart.com/">Robby</a>).</p>
<p><a href="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image13.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image_thumb4.png" width="344" height="524" /></a> </p>
<p>Figure 4: Robby’s Color Picker</p>
<h3>Summary</h3>
<p>[Shazzam 1.1 was released on October 11, 2009]</p>
<p>See a list of <a href="http://blog.shazzam-tool.com/index.php/2009/10/shazzam-1-1-topic-list/">additional help pages here</a>.</p>
<p>Install your own copy of the free <a href="http://shazzam-tool.com/publish.htm">Shazzam Pixel Shader Utility here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-better-edit-controls/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What&#8217;s New in Shazzam 1.1 &#8211; MetaTags</title>
		<link>http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-metatags-2/</link>
		<comments>http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-metatags-2/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 05:19:20 +0000</pubDate>
		<dc:creator>waltritscher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.shazzam-tool.com/?p=15</guid>
		<description><![CDATA[
One of my favorite new features in Shazzam 1.1 is the HLSL meta data tags.&#160; Shazzam reads a small set of optional XML tags embedded in your HLSL and uses this meta data to inject information into your generated class.&#160; Plus there are tags for setting default, minimum and maximum values that propagate to the [...]]]></description>
			<content:encoded><![CDATA[</p>
<p>One of my favorite new features in Shazzam 1.1 is the HLSL meta data tags.&#160; Shazzam reads a small set of optional XML tags embedded in your HLSL and uses this meta data to inject information into your generated class.&#160; Plus there are tags for setting default, minimum and maximum values that propagate to the shader testing screen.</p>
<h3>Shazzam MetaTags</h3>
<p>In order to keep the HLSL compiler happy the tags are placed in a comment line.&#160; Use the triple-slash /// syntax to differentiate Shazzam comments from HLSL comments.</p>
<p><strong>Available Tags</strong></p>
<p><strong>&lt;class&gt;</strong>:&#160; The <strong>class</strong> tag specifies your desired Class name for the generated code file.</p>
<p><strong>&lt;namespace&gt;</strong>: The <strong>namespace</strong> tag specifies your desired .NET namespace for the generated code file.</p>
<p><strong>&lt;description&gt;</strong>: The <strong>description</strong> tag injects an XML comment above your class definition in the generated code file.</p>
<p><strong>Example HLSL</strong></p>
<div align="left">
<pre class="code"><span style="color: green">//------------------------------------------------------------
// Specify a default Class name for the generated file
</span><span style="color: gray">/// &lt;class&gt;</span><span style="color: green">DemoEffect</span><span style="color: gray">&lt;/class&gt;
</span><span style="color: green">//-------------------------------------------------------------
// Specify the default &gt;NET namespace for generated file.
</span><span style="color: gray">/// &lt;namespace&gt;</span><span style="color: green">Shazzam.Shaders</span><span style="color: gray">&lt;/namespace&gt;
</span><span style="color: green">//-------------------------------------------------------------
// Provide a description for this Shader
// Shazzam will generate XML comments from this description
</span><span style="color: gray">/// &lt;description&gt;</span><span style="color: green">An effect that demonstrates the Shazzam features.</span><span style="color: gray">&lt;/description&gt;</span></pre>
<p>  <a href="http://11011.net/software/vspaste"></a></div>
<div align="left">
<pre class="code"><span style="color: green"></span>&#160;</pre>
<pre class="code">&#160;</pre>
</div>
<pre class="code"><span style="color: green"></span></pre>
<pre class="code"><a href="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/Shazzam14.png"><img style="display: inline" title="Shazzam1" alt="Shazzam1" src="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/Shazzam1_thumb.png" width="480" height="81" /></a> </pre>
<p><a href="http://11011.net/software/vspaste"></a><a href="http://11011.net/software/vspaste"></a></p>
<p>Figure 1:&#160; Generated class code.</p>
<h3>Testing Screen MetaTags</h3>
<p>The next set of Meta Tags is used to pass information to the Shazzam test page.&#160;&#160; You can specify minValue, maxValue, defaultValue and summary values for each HLSL register.&#160; The generated C# or VB class uses these value as defaults for the class properties.&#160; Plus every time your shader.fx code is compiled the testing UI is initialized with these settings.&#160; No more reentering values every time you compile the shader!</p>
<p><strong>&lt;summary&gt;:&#160; </strong>Provide a summary describing the purpose of this variable.&#160; A summary tooltip will appear in the testing window.</p>
<p><strong>&lt;minValue&gt;: </strong>Provide a default value for the minimum textbox.&#160; Note that you can set the value in the text box to a lower number than the minimum.&#160; minValue merely provides the starting value for the textbox.</p>
<p><strong>&lt;maxValue&gt;:</strong> Provide a default value for the maximum textbox.&#160; Note that you can set the value in the text box to a higher number than the maximum.&#160; maxValue merely provides the starting value for the textbox.</p>
<p><strong>&lt;defaultValue&gt;:</strong> Provide a starting value for the Value slider control.</p>
<p><strong>Example HLSL</strong></p>
<pre class="code"><span style="color: green">// Causes a tooltip to show in Shazzam.</span></pre>
<pre class="code"><span style="color: green"></span><span style="color: green">/// &lt;summary&gt;Summarize the purpose of this variable.&lt;/summary&gt; </span></pre>
<pre class="code"><span style="color: green">
/// &lt;minValue&gt;-20&lt;/minValue&gt;  // provide minimum initial value for the register.
/// &lt;maxValue&gt;300&lt;/maxValue&gt;  // provide maximum initial value for the register.
/// &lt;defaultValue&gt;120&lt;/defaultValue&gt; // provide default value for the register.
</span><span style="color: maroon">float  </span><span style="color: black">SampleFloatWithXML: </span><span style="color: blue">register</span><span style="color: #006400">(</span><span style="color: black">C1</span><span style="color: #006400">);</span></pre>
<p>&#160;</p>
<p>&#160;<a href="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image9.png"><img style="display: inline" title="image" alt="image" src="http://blog.shazzam-tool.com/wp-content/uploads/2009/10/image_thumb.png" width="411" height="82" /></a> </p>
<p>Figure 2:&#160; Min, Max and Default values in the Shader Settings view.</p>
<h3>Summary</h3>
<p>[Shazzam 1.1 was released on October 11, 2009]</p>
<p>See a list of <a href="http://blog.shazzam-tool.com/index.php/2009/10/shazzam-1-1-topic-list/">additional help pages here</a>.</p>
<p>Install your own copy of the free <a href="http://shazzam-tool.com/publish.htm">Shazzam Pixel Shader Utility here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.shazzam-tool.com/index.php/2009/10/whats-new-in-shazzam-1-1-metatags-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
