<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Content processor parameters in XNA Game Studio 2.0</title><link>http://blogs.msdn.com/b/shawnhar/archive/2007/11/26/content-processor-parameters-in-xna-game-studio-2-0.aspx</link><description>One of the 2.0 features I am personally happiest about is the addition of custom parameters to control how your content gets built. This is something we always wanted to do, but didn't have time for in v1, so it feels great to be able to finally finish</description><dc:language>en</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Content processor parameters in XNA Game Studio 2.0</title><link>http://blogs.msdn.com/b/shawnhar/archive/2007/11/26/content-processor-parameters-in-xna-game-studio-2-0.aspx#9922046</link><pubDate>Fri, 13 Nov 2009 16:48:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9922046</guid><dc:creator>Shawn Hargreaves - MSFT</dc:creator><description>&lt;p&gt;mike: I would recommend the forums on creators.xna.com for this question. Blog post comments aren't really the best place for posting code snippets etc!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9922046" width="1" height="1"&gt;</description></item><item><title>re: Content processor parameters in XNA Game Studio 2.0</title><link>http://blogs.msdn.com/b/shawnhar/archive/2007/11/26/content-processor-parameters-in-xna-game-studio-2-0.aspx#9921853</link><pubDate>Fri, 13 Nov 2009 10:15:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9921853</guid><dc:creator>mike</dc:creator><description>&lt;p&gt;In xna 3.1, is it possible to set the processor parameters in code. The context is if i was use msBuild to build content, it seems like i'm stuck using the default &amp;nbsp;values for the model processor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9921853" width="1" height="1"&gt;</description></item><item><title>re: Content processor parameters in XNA Game Studio 2.0</title><link>http://blogs.msdn.com/b/shawnhar/archive/2007/11/26/content-processor-parameters-in-xna-game-studio-2-0.aspx#9553792</link><pubDate>Fri, 17 Apr 2009 07:05:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9553792</guid><dc:creator>wolfenstein99</dc:creator><description>&lt;p&gt;Looks like I answered my own question again.&lt;/p&gt;
&lt;p&gt;You need to do: [DefaultValue(typeof(Color), &amp;quot;0, 255, 0, 255&amp;quot;)]&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9553792" width="1" height="1"&gt;</description></item><item><title>re: Content processor parameters in XNA Game Studio 2.0</title><link>http://blogs.msdn.com/b/shawnhar/archive/2007/11/26/content-processor-parameters-in-xna-game-studio-2-0.aspx#9553783</link><pubDate>Fri, 17 Apr 2009 06:56:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9553783</guid><dc:creator>wolfenstein99</dc:creator><description>&lt;p&gt;OK, it looks like you have to type the Color into the text box in the format: R,B,G,A&lt;/p&gt;
&lt;p&gt;Then after you compile the nested R,B,G,A props become available.&lt;/p&gt;
&lt;p&gt;I take it the &amp;quot;[DefaultValue(Color.Magenta)]&amp;quot; entry won't work though?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9553783" width="1" height="1"&gt;</description></item><item><title>re: Content processor parameters in XNA Game Studio 2.0</title><link>http://blogs.msdn.com/b/shawnhar/archive/2007/11/26/content-processor-parameters-in-xna-game-studio-2-0.aspx#9553772</link><pubDate>Fri, 17 Apr 2009 06:47:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9553772</guid><dc:creator>wolfenstein99</dc:creator><description>&lt;p&gt;Hi Shawn,&lt;/p&gt;
&lt;p&gt;I have the following code in a Custom Texture Processor class:&lt;/p&gt;
&lt;p&gt;private Color colorKeyColor = Color.White;&lt;/p&gt;
&lt;p&gt;[DisplayName(&amp;quot;Color Key Color&amp;quot;)]&lt;/p&gt;
&lt;p&gt;//[DefaultValue(Color.Magenta)]&lt;/p&gt;
&lt;p&gt;[Description(&amp;quot;Color Key&amp;quot;)]&lt;/p&gt;
&lt;p&gt;public Color ColorKeyColor&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;get { return colorKeyColor; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;set { colorKeyColor = value; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;The problem is that the ColorKeyColor prop only shows up as a textbox in the Property Grid, how to I get it to have nested R,G,B,A properties like the standard Texture Processor?&lt;/p&gt;
&lt;p&gt;Also If I uncomment the &amp;quot;[DefaultValue(Color.Magenta)]&amp;quot; line I get an error. How can I set the default Color for this property in the PropertyGrid?&lt;/p&gt;
&lt;p&gt;Thanks!!&lt;/p&gt;
&lt;p&gt;- Chris W&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9553772" width="1" height="1"&gt;</description></item><item><title>re: Content processor parameters in XNA Game Studio 2.0</title><link>http://blogs.msdn.com/b/shawnhar/archive/2007/11/26/content-processor-parameters-in-xna-game-studio-2-0.aspx#8335788</link><pubDate>Tue, 25 Mar 2008 16:23:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8335788</guid><dc:creator>mrandall</dc:creator><description>&lt;p&gt;Just a heads up for anyone new to C# trying to use this information. You need to also include the following line to your list of assemblies if you wish to support the [DefaultValue()], [DisplayName()] and [Description()] method attributes.&lt;/p&gt;
&lt;p&gt;using System.ComponentModel;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8335788" width="1" height="1"&gt;</description></item><item><title>re: Content processor parameters in XNA Game Studio 2.0</title><link>http://blogs.msdn.com/b/shawnhar/archive/2007/11/26/content-processor-parameters-in-xna-game-studio-2-0.aspx#6645843</link><pubDate>Mon, 03 Dec 2007 16:49:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6645843</guid><dc:creator>barret232hxc</dc:creator><description>&lt;p&gt;sorry to sound newbish but I was just wondering how you create a public property. I see the option to add a new content processor. Any direction in this subject would be greatly appreciated. &lt;/p&gt;
&lt;p&gt;On another note that's awesome that we can change these attributes so easy :) &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6645843" width="1" height="1"&gt;</description></item><item><title>re: Content processor parameters in XNA Game Studio 2.0</title><link>http://blogs.msdn.com/b/shawnhar/archive/2007/11/26/content-processor-parameters-in-xna-game-studio-2-0.aspx#6543209</link><pubDate>Tue, 27 Nov 2007 08:52:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6543209</guid><dc:creator>snprbob86</dc:creator><description>&lt;p&gt;I'm not sure how the PropertyGrid control would handle this, but if it's &amp;quot;gracefully&amp;quot;, why not merge Color Key Color and Color Key Enabled to just be a nullable Color Key?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6543209" width="1" height="1"&gt;</description></item><item><title>re: Content processor parameters in XNA Game Studio 2.0</title><link>http://blogs.msdn.com/b/shawnhar/archive/2007/11/26/content-processor-parameters-in-xna-game-studio-2-0.aspx#6540785</link><pubDate>Tue, 27 Nov 2007 06:23:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6540785</guid><dc:creator>Ultrahead</dc:creator><description>&lt;p&gt;From the pictures above, by setting &amp;quot;Generate tangent frames&amp;quot; to &amp;quot;true&amp;quot;, the processor then (re)generates the normal, tangent and binormal vectors for the model, or is it something different?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6540785" width="1" height="1"&gt;</description></item></channel></rss>