<?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>The Park is Vast &#187; Content Importing v0.85.3</title>
	<atom:link href="http://theparkisvast.com/VastPark/nerdy/site-building/content-importing/feed/" rel="self" type="application/rss+xml" />
	<link>http://theparkisvast.com</link>
	<description></description>
	<lastBuildDate>Mon, 31 Oct 2011 18:44:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The Pianist v1.0</title>
		<link>http://theparkisvast.com/2007/04/18/the-pianist-v10/</link>
		<comments>http://theparkisvast.com/2007/04/18/the-pianist-v10/#comments</comments>
		<pubDate>Wed, 18 Apr 2007 11:40:25 +0000</pubDate>
		<dc:creator>craigomatic</dc:creator>
				<category><![CDATA[Content Importing v0.85.3]]></category>
		<category><![CDATA[Site Building v0.85.3]]></category>

	<!-- AutoMeta Start -->
	<category>piano</category>
	<category>hp1300e</category>
	<category>digital</category>
	<category>recording</category>
	<category>years</category>
	<category>roland</category>
	<category>break</category>
	<category>easter</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://theparkisvast.com/2007/04/18/the-pianist-v10/</guid>
		<description><![CDATA[After the easter break I decided to do a recording of every key on my Roland HP1300e digital piano (I used to play about 7-8 years ago). I also took some source shots of it on my Nokia N80. I took the shots in to work and ashepherd managed to whip up something fantastic very [...]]]></description>
			<content:encoded><![CDATA[<p>After the easter break I decided to do a recording of every key on my Roland HP1300e digital piano (I used to play about 7-8 years ago). I also took some source shots of it on my Nokia N80. I took the shots in to work and <a href="http://vastpark.com/uprofile.php?UID=15">ashepherd</a> managed to whip up something fantastic very quickly <img src='http://theparkisvast.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Click the image below to be whisked over to the parks page on <a href="http://www.vastpark.com">www.vastpark.com</a> to have a go at it:</p>
<p><a href="http://vastpark.com/view_video.php?viewkey=1176897128308"><img src="http://vastpark.com/thumb/1_42.jpg" alt="The Pianist" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://theparkisvast.com/2007/04/18/the-pianist-v10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VietPark &#8211; Part 4: Implementation</title>
		<link>http://theparkisvast.com/2007/03/04/vietpark-part-4-implementation/</link>
		<comments>http://theparkisvast.com/2007/03/04/vietpark-part-4-implementation/#comments</comments>
		<pubDate>Sun, 04 Mar 2007 07:24:41 +0000</pubDate>
		<dc:creator>craigomatic</dc:creator>
				<category><![CDATA[Content Importing v0.85.3]]></category>
		<category><![CDATA[Entity Scripting v0.85.3]]></category>
		<category><![CDATA[Site Building v0.85.3]]></category>

	<!-- AutoMeta Start -->
	<category>script</category>
	<category>easy</category>
	<category>describe</category>
	<category>champion</category>
	<category>modeller</category>
	<category>knock</category>
	<category>office</category>
	<category>quick</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://craigomatic.jumbahost.com/2007/03/04/vietpark-part-4-implementation/</guid>
		<description><![CDATA[
Setting up the actual layout of the site in the VastPark Site Builder is very quick and easy, so I got our champion 3D modeller in the office to knock up some assets for me and I did just that. Some of the ideas in the original mockup I&#8217;ve decided against, such as the walls. [...]]]></description>
			<content:encoded><![CDATA[
<p>Setting up the actual layout of the site in the VastPark Site Builder is very quick and easy, so I got our champion 3D modeller in the office to knock up some assets for me and I did just that.</p>
<p>Some of the ideas in the original mockup I&#8217;ve decided against, such as the walls. Instead its going to be a black space with the entities arranged in a similar way to how I previously wanted them. </p>
<p>Here&#8217;s are some screenshots that show the site in the builder:</p>
<p><a href='http://www.theparkisvast.com/wp-content/uploads/2007/03/vietpark_proto_shot1.jpg' title='VietPark - Alpha - Shot 1'><img src='http://www.theparkisvast.com/wp-content/uploads/2007/03/vietpark_proto_shot1.thumbnail.jpg' alt='VietPark - Alpha - Shot 1' /></a></p>
<p><a href='http://www.theparkisvast.com/wp-content/uploads/2007/03/vietpark_proto_shot2.jpg' title='VietPark - Alpha - Shot 2'><img src='http://www.theparkisvast.com/wp-content/uploads/2007/03/vietpark_proto_shot2.thumbnail.jpg' alt='VietPark - Alpha - Shot 2' /></a></p>
<p>And here is a code sample that shows how im making it all happen:</p>
<p><strong>Clicking the flags:</strong></p>
<p>Using the Flickr Plugin, this is fairly simple. First I search Flickr for my username and the tags for the images that I want to show for a particular example. The below code sample shows how to do the Saigon flag:</p>
<p><pre class="lua"><span style="color: #b1b100;">function</span> OnClick<span style="color: #66cc66;">&#40;</span>sender, entity<span style="color: #66cc66;">&#41;</span>
	<span style="color: #808080; font-style: italic;">--create the flickr object and perform a search</span>
	a = Flickr<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>	
	a:SearchUser<span style="color: #66cc66;">&#40;</span>'craigomatic', 'vietnam,saigon'<span style="color: #66cc66;">&#41;</span>	
	i = <span style="color: #cc66cc;">1</span>	
&nbsp;
	<span style="color: #808080; font-style: italic;">--generate an entity for each search result using the MoveNext command</span>
	<span style="color: #b1b100;">while</span> i &lt; <span style="color: #cc66cc;">6</span> <span style="color: #b1b100;">do</span>
		item = a:MoveNext<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
		_GenerateEntity<span style="color: #66cc66;">&#40;</span>item, i, entity.Position<span style="color: #66cc66;">&#41;</span>
		i = i<span style="color: #cc66cc;">+1</span>	
	<span style="color: #b1b100;">end</span>
<span style="color: #b1b100;">end</span>
&nbsp;
<span style="color: #808080; font-style: italic;">--Create the function to generate an entity for each item</span>
<span style="color: #b1b100;">function</span> _GenerateEntity<span style="color: #66cc66;">&#40;</span>item, count,pos<span style="color: #66cc66;">&#41;</span>
	<span style="color: #808080; font-style: italic;">--dimensions of the entity</span>
	dim = Vector<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0.2</span>, <span style="color: #cc66cc;">0.2</span>, <span style="color: #cc66cc;">0.01</span><span style="color: #66cc66;">&#41;</span>	
	entity = GenerateBoxEntity<span style="color: #66cc66;">&#40;</span>dim, pos<span style="color: #66cc66;">&#41;</span>
	
	<span style="color: #808080; font-style: italic;">--add the OnClick events so each entity when clicked will go to the correct page</span>
	entity.Script.ScriptDictionary<span style="color: #66cc66;">&#91;</span>EventType.OnClick<span style="color: #66cc66;">&#93;</span>.Enabled = <span style="color: #b1b100;">true</span>;	
	<span style="color: #808080; font-style: italic;">--entity.Script.ScriptDictionary[EventType.OnClick].Payload = &quot;function OnClick(sender, entity)\r\ndest = GetEntity('PicDest')\r\ninFocus = dest:GetCustom('focused')\r\nif(inFocus ~= nil and inFocus.Name ~= entity.Name) then\r\ninFocus:SetPosition(inFocus:GetCustom('basePos'), 250)\r\ninFocus:SetCustom('atBase', true)\r\nend\r\nif(entity:GetCustom('atBase') == true) then\r\npos = GetEntity('PicDest').Position\r\nentity:SetPosition(pos,125)\r\nentity:SetCustom('atBase',false)\r\ndest:SetCustom('focused', entity)\r\nelse\r\nDebug(entity:GetCustom('basePos'):ToString())\r\npos = entity:GetCustom('basePos')\r\nentity:SetPosition(pos,125)\r\nentity:SetCustom('atBase',true)\r\nend\r\nend&quot;</span>
	entity.Script.ScriptDictionary<span style="color: #66cc66;">&#91;</span>EventType.OnClick<span style="color: #66cc66;">&#93;</span>.Payload = <span style="color: #ff0000;">&quot;function OnClick(sender, entity)<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>dest = GetEntity('PicDest')<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>inFocus = dest:GetCustom('focused')<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>if(inFocus ~= nil and inFocus.Name ~= entity.Name) then<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>inFocus:SetPosition(inFocus:GetCustom('basePos'), 250)<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>inFocus:SetRotation(inFocus:GetCustom('baseRot'), 250)<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>inFocus:SetCustom('atBase', true)<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>end<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>if(entity:GetCustom('atBase') == true) then<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>pos = GetEntity('PicDest').Position<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>entity:SetPosition(pos,125)<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>entity:SetRotation(Vector(0,0,0), 125)<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>entity:SetCustom('atBase',false)<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>dest:SetCustom('focused', entity)<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>else<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>pos = entity:GetCustom('basePos')<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>rot = entity:GetCustom('baseRot')<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>entity:SetPosition(pos,125)<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>entity:SetRotation(rot, 125)<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>entity:SetCustom('atBase',true)<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>end<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>end&quot;</span>
			
	e = GetEntity<span style="color: #66cc66;">&#40;</span>'frame'..count<span style="color: #cc66cc;">-1</span><span style="color: #66cc66;">&#41;</span>
	destPos = Vector<span style="color: #66cc66;">&#40;</span>e.Position.x,e.Position.y,e.Position.z<span style="color: #66cc66;">&#41;</span>
	destRot = Vector<span style="color: #66cc66;">&#40;</span>e.Rotation.x, e.Rotation.y, e.Rotation.z<span style="color: #66cc66;">&#41;</span>
	
	<span style="color: #808080; font-style: italic;">--keep a record of where this entity first appeared at  </span>
	entity:SetCustom<span style="color: #66cc66;">&#40;</span>'basePos', Vector<span style="color: #66cc66;">&#40;</span>destPos.x, destPos.y, destPos.z<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #808080; font-style: italic;">--and its rotation</span>
	entity:SetCustom<span style="color: #66cc66;">&#40;</span>'baseRot', Vector<span style="color: #66cc66;">&#40;</span>destRot.x, destRot.y, destRot.z<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
	
	<span style="color: #808080; font-style: italic;">--tell it that its at the starting pos</span>
	entity:SetCustom<span style="color: #66cc66;">&#40;</span>'atBase', <span style="color: #b1b100;">true</span><span style="color: #66cc66;">&#41;</span>  
  	entity.RenderEnabled = <span style="color: #b1b100;">false</span>
	
  	<span style="color: #808080; font-style: italic;">--look for the image, and apply it to the entity</span>
  	<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>item.MediumUrl ~= nill<span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">then</span>
    	tex = LoadTextureURL<span style="color: #66cc66;">&#40;</span>count, item.MediumUrl<span style="color: #66cc66;">&#41;</span> 
    	SetTexture<span style="color: #66cc66;">&#40;</span>tex, entity<span style="color: #66cc66;">&#41;</span>
 	<span style="color: #b1b100;">end</span>  	
	
	entity.RenderEnabled = <span style="color: #b1b100;">true</span>
 	startpos = Vector<span style="color: #66cc66;">&#40;</span>pos.x,pos.y,pos.z<span style="color: #66cc66;">&#41;</span>
 	entity:SetPosition<span style="color: #66cc66;">&#40;</span>startpos,<span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>
	entity:SetScale<span style="color: #66cc66;">&#40;</span>Vector<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>,<span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span> 
	Sleep<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>  
	entity:SetPosition<span style="color: #66cc66;">&#40;</span>destPos, <span style="color: #cc66cc;">500</span><span style="color: #66cc66;">&#41;</span>
	entity:SetScale<span style="color: #66cc66;">&#40;</span>Vector<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">7.5</span>,<span style="color: #cc66cc;">7.5</span>,<span style="color: #cc66cc;">7.5</span><span style="color: #66cc66;">&#41;</span>,<span style="color: #cc66cc;">500</span><span style="color: #66cc66;">&#41;</span>
	entity:SetRotation<span style="color: #66cc66;">&#40;</span>destRot, <span style="color: #cc66cc;">500</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #b1b100;">end</span></pre></p>
<p>To view this site in action, visit <a href="http://www.vastpark.com">www.vastpark.com</a> and sign up to get access to download the browser. Once you have downloaded the browser, the link to view VietPark is: <a href="vp://vastpark/craigomatic/vietpark">vp://vastpark/craigomatic/vietpark</a></p>
<p>Well thats it, version 1 of VietPark is up and running&#8230;so what do you think? Im already at work on version 2 which I&#8217;m pretty excited about. More details soon <img src='http://theparkisvast.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://theparkisvast.com/2007/03/04/vietpark-part-4-implementation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

