<?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>technical architecture. &#187; Architecture</title>
	<atom:link href="http://buchhofer.com/tag/architecture/feed/" rel="self" type="application/rss+xml" />
	<link>http://buchhofer.com</link>
	<description>Maxscript, Architecture, 3D, 3DSMax, Unity3D</description>
	<lastBuildDate>Mon, 30 Apr 2012 00:46:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Interactive Lab Demo</title>
		<link>http://buchhofer.com/2010/02/interactive-lab-demo/</link>
		<comments>http://buchhofer.com/2010/02/interactive-lab-demo/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 12:56:28 +0000</pubDate>
		<dc:creator>Dave Buchhofer</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[csharp]]></category>
		<category><![CDATA[Interactive]]></category>
		<category><![CDATA[Unity3D]]></category>
		<category><![CDATA[editorscripting]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://buchhofer.com/?p=228</guid>
		<description><![CDATA[Here is another Architectural interactive test project. This time, a laboratory setup, a tighter interior space, set up without any real lighting (1 direct light + ambient colors + Ambient Occlusion currently) created with the goal of customizing the unity asset pipeline to be a little more friendly for architectural work. First, the Project, roughly [...]]]></description>
			<content:encoded><![CDATA[<p>Here is another Architectural interactive test project. This time, a laboratory setup, a tighter interior space, set up without any real lighting (1 direct light + ambient colors + Ambient Occlusion currently) created with the goal of customizing the unity asset pipeline to be a little more friendly for architectural work.</p>
<p>First, the Project, roughly 6mb, clicking on the screenshot will open the project in a new window. its another quickly evolving work in progress, Warning: No consideration has been taken currently for speed on older hardware, ~100fps on an 8800GT was the target.<br />
<a title="3d demo" href="http://www.buchhofer.com/upload/files/labs/lab/default.html" target="_blank"><img src="http://www.buchhofer.com/upload/files/labs/lab/labshot_210_01.jpg" alt="Screenshot" /></a></p>
<p>Some findings and random ramblings on arch and interactive 3d:</p>
<ul>
<li>unlike with general gaming, with architecture you are in most cases going to already have a model provided in some form or another. odds are, the model is going to be pretty horrific, as arch models tend to be built for the purpose of either:
<ul>
<li>A: Viz&#8230; the Viz model will require a lot of cleanup in terms of material work, and stripping down a lot of the high poly fluff required for rendering.</li>
<li> B: Design Development&#8230; the DD model is normally plagued more by bad modeling conventions, no naming, poor materials, materials not fully assigned, or mangled geometry due to being stretched and squished for days on end to keep up with a design.</li>
</ul>
</li>
<li>you will probably still want to break up the file by some logical layer type system, by default this will land you with a unique material for each material of each fbx file</li>
<li>a small AssetPostProcessor script that works on the OnMaterialAssign function can make the process of sharing materials across multiple FBX files much easier to handle, with the added bonus of being able to easily progressively build up a library of reusable realtime materials</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">&nbsp;
<span style="color: #008080; font-style: italic;">//file: MaterialsPostProcessor.cs</span>
<span style="color: #008080; font-style: italic;">//goal: Share a library of materials across different assets based on the name of material supplied in the FBX file</span>
<span style="color: #008080; font-style: italic;">// Dave Buchhofer - 02.10.2010</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">UnityEngine</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">UnityEditor</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Collections</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> MaterialsPostProcessor <span style="color: #008000;">:</span> AssetPostprocessor
<span style="color: #008000;">&#123;</span>
    Material OnAssignMaterialModel <span style="color: #008000;">&#40;</span>Material material, Renderer renderer<span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
        <span style="color: #008080; font-style: italic;">//The path where you keep your &quot;Standard&quot; library of materials</span>
        <span style="color: #6666cc; font-weight: bold;">string</span> StandardMatPath <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;Assets/DMGStandardMaterials/&quot;</span> <span style="color: #008000;">+</span> material<span style="color: #008000;">.</span><span style="color: #0000FF;">name</span> <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;.mat&quot;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">//the path where you want to keep your &quot;temp&quot; materials, that weren't found above</span>
        <span style="color: #008080; font-style: italic;">//So you have a logical place to look for materials that need editing and tweaking for realtime work.</span>
        <span style="color: #6666cc; font-weight: bold;">string</span> TemporaryMatPath <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;Assets/Mesh/Materials/&quot;</span> <span style="color: #008000;">+</span> material<span style="color: #008000;">.</span><span style="color: #0000FF;">name</span> <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;.mat&quot;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">//Check for it in the standard </span>
        <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>AssetDatabase<span style="color: #008000;">.</span><span style="color: #0000FF;">LoadAssetAtPath</span><span style="color: #008000;">&#40;</span>StandardMatPath, <span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>Material<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            Debug<span style="color: #008000;">.</span><span style="color: #0000FF;">Log</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;FOUND: &quot;</span> <span style="color: #008000;">+</span> StandardMatPath<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #008000;">&#40;</span>Material<span style="color: #008000;">&#41;</span>AssetDatabase<span style="color: #008000;">.</span><span style="color: #0000FF;">LoadAssetAtPath</span><span style="color: #008000;">&#40;</span>StandardMatPath, <span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>Material<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
        <span style="color: #008080; font-style: italic;">//Else check to see if we've already built one in the temp path</span>
        <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>AssetDatabase<span style="color: #008000;">.</span><span style="color: #0000FF;">LoadAssetAtPath</span><span style="color: #008000;">&#40;</span>TemporaryMatPath, <span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>Material<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            Debug<span style="color: #008000;">.</span><span style="color: #0000FF;">Log</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;FOUND temp: &quot;</span> <span style="color: #008000;">+</span> TemporaryMatPath<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #008000;">&#40;</span>Material<span style="color: #008000;">&#41;</span>AssetDatabase<span style="color: #008000;">.</span><span style="color: #0000FF;">LoadAssetAtPath</span><span style="color: #008000;">&#40;</span>TemporaryMatPath, <span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>Material<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
        <span style="color: #008080; font-style: italic;">//Or create it?</span>
        material<span style="color: #008000;">.</span><span style="color: #0000FF;">shader</span> <span style="color: #008000;">=</span> Shader<span style="color: #008000;">.</span><span style="color: #0000FF;">Find</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Diffuse&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        AssetDatabase<span style="color: #008000;">.</span><span style="color: #0000FF;">CreateAsset</span><span style="color: #008000;">&#40;</span>material, TemporaryMatPath<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        Debug<span style="color: #008000;">.</span><span style="color: #0000FF;">Log</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;CREATED temp: &quot;</span> <span style="color: #008000;">+</span> TemporaryMatPath<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #0600FF; font-weight: bold;">return</span> material<span style="color: #008000;">;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<p>also check out the previous arch experiment a few posts down:<a href="http://buchhofer.com/?p=216"> Basketball Arena</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://buchhofer.com/2010/02/interactive-lab-demo/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>DMG Reel</title>
		<link>http://buchhofer.com/2008/12/dmg-reel/</link>
		<comments>http://buchhofer.com/2008/12/dmg-reel/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 19:37:22 +0000</pubDate>
		<dc:creator>Dave Buchhofer</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[dmg]]></category>
		<category><![CDATA[reel]]></category>

		<guid isPermaLink="false">http://buchhofer.com/?p=109</guid>
		<description><![CDATA[A quick dmg reel one of the guys cooked up a few months back, page: EwingColeDMG [kaltura-widget wid="jp5u0sa7ug" width="410" height="364" addpermission="3" editpermission="3" /] testing out this Kaltura video plugin..]]></description>
			<content:encoded><![CDATA[<p>A quick dmg reel one of the guys cooked up a few months back, page: <a href="http://ewingcoledmg.com">EwingColeDMG</a><br />
[kaltura-widget wid="jp5u0sa7ug" width="410" height="364" addpermission="3" editpermission="3" /]</p>
<p>testing out this <a href="http://community.kaltura.org/">Kaltura</a> video plugin..</p>
]]></content:encoded>
			<wfw:commentRss>http://buchhofer.com/2008/12/dmg-reel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gallery</title>
		<link>http://buchhofer.com/2008/08/gallery/</link>
		<comments>http://buchhofer.com/2008/08/gallery/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 14:18:35 +0000</pubDate>
		<dc:creator>Dave Buchhofer</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Gallery]]></category>

		<guid isPermaLink="false">http://buchhofer.com/?p=12</guid>
		<description><![CDATA[Here&#8217;s the link to my old Gallery, complete with just exported from JAlbum sexiness, until I find a suitable way to integrate some of the newer work with the new site]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.buchhofer.com/portfolio_2008/album/">Here&#8217;s the link to my old Gallery</a>, complete with just exported from <a href="http://jalbum.net/">JAlbum</a> sexiness, until I find a suitable way to integrate some of the newer work with the new site <img src='http://buchhofer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><a href="http://www.buchhofer.com/Portfolio_Smaller/"><img class="size-medium wp-image-13 aligncenter" title="Stills Gallery" src="http://buchhofer.com/wp-content/uploads/2008/08/gallery_thumb-300x158.jpg" alt="" width="300" height="158" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://buchhofer.com/2008/08/gallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

