<?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>Canvas 3d JS Library &#187; Demos</title>
	<atom:link href="http://www.c3dl.org/index.php/category/demos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.c3dl.org</link>
	<description>WebGL made easy!</description>
	<lastBuildDate>Fri, 24 Jun 2011 18:24:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>3D Google maps demo</title>
		<link>http://www.c3dl.org/index.php/c3dl-news/3d-google-maps-demo/</link>
		<comments>http://www.c3dl.org/index.php/c3dl-news/3d-google-maps-demo/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 18:58:41 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[C3DL News]]></category>
		<category><![CDATA[Demos]]></category>

		<guid isPermaLink="false">http://www.c3dl.org/?p=1829</guid>
		<description><![CDATA[Some time ago we had a demo that would give a 3D representation of routes obtained from the Google maps api, along with some points of interest the user could search for (like coffee shops). While the library keeps getting updated, this demo did not, and no longer worked on systems running recent versions of [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago we had a demo that would give a 3D representation of routes obtained from the Google maps api, along with some points of interest the user could search for (like coffee shops).  While the library keeps getting updated, this demo did not, and no longer worked on systems running recent versions of the library.  This was unfortunate as the demo showed some neat applications for C3DL, so we decided to resurrect it.</p>

<p>Having never seen the original working, I had a difficult decision to make.  Do I update the existing code to work with the newer versions of the library?  Or do I write a new demo from scratch?  In theory the update should have been the easier route, but it was using code that had been rendered obsolete before I joined this project.  Instead of learning an outdated version of the library to update one demo, I kept only the basis of the code (mostly the interaction with the Google Maps API), and wrote most of the rest.  As the demo progressed we had several ideas about things to be improved or added.  For example, each of those points of interest gets a little 3D model (a tetrahedron for now) to show where it is, but  we realized it would be better if the user could click on that point of interest and find out what it is, what the address is etc., so now you get a pop-up with the name, address and phone-number of the point.</p>

<p>Without further ado, here&#8217;s a picture of (and link to) the demo:</p>

<a href="http://www.c3dl.org/index.php/demos/3d-google-maps/"><img src="http://www.c3dl.org/wp-content/uploads/2009/10/mapsInAction.png" alt="mapsInAction" title="mapsInAction" width="250" height="250" class="aligncenter size-full wp-image-1894" /></a>

<p>I did have to limit the number of roads that are visible at one time, and only show points of interest that are close by, just to reduce the strain on the system (A trip from Toronto to Vancouver involves a lot of roads and an extraordinary number of coffee shops).</p>
<p>There are a few things that I&#8217;d like to improve on when the opportunity presents itself, or would be happy to see other people try.
<ul>
 <li>This uses an old version of Google&#8217;s API.  It would be nice to bring it up to version 3.</li>
 <li>The overhead compass would look nicer if it was partially transparent (So you could see the letters indicating the directions, but not the rectangle they sit on).  While this concept is supported by OpenGL and the png format, support for it isn&#8217;t in the library yet.</li>
  <li>The tetrahedron&#8217;s that indicate points of interest work, but a better model would make the demo look nicer.</li>
  <li>A road model that was more than just a flat rectangle could make the demo look nicer too.</li>
  <li>When you click on a point of interest, it causes a pop-up with information about that location, instead it would be nice to have that information appear as floating text in the canvas, so it doesn&#8217;t interrupt the demo.</li>
  <li>It would also be nice to get elevation data, but the Google Maps API doesn&#8217;t provide it, so it would have to come from somewhere else.  Then we could make the roads go up and down with the elevation instead of assuming the world is perfectly flat.  That would require a little extra code to accommodate the new data, but most of the hard calculations are already done.</li>
  <li>The overhead compass often misses getting drawn when the page first loads, but will show up on a refresh.  This is peculiar as the code is supposed to wait until all models are loaded before it actually starts.</li>
</ul>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.c3dl.org/index.php/c3dl-news/3d-google-maps-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Mocap Demo</title>
		<link>http://www.c3dl.org/index.php/c3dl-dev/new-mocap-demo/</link>
		<comments>http://www.c3dl.org/index.php/c3dl-dev/new-mocap-demo/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 19:01:34 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Demos]]></category>
		<category><![CDATA[c3dl development]]></category>

		<guid isPermaLink="false">http://www.c3dl.org/?p=1514</guid>
		<description><![CDATA[As we are moving away from using points for now, it was time to make a demo using spheres again. Instead of just re-posting an old demo, it seemed like a good time to add in some of the features people have suggested, such as being able to move the camera (Andor had already put [...]]]></description>
			<content:encoded><![CDATA[<p>As we are moving away from using points for now, it was time to make a <a href="http://www.c3dl.org/index.php/demos/mocap_spheres/">demo using spheres</a> again.  Instead of just re-posting an old demo, it seemed like a good time to add in some of the features people have suggested, such as being able to move the camera (Andor had already put that in the library, I just had not taken advantage of it).  Then, since the point-markers looked so nice in different colours, I thought I should keep that idea and make the  sphere-markers coloured too (again, the code was already there, but I hadn&#8217;t used it), but rather than being random I decided it would be useful to group the markers into right side, left side and core (or other), much like Vicon does.  It was also a good opportunity to  take advantage of some of the new functionality Andor has been working on (like the gradient colours on lines).</p>
<br />
<a href="http://www.c3dl.org/index.php/demos/mocap_spheres/"><img src="http://www.c3dl.org/wp-content/uploads/2009/06/newmocapdemo.jpg" alt="" title="" width="313" height="331" class="aligncenter size-full wp-image-1518" /></a>
<br />
<p>Now, as Andor said in his previous post, spheres are much more complicated than points when it comes to rendering, so my first version of the new demo was noticeably slower than the version using points.  The counter to this was to reduce the complexity of the sphere, turning it into something sphere-ish but much easier to render.  Instead of the 200-odd faces in each of the original spheres, I dropped it to 64.</p>
<br />
From a distance they looked pretty good,<br />
<img src="http://www.c3dl.org/wp-content/uploads/2009/06/distance.jpg" alt="" title="" width="350" height="349" class="aligncenter size-full wp-image-1517" />
<br />
but if you caught them from the wrong angle or got too close, they didn&#8217;t look quite so nice.<br />
<img src="http://www.c3dl.org/wp-content/uploads/2009/06/close.jpg" alt="" title="" width="405" height="252" class="aligncenter size-full wp-image-1519" /><br />

<p>I experimented with some simpler spheroids, getting all the way down to 4 triangles to try to find one that is simple to render and still looks good.  No, I guess a tetrahedron isn&#8217;t really a spheroid, but I thought I should try it anyway.</p>
<br />
<p>Here are some of the almost-spheres I put together in Google Sketchup:</p>
<br />
 <table>
    <tr>
   <td>64 triangles</td>
   <td><img src="http://www.c3dl.org/wp-content/uploads/2009/06/tri-64.jpg" alt="" title="64 triangles" width="125" height="125" class="alignleft size-full wp-image-1520" />
   </td>
   <td>48 triangles</td>
   <td><img src="http://www.c3dl.org/wp-content/uploads/2009/06/tri-48.jpg" alt="" title="48 triangles" width="125" height="125" class="alignleft size-full wp-image-1521" />
   </td>
  </tr>
  <tr>
   <td>24 triangles</td>
   <td><img src="http://www.c3dl.org/wp-content/uploads/2009/06/tri-24.jpg" alt="" title="24 triangles" width="125" height="125" class="alignleft size-full wp-image-1522" />
   </td>
   <td>18 triangles</td>
   <td><img src="http://www.c3dl.org/wp-content/uploads/2009/06/tri-18.jpg" alt="" title="18 triangles" width="125" height="125" class="alignleft size-full wp-image-1523" />
   </td>
  </tr>
  <tr>
   <td>4 triangles</td>
   <td><img src="http://www.c3dl.org/wp-content/uploads/2009/06/tri-4.jpg" alt="" title="4 triangles" width="125" height="125" class="alignleft size-full wp-image-1524" />
   </td>
   <td>
   </td>
   <td></td>
  </tr>
</table>
<br />
<p>The one with 48 triangles seems to look the most sphere-like overall (it doesn&#8217;t have the flat top of the 64 triangle object), so I decided to go with that for now.</p>

<p>Now to finish off the tool that creates the templates used to determine which markers should have lines drawn between them.  It as almost working, but it is losing track of which marker is which somewhere.  For example, while it might think it is putting a line between the left forearm and left elbow (which it should be), it is actually connecting the C7 vertebrae to the right knee (which I imagine would be rather painful).</p>

<p>UPDATE:  I borrowed some more of Andor&#8217;s code to add better lighting to the scene and now the semi-spheres look much better.</p>
<img src="http://www.c3dl.org/wp-content/uploads/2009/06/withlights.jpg" alt="" title="" width="465" height="173" class="aligncenter size-full wp-image-1530" />

]]></content:encoded>
			<wfw:commentRss>http://www.c3dl.org/index.php/c3dl-dev/new-mocap-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Motion Capture Demo</title>
		<link>http://www.c3dl.org/index.php/c3dl-dev/new-motion-capture-demo/</link>
		<comments>http://www.c3dl.org/index.php/c3dl-dev/new-motion-capture-demo/#comments</comments>
		<pubDate>Mon, 04 May 2009 18:29:38 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Demos]]></category>
		<category><![CDATA[c3dl development]]></category>

		<guid isPermaLink="false">http://www.c3dl.org/?p=1404</guid>
		<description><![CDATA[A number of things have occurred that necessitate a new version of the motion capture demo. These include: The new release of the Canvas3D extension (0.4.2), and the corresponding release of our library(1.0). Andor&#8217;s work on points and lines. My continued work on converting c3d and trc files As these new capabilities arrived, it became [...]]]></description>
			<content:encoded><![CDATA[<p>A number of things have occurred that necessitate a <a href="http://www.c3dl.org/index.php/demos/motion-capture/">new version of the motion capture demo.</a> These include:</p>
<ul>
<li>The <a href="http://www.c3dl.org/index.php/c3dl-news/new-extension-new-release/">new release</a> of the Canvas3D extension (0.4.2), and the corresponding release of our library(1.0).</li>
<li>Andor&#8217;s work on <a href="http://www.c3dl.org/index.php/c3dl-dev/points/">points</a> and <a href="http://www.c3dl.org/index.php/c3dl-dev/lines/">lines</a>.</li>
<li>My continued work on converting c3d and trc files</li>
</ul>
<p>As these new capabilities arrived, it became clear that the motion capture demo could be seriously improved.</p>

<p>The most visually apparent improvement is the inclusion of lines connecting some of the markers.  This relied on Andor&#8217;s previously mentioned work, along with some extra functions in the conversion process to separate the markers by subject and try to match those subjects against pre-existing templates.  It is also noticeable that some of the connections don&#8217;t make any sense (the actor&#8217;s foot being connected to the phone in the capture labeled &#8216;wrong number&#8217;, for example), this is because the data I used for the demo hasn&#8217;t been manually cleaned, and the motion capture system was under the mistaken impression that the marker in question actually did represent the actor&#8217;s ankle.  This kind of problem is one of many things that is normally sorted out before a file is really ready to be used.</p>]]></content:encoded>
			<wfw:commentRss>http://www.c3dl.org/index.php/c3dl-dev/new-motion-capture-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Collision Detection Demo</title>
		<link>http://www.c3dl.org/index.php/demos/simple-collision-detection-demo/</link>
		<comments>http://www.c3dl.org/index.php/demos/simple-collision-detection-demo/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 01:24:50 +0000</pubDate>
		<dc:creator>Patrick Lam</dc:creator>
				<category><![CDATA[Demos]]></category>
		<category><![CDATA[basic demo]]></category>
		<category><![CDATA[Collision Detection]]></category>

		<guid isPermaLink="false">http://www.c3dl.org/?p=1325</guid>
		<description><![CDATA[Here, I&#8217;ve made a simple demo, using the collision detection. The edge of the canvas serves as the boundary, and the balls are only moving side to side. Whenever any objects have a collision, it will move in the opposite direction. See Here. This one is a similar demo but with more balls and moving [...]]]></description>
			<content:encoded><![CDATA[Here, I&#8217;ve made a simple demo, using the collision detection.<br /> The edge of the canvas serves as the boundary, and the balls are only moving side to side. Whenever any objects have a collision, it will move in the opposite direction.<br />

<a href="http://matrix.senecac.on.ca/~pplam3/OSD/canvas3dapi-dev4/basicDemo.html">See Here.</a>
<br />
This one is a similar demo but with more balls and moving in multi-directions, bouncing off each other.<br />
<a href="http://matrix.senecac.on.ca/~pplam3/OSD/canvas3dapi-dev5/basicDemo2.html">See Here.</a>]]></content:encoded>
			<wfw:commentRss>http://www.c3dl.org/index.php/demos/simple-collision-detection-demo/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Simple Game of Pong in C3DL</title>
		<link>http://www.c3dl.org/index.php/demos/simple-game-of-pong-in-c3dl/</link>
		<comments>http://www.c3dl.org/index.php/demos/simple-game-of-pong-in-c3dl/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 22:33:17 +0000</pubDate>
		<dc:creator>Patrick Lam</dc:creator>
				<category><![CDATA[Demos]]></category>
		<category><![CDATA[Pong]]></category>

		<guid isPermaLink="false">http://www.c3dl.org/?p=1319</guid>
		<description><![CDATA[Play Here Side note, update with current status of collision detection here.]]></description>
			<content:encoded><![CDATA[<a href="http://matrix.senecac.on.ca/~pplam3/OSD/canvas3dapi-dev4/demoGame.html">Play Here</a>
<br /><br />
Side note, update with current status of collision detection <a href="http://pplam3.blogspot.com/2009/04/old-and-new-post.html">here</a>.]]></content:encoded>
			<wfw:commentRss>http://www.c3dl.org/index.php/demos/simple-game-of-pong-in-c3dl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Demo finally Added!</title>
		<link>http://www.c3dl.org/index.php/c3dl-dev/demo-finally-added/</link>
		<comments>http://www.c3dl.org/index.php/c3dl-dev/demo-finally-added/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 15:28:58 +0000</pubDate>
		<dc:creator>Chris Bishop</dc:creator>
				<category><![CDATA[Demos]]></category>
		<category><![CDATA[c3dl development]]></category>

		<guid isPermaLink="false">http://www.c3dl.org/index.php/demos/demo-finally-added/</guid>
		<description><![CDATA[I figured out how to add the demo&#8217;s to the C3DL website.  I found a javascript online that would add the canvas3d api script files to the head element of a page.  Very nice script. Check out the Demos link in the navigation bar at the top for the newly added demo. I need to [...]]]></description>
			<content:encoded><![CDATA[I figured out how to add the demo&#8217;s to the C3DL website.  I found a javascript online that would add the canvas3d api script files to the head element of a page.  Very nice script.

Check out the Demos link in the navigation bar at the top for the newly added demo.

I need to add some javascript code that will re-direct a visitor to the appropriate page.  Either they will receive the demo of the canvas3d or a snap shot because their browser either doesn&#8217;t support or the plug-in is not installed.

Well I better get working on more demos.]]></content:encoded>
			<wfw:commentRss>http://www.c3dl.org/index.php/c3dl-dev/demo-finally-added/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

