<?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>Tex2D &#187; rants</title>
	<atom:link href="http://www.tex2d.com/category/rants/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tex2d.com</link>
	<description>Games, Graphics and Grogramming</description>
	<lastBuildDate>Sun, 05 Jul 2009 22:22:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>A rant!</title>
		<link>http://www.tex2d.com/2009/05/a-rant/</link>
		<comments>http://www.tex2d.com/2009/05/a-rant/#comments</comments>
		<pubDate>Wed, 27 May 2009 16:53:00 +0000</pubDate>
		<dc:creator>toni</dc:creator>
				<category><![CDATA[rants]]></category>
		<category><![CDATA[engine]]></category>

		<guid isPermaLink="false">http://www.tex2d.com/?p=23</guid>
		<description><![CDATA[Ok, what the hell were id software&#8217;s designers thinking about when they plotted the material files? I was happy this morning, you know, with my models loading and that things, and i&#8217;ve said &#8220;hey, wired models are cool, but properly textured models are cooler!&#8221; So this noon i&#8217;ve started to look to how materials are [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, what the hell were id software&#8217;s designers thinking about when they plotted the material files?</p>
<p>I was happy this morning, you know, with my models loading and that things, and i&#8217;ve said &#8220;hey, wired models are cool, but properly textured models are cooler!&#8221; So this noon i&#8217;ve started to look to how materials are handled in this otherwise, pretty simple file format.</p>
<p>Imagine my surprise when i&#8217;ve found something like:<br />
shader &#8220;path_to_a_shader/shader_name&#8221;<br />
and only that!</p>
<p>I&#8217;ve thought, ok, there must be a file named &#8220;shader_name&#8221; so I can make an n:1 relation, easy, right? Well, no. Don&#8217;t get me wrong at Insideo we had something similar to, each mesh had a reference name to a material, but there was 1 file for each material!</p>
<p>At id thought that it was a bad idea doing it that way, that probably having tons of files would be a bad idea (and I can agree with that). So their solution? having files with a bunch of material definitions there, you can find something like a file named &#8220;chars_common.mtr&#8221; with that &#8220;shader_name&#8221; definition in it!!</p>
<p>WTF! ok, I&#8217;m ranting just due the frustration of something that could be better. I mean, was that hard to have some kind of translation table? something like &#8220;you can find shader_name in the file chars_common.mtr&#8221;? In theory what you download with the demo are somewhat production files, aren&#8217;t they?</p>
<p>Bah, I suppose they have that table, but they keep it somewhere hidden :) :). Well, as I don&#8217;t find it, this means I will code that table tomorrow morning. Now it&#8217;s time to go to see how  F.C Barcelona beats Manchester United and we become champions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tex2d.com/2009/05/a-rant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.467 seconds -->
