<?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 Pipeline types</title><link>http://blogs.msdn.com/shawnhar/archive/2007/10/10/content-pipeline-types.aspx</link><description>A couple of people recently pointed out that our documentation isn't very clear on what data types are available in the Content Pipeline, and the relationships between the Content DOM object model produced by the importers, the converted types output</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Content Pipeline types</title><link>http://blogs.msdn.com/shawnhar/archive/2007/10/10/content-pipeline-types.aspx#5393130</link><pubDate>Wed, 10 Oct 2007 22:08:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5393130</guid><dc:creator>Ultrahead</dc:creator><description>&lt;p&gt;I guess &amp;quot;.foo&amp;quot; stands for a &amp;quot;custom file extension&amp;quot; (?)&lt;/p&gt;
</description></item><item><title>re: Content Pipeline types</title><link>http://blogs.msdn.com/shawnhar/archive/2007/10/10/content-pipeline-types.aspx#5393141</link><pubDate>Wed, 10 Oct 2007 22:14:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5393141</guid><dc:creator>ShawnHargreaves</dc:creator><description>&lt;p&gt;&amp;gt; I guess &amp;quot;.foo&amp;quot; stands for a &amp;quot;custom file extension&amp;quot; (?)&lt;/p&gt;
&lt;p&gt;Yep.&lt;/p&gt;
</description></item><item><title>re: Content Pipeline types</title><link>http://blogs.msdn.com/shawnhar/archive/2007/10/10/content-pipeline-types.aspx#5394657</link><pubDate>Thu, 11 Oct 2007 00:30:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5394657</guid><dc:creator>claustopholt</dc:creator><description>&lt;p&gt;This is PRECISELY what I was looking for - great job! Give us more :o)&lt;/p&gt;
&lt;p&gt;In my &amp;quot;day job&amp;quot; as a business systems architect, I've often found that simplified UML sequence diagrams are great at conveying how something works. Forget about doing it exactly to UML specs, just show how a sequence of method calls / events / callbacks interact with eachother. Easy to draw, easy to understand.&lt;/p&gt;
</description></item><item><title>re: Content Pipeline types</title><link>http://blogs.msdn.com/shawnhar/archive/2007/10/10/content-pipeline-types.aspx#5399571</link><pubDate>Thu, 11 Oct 2007 12:05:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5399571</guid><dc:creator>Somersault</dc:creator><description>&lt;p&gt;I was also looking for something like this.&lt;/p&gt;
</description></item><item><title>re: Content Pipeline types</title><link>http://blogs.msdn.com/shawnhar/archive/2007/10/10/content-pipeline-types.aspx#5513298</link><pubDate>Thu, 18 Oct 2007 23:47:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5513298</guid><dc:creator>acemuzzy</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Possibly a dumb question, but can I check _exactly_ what the arrows represent? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does one .x file --&amp;gt; one NodeContent object (via Importer.Import)?&lt;/p&gt;
&lt;p&gt;Does then one NodeContent object --&amp;gt; one ModelContent (via Process.Process)?&lt;/p&gt;
&lt;p&gt;Are the other arrows in that part of the diagram simply indicative of the work that the importer / processer does in iterating through the children? &amp;nbsp;Or are there multiple calls to these the Import() and Process() functions? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;How is a one : many map controlled in that case?&lt;/p&gt;
&lt;p&gt;Similarly - there is only one .xmb file, right, despite all the arros???&lt;/p&gt;
&lt;p&gt;I'm only just reading up about the pipeline in detail (so far I've just used the easy stuff + File.Read() the rest...), so sorry if this is obvious!&lt;/p&gt;
&lt;p&gt;Muzz&lt;/p&gt;
</description></item><item><title>re: Content Pipeline types</title><link>http://blogs.msdn.com/shawnhar/archive/2007/10/10/content-pipeline-types.aspx#5524828</link><pubDate>Fri, 19 Oct 2007 18:13:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5524828</guid><dc:creator>acemuzzy</dc:creator><description>&lt;p&gt;I've also just seen in on msdn:&lt;/p&gt;
&lt;p&gt;If the input type is an EffectMaterialContent, the effect is converted using the EffectProcessor, which seems different to the above?&lt;/p&gt;
&lt;p&gt;Still useful though! thanks!&lt;/p&gt;
</description></item><item><title>re: Content Pipeline types</title><link>http://blogs.msdn.com/shawnhar/archive/2007/10/10/content-pipeline-types.aspx#5530844</link><pubDate>Sat, 20 Oct 2007 02:08:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5530844</guid><dc:creator>ShawnHargreaves</dc:creator><description>&lt;p&gt;The MSDN docs are kind of half accurate. The EffectMaterialContent class is passed to MaterialProcessor, but when MaterialProcessor notices it has an effect to convert, it will kick off a nested build task using the EffectImporter and EffectProcessor to build whatever .fx file the EffectMaterialContent is pointing to.&lt;/p&gt;
&lt;p&gt;There is always a 1 -&amp;gt; 1 map between input file and output .xnb file. In the case of a model, the importer returns a single NodeContent root object which contains the entire model data, but that NodeContent is just the root of a tree that can contain other NodeContents, MeshContents, VertexContents, etc.&lt;/p&gt;
&lt;p&gt;A single processor converts all the objects in this tree, producing a new set of related objects, which are then written into a single .xnb file. At runtime, a single call to content.Load reads that .xnb, returning a Model instance, which internally contains the other runtime data types such as ModelMeshPart, VertexBuffer, etc.&lt;/p&gt;
&lt;p&gt;You can also have references from one file to another. For instance a model file will contain references to textures. The textures aren't actually embedded in the model file, though, so they are built into separate .xnb files using separate importer and processor calls. The resulting model .xnb will contain a reference to the texture .xnb.&lt;/p&gt;
</description></item><item><title>re: Content Pipeline types</title><link>http://blogs.msdn.com/shawnhar/archive/2007/10/10/content-pipeline-types.aspx#5544311</link><pubDate>Sat, 20 Oct 2007 14:21:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5544311</guid><dc:creator>acemuzzy</dc:creator><description>&lt;p&gt;Thanks Shawn. &amp;nbsp;That all makes sense. &amp;nbsp;So basically within the Processor.Process() it calls some other Processor.Process() for the sub-parts - but all retained within one parent.&lt;/p&gt;
&lt;p&gt;Now time for me to start writing some code :)&lt;/p&gt;
</description></item><item><title>re: Content Pipeline types</title><link>http://blogs.msdn.com/shawnhar/archive/2007/10/10/content-pipeline-types.aspx#6434623</link><pubDate>Tue, 20 Nov 2007 17:43:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6434623</guid><dc:creator>gormlai</dc:creator><description>&lt;p&gt;I have a problem with what seems like filename mangling when using the contentpipeline.&lt;/p&gt;
&lt;p&gt;The ContentTool consistently adds ~0 to any filename. I.e. dwarf.x becomes dwarf~0.xnb instead of dwarf.xnb. Of course, this makes it impossible to reference the file.&lt;/p&gt;
&lt;p&gt;It is possible to use the name tag to override this behaviour, however the problem still persists with dependent files. For example if the dwarf.x references armor.dds, then armor~0.xnb will always be generated even if I have also specified armor.dds on its own and overriden the output filename with the name tag. This just produces 2 files. &lt;/p&gt;
&lt;p&gt;I use msbuild with Orcas, however XNA Game Studio seems to suffer from the same behaviour.&lt;/p&gt;
&lt;p&gt;Does there exist a known solution for this?&lt;/p&gt;
</description></item><item><title>re: Content Pipeline types</title><link>http://blogs.msdn.com/shawnhar/archive/2007/10/10/content-pipeline-types.aspx#6436158</link><pubDate>Tue, 20 Nov 2007 19:03:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6436158</guid><dc:creator>gormlai</dc:creator><description>&lt;p&gt;I solved the problem. Mostly an error 40 :-)&lt;/p&gt;
</description></item></channel></rss>