<?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>Real-Time Rendering &#187; three.js</title>
	<atom:link href="http://www.realtimerendering.com/blog/tag/three-js/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.realtimerendering.com/blog</link>
	<description>Tracking the latest developments in interactive rendering techniques</description>
	<lastBuildDate>Sun, 12 May 2013 00:21:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<item>
		<title>&#8220;Interactive 3D Rendering&#8221; is finally complete!</title>
		<link>http://www.realtimerendering.com/blog/interactive-3d-rendering-is-finally-complete/</link>
		<comments>http://www.realtimerendering.com/blog/interactive-3d-rendering-is-finally-complete/#comments</comments>
		<pubDate>Fri, 10 May 2013 17:21:17 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Book]]></category>
		<category><![CDATA[MOOC]]></category>
		<category><![CDATA[three.js]]></category>
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.realtimerendering.com/blog/?p=3532</guid>
		<description><![CDATA[Short version: the Interactive 3D Graphics course is now entirely out, the last five units have been added: Lights, Cameras, Texturing, Shader Programming, Animation. Massive (22K people registered so far), worldwide (around 128 countries, &#62; 70% students from outside U.S.). Uses three.js atop WebGL. Start at any time, work at your own pace, only basic programming skills needed. Free. That&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Short version: the <a href="https://www.udacity.com/course/cs291">Interactive 3D Graphics course</a> is now entirely out, the last five units have been added: Lights, Cameras, Texturing, Shader Programming, Animation. Massive (22K people registered so far), worldwide (around 128 countries, &gt; 70% students from outside U.S.). Uses <a href="http://threejs.org/">three.js</a> atop <a href="http://en.wikipedia.org/wiki/WebGL">WebGL</a>. Start at any time, work at your own pace, only basic programming skills needed. Free.</p>
<p>That&#8217;s the elevator talk, Twitterized (well, maybe 3 tweets worth). I won&#8217;t blab on and on about it, just a few things.</p>
<p>First, it&#8217;s so cool to be able to show a student a video, then give a quiz, then let them interact with a demo, then have them write some code for an exercise, all in the browser. Udacity rocketh, both the web programmers and video editors.</p>
<p>Second, I&#8217;m very happy about how a whole bunch of lessons turned out. The tough part in all this is trying to not lose your audience. I think I push a bit hard at times, but some of my explanations I like a lot. Mipmapping, antialiasing, gamma correction &#8211; a number of the later lectures in particular felt quite good to me, and I thought things hung together well. Shhh, don&#8217;t tell me otherwise. Really, it&#8217;s not pride so much; I&#8217;m just happy to have figured out good ways to explain some things simply.</p>
<p>Third, I wrote a book, basically: it&#8217;s about 850 full-sized pages and about 145,000 words. It&#8217;s <a href="https://www.udacity.com/wiki/cs291#lesson-scripts">free to download</a>, along with the <a href="https://www.udacity.com/wiki/cs291/downloads">videos</a> and <a href="https://github.com/udacity/cs291">code</a>. I think of this course as the precursor to <em>Real-Time Rendering</em>, sort of like &#8220;Star Wars: Episode 1&#8243;, except it&#8217;s good. I should really say &#8220;<em>we</em> wrote a book&#8221;: Gundega Dekena, <a href="http://www.seas.upenn.edu/~pcozzi/">Patrick Cozzi</a>, <a href="http://mauriciovives.com/">Mauricio Vives</a>, and near the end Branislav Ulicny (<a href="http://alteredqualia.com/">AlteredQualia</a>) offered a huge amount of help in reviewing, catching various mistakes and suggesting numerous improvements. Many others kindly helped with video clips, interviews, permission to show demos, on and on it goes. Thanks all of you!</p>
<p>Fourth, I love that <a href="https://www.udacity.com/wiki/cs291/demos">the demos from the course</a> are online for anyone to point at and click on. Some of these demos are not absolutely fascinating, but each (once you know what you&#8217;re looking at) is handy in its own way for explaining some graphics phenomenon. The code&#8217;s all downloadable, so others can use them as a basis to make better ones. <a href="http://tog.acm.org/resources/RTNews/html/rtnv10n2.html#art2">I&#8217;ve wanted this sort of thing for 16 years</a> &#8211; took awhile to arrive, but now it&#8217;s finally here.</p>
<p>Fifth, working with students from around the world is wonderful! I love helping people on the forums with just a bit of effort on my end. Also, I just noticed <a href="http://www.reddit.com/r/learnprogramming/comments/1e065g/heres_a_list_of_24_free_online_programmingcs/">a study group starting up</a>. I&#8217;ve also enjoyed seeing <a href="https://www.udacity.com/wiki/cs291/contest">contest</a> entries, e.g.,  here are the drinking bird entries, click a pic to see it in WebGL:</p>
<p><a href="https://googledrive.com/host/0B4WWAMsgO-SDZkpvTmlTM0lsVUE/bird.html"><img class="alignleft size-full wp-image-3550" title="akshay" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/05/akshay.jpg" alt="" width="230" height="300" /></a></p>
<p><a href="https://dl.dropboxusercontent.com/u/23551572/javascript/webGL/drinkingBird/myBird.html"><img class="alignleft size-full wp-image-3549" title="yann" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/05/yann.jpg" alt="" width="215" height="300" /></a></p>
<p><a href="https://dl.dropboxusercontent.com/u/24140723/cs291/contest1/index.html"><img class="alignleft size-full wp-image-3551" title="antonio" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/05/antonio1.jpg" alt="" width="104" height="299" /></a><a href="http://drinkingbird.herokuapp.com/"><img class="alignleft size-full wp-image-3548" title="shelley" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/05/shelley.jpg" alt="" width="124" height="299" /></a></p>
<p><a href="https://googledrive.com/host/0B1IUjc5yPvDQSkdKX09NMWdMQjA/bird.html"><img class="size-full wp-image-3547 alignnone" title="nm" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/05/nm.jpg" alt="" width="142" height="299" /></a></p>
<p>&nbsp;</p>
<p><a href="http://www.orberger.de/bird/"><img class="alignleft size-full wp-image-3546" title="manfred" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/05/manfred.jpg" alt="" width="259" height="300" /></a></p>
<p><a href="https://dl.dropboxusercontent.com/u/82238610/drinking_bird.html"><img class="alignleft size-full wp-image-3545" title="helena" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/05/helena.jpg" alt="" width="184" height="299" /></a></p>
<p><a href="https://googledrive.com/host/0B3_5TE9Dm8zxZjhkajhpdk95Mnc/peacock.html"><img class="alignleft size-full wp-image-3558" title="anubha" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/05/anubha1.jpg" alt="" width="258" height="299" /></a></p>
<p><a href="http://ginformations.heliohost.org/Home/fun_stuff.html"><img class="size-full wp-image-3542 alignnone" title="andrei" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/05/andrei.jpg" alt="" width="179" height="300" /></a></p>
<p>What&#8217;s making a MOOC itself like? See <a href="https://medium.com/teaching-learning/1d7c77b857de">John Owens&#8217; excellent article</a> - my experience is pretty much the same.</p>
<p><em>A close-up in the recording studio, m<em>y little world for a few weeks</em>:</em></p>
<p><a href="https://www.udacity.com/course/cs291"><img class="alignleft size-large wp-image-3509" title="My little world" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/05/20130327_161009-1024x768.jpg" alt="" width="1024" height="768" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.realtimerendering.com/blog/interactive-3d-rendering-is-finally-complete/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>490 links for 70 days</title>
		<link>http://www.realtimerendering.com/blog/490-links-for-70-days/</link>
		<comments>http://www.realtimerendering.com/blog/490-links-for-70-days/#comments</comments>
		<pubDate>Tue, 30 Apr 2013 02:24:00 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[MOOC]]></category>
		<category><![CDATA[teapot]]></category>
		<category><![CDATA[three.js]]></category>
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.realtimerendering.com/blog/?p=3470</guid>
		<description><![CDATA[I like to give 7 links for a day, but I&#8217;ve been busy the past half year or so with the interactive 3D graphics MOOC. In two days the second half of the course will roll out, and I&#8217;ll blab about that later (in, like, two days). In the meantime, here are 490 links for [...]]]></description>
			<content:encoded><![CDATA[<p>I like to give 7 links for a day, but I&#8217;ve been busy the past half year or so with the <a href="https://www.udacity.com/course/cs291">interactive 3D graphics MOOC</a>. In two days the second half of the course will roll out, and I&#8217;ll blab about that later (in, like, two days). In the meantime, here are <a href="https://www.udacity.com/wiki/cs291/instructor-comments?nocache">490 links for the half year I&#8217;ve been missing</a>. Basically, it&#8217;s the Instructor Notes for a bunch of the lessons in the course, additional material and links relevant to the subjects. I admit it, there are a lot of weaksauce links in there, basics for beginners and pointers to Wikipedia this and that. But there are also some great things in there.</p>
<p>Hey, let&#8217;s turn this into 7 great links (use Chrome or Firefox to view them, or enable WebGL in Safari):</p>
<ul>
<li><a href="http://acko.net/blog/on-webgl/">Why WebGL?</a> - nice page (with a clever header) pointing out some of the best WebGL work out there. His <a href="http://acko.net/blog/making-mathbox/">math visualizations page</a> is also cool.</li>
<li>Mind-numbingly well-done and instructive <a href="http://www.zephyrosanemos.com/">terrain rendering demo</a> in WebGL.</li>
<li><a href="http://blog.stickmanventures.com/2011/09/07/simple-facial-rigging-utilizing-morph-targets-powered-by-three-js/">Morph targets rigging for a face</a> looks good in a browser.</li>
<li>Using <a href="http://potree.org/demo/skatepark_v1.0/skatepark_v1.0.html">particles for model display</a> gives an interesting look, with more data streaming in filling in gaps vs. the usual LOD popping.</li>
<li><a href="http://www.essentialmath.com/tutorial.htm">Some great slidesets</a> on animation, collision detection, and other kinds of math from GDC 2012.</li>
<li>To be honest, WebGL is a bit behind at this point, in DirectX terms being sort of Shader Model 2.0 to 3.0. But boy can that little dog dance: <a href="http://codeflow.org/entries/2012/aug/25/webgl-deferred-irradiance-volumes/">irradiance volumes</a>, for example.</li>
<li>Useful? Beats me, but it&#8217;s fun to watch <a href="http://www.youtube.com/watch?v=ZRLVQY45Vx4">Gource show the last year of development of three.js</a> in two minutes. I like seeing myself flit in at the end and help shoot lasers at the source tree.</li>
</ul>
<p>I know there are a bunch more links in the Instructor Notes that are worthwhile (things like the <a href="https://github.com/WebGLTools/GL-Shader-Validator">GLSL shader validator</a> plug-in for Sublime Text 2), but these particular ones stuck with me.</p>
<p>I did get to visit <a href="http://www.computerhistory.org/">the shrine</a> one morning while in Mountain View recording:</p>
<p><a href="http://www.realtimerendering.com/blog/wp-content/uploads/2013/04/me_and_teapot.jpg"><img class="alignleft size-full wp-image-3472" title="me and teapot" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/04/me_and_teapot.jpg" alt="" width="640" height="480" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.realtimerendering.com/blog/490-links-for-70-days/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dinner Bell, Dinner Bell, Ring!</title>
		<link>http://www.realtimerendering.com/blog/dinner-bell-dinner-bell-ring/</link>
		<comments>http://www.realtimerendering.com/blog/dinner-bell-dinner-bell-ring/#comments</comments>
		<pubDate>Thu, 21 Mar 2013 02:56:12 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[MOOC]]></category>
		<category><![CDATA[three.js]]></category>
		<category><![CDATA[Udacity]]></category>
		<category><![CDATA[WegGl]]></category>

		<guid isPermaLink="false">http://www.realtimerendering.com/blog/?p=3448</guid>
		<description><![CDATA[OK, the obscure title can mean any of the following: We launched the Interactive 3D Graphics MOOC last Monday, and dinner follows launch. I&#8217;m feverishly working on the second half of the course (today I learned how to use tweening in three.js) and the only time I leave my office is for food and bed. This They [...]]]></description>
			<content:encoded><![CDATA[<p>OK, the obscure title can mean any of the following:</p>
<ul>
<li>We launched the <a href="https://www.udacity.com/course/cs291">Interactive 3D Graphics MOOC</a> last Monday, and dinner follows l<del>a</del>unch.</li>
<li>I&#8217;m feverishly working on the second half of the course (today I learned <a href="http://learningthreejs.com/blog/2011/08/17/tweenjs-for-smooth-animation/">how to use tweening in three.js</a>) and the only time I leave my office is for food and bed.</li>
<li>This <a href="http://tmbw.net/wiki/Lyrics:Dinner_Bell">They Might Be Giants song</a> is stuck in my head.</li>
<li>Come and get it! <a href="https://www.udacity.com/wiki/cs291">It&#8217;s all downloadable</a>.</li>
</ul>
<p>After a few months of writing lessons, I&#8217;m entirely in the mode of &#8220;how can I make a question or exercise out of this lesson?&#8221;</p>
<p>As of yesterday I think of the course as &#8220;outta beta&#8221;. There are some minor glitches we&#8217;ll fix in the weeks ahead, but now all the major stuff is in place. The thing that&#8217;s entirely great is that <strong><em>everything </em></strong>about the course is downloadable (thank you, Udacity). All the videos, for example, which is a big help to people with slow or censored YouTube connections. Here&#8217;s the rundown:</p>
<ul>
<li><a href="https://www.udacity.com/wiki/cs291/downloads">Videos</a> are available in unit-sized chunks.</li>
<li>Code is all githubbed <a href="https://github.com/udacity/cs291">here</a>, and there&#8217;s a <a href="https://github.com/udacity/cs291/archive/master.zip">zip download</a>. Unzip and run the index and they&#8217;re all there (except solutions).</li>
<li>All my lesson scripts are <a href="https://www.udacity.com/wiki/cs291#lesson-scripts">here</a>, and there&#8217;s other good stuff on the wiki page there. Tallied up, the first half of the course, in five PDFs, comes out to 367 letter-sized pages (admittedly a lot of figures, but that&#8217;s A Good Thing). Jeez, I&#8217;m writing a book. With code. And videos.</li>
<li>I put the demos (and exercises, but not solutions) up <a href="http://www.realtimerendering.com/udacity/?load=unit4/unit4-robot_arm_extended_exercise.js">here</a>. Click and you&#8217;re running a demo. This is just the github distribution uploaded to our site. I&#8217;ll make a guide to all the demos once the course is done; some of these are pretty handy for explaining things, once you know what you&#8217;re looking at.</li>
<li>All lesson instructor comments are <a href="https://www.udacity.com/wiki/cs291/instructor-comments">here</a>. Some lessons have additional information and links to resources. Rather than have to search through all the lessons for that link you saw somewhere, they&#8217;re all here.</li>
</ul>
<p>Entirely unrelated, but here&#8217;s <a href="http://alteredqualia.com/">the cool three.js link for the day</a>.</p>
<div id="attachment_3449" class="wp-caption alignleft" style="width: 883px"><a href="http://bit.ly/ericity"><img class="size-full wp-image-3449 " title="flower" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/03/flower.jpg" alt="" width="873" height="455" /></a><p class="wp-caption-text">I heart procedural modeling, I don&#8217;t heart Apple&#8217;s driver bug that makes it so WebGL can&#8217;t use antialiasing.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.realtimerendering.com/blog/dinner-bell-dinner-bell-ring/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Yup, Zup?</title>
		<link>http://www.realtimerendering.com/blog/yup-zup/</link>
		<comments>http://www.realtimerendering.com/blog/yup-zup/#comments</comments>
		<pubDate>Wed, 13 Mar 2013 14:06:10 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Reports]]></category>
		<category><![CDATA[three.js]]></category>
		<category><![CDATA[up]]></category>
		<category><![CDATA[webcam]]></category>
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.realtimerendering.com/blog/?p=3431</guid>
		<description><![CDATA[In other words, is Y up, or is Z up? It&#8217;s a loaded question. My little lesson from the course is here, in case you don&#8217;t know the issue. What&#8217;s more entertaining, and the point of this post, are the answers I got back from the people I asked. Speaking of cameras, is there nothing that [...]]]></description>
			<content:encoded><![CDATA[<p>In other words, is Y up, or is Z up? It&#8217;s a loaded question. My <a href="https://www.youtube.com/watch?v=W8hmWWoaUyU">little lesson</a> from <a href="http://bit.ly/ericity">the course</a> is here, in case you don&#8217;t know the issue. What&#8217;s more entertaining, and the point of this post, are <a href="https://www.youtube.com/watch?v=0PpgnT-oEms">the answers I got back from the people I asked</a>.</p>
<p>Speaking of cameras, is there nothing that three.js cannot do? Check out <a href="http://learningthreejs.com/blog/2013/03/12/move-a-cube-with-your-head/">this incredible piece of wonderfulness</a> and have a webcam ready. Or go <a href="http://jeromeetienne.github.com/tquery/plugins/headtrackr/examples/index.html">right to the demo</a>, and then <a href="http://jeromeetienne.github.com/tquery/plugins/headtrackr/examples/demo.html">the other demo</a>. It&#8217;s one of those &#8220;of course we should be able to do that&#8221; kinds of things, but to have it just one mouse click away (assuming you&#8217;re set up to run WebGL; if not, go <a href="https://www.udacity.com/wiki/CS291/Enabling_WebGL">here</a>).</p>
<p><a href="https://www.youtube.com/watch?v=W8hmWWoaUyU"><img class="alignleft size-full wp-image-3432" title="Which Way is Up?" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/03/2013-03-13_095603.jpg" alt="" width="609" height="353" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.realtimerendering.com/blog/yup-zup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wow, that worked?</title>
		<link>http://www.realtimerendering.com/blog/wow-that-worked/</link>
		<comments>http://www.realtimerendering.com/blog/wow-that-worked/#comments</comments>
		<pubDate>Fri, 25 Jan 2013 02:46:51 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[three.js]]></category>
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.realtimerendering.com/blog/?p=3334</guid>
		<description><![CDATA[The demo I made for the Interactive Rendering course actually runs on my phone (Samsung Galaxy S3). My course assistant found it runs on her HTC phone, too. Good luck hitting the up-arrow on my phone, like the documentation on the screen wants me to do… (I should fix that.) It runs only on Firefox, from [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.realtimerendering.com/blog/new-years-teapot/">demo I made for the Interactive Rendering course</a> actually runs on my phone (Samsung Galaxy S3). My course assistant found it runs on her HTC phone, too. Good luck hitting the up-arrow on my phone, like the documentation on the screen wants me to do… (I should fix that.) It runs only on Firefox, from what I can tell.</p>
<p><em>Update:</em> <a href="http://thenextweb.com/google/2013/01/25/google-finally-makes-it-easy-to-enable-webgl-support-in-latest-chrome-for-android-beta/">works in Chrome Beta for Android</a>.</p>
<p>Anyway, I’m impressed that my phone can do this at all. It <strong>does</strong> take a good long while to download and run, but still. 44 frames per second – not bad! Go <a href="http://mrdoob.github.com/three.js/">three.js</a> and <a href="http://www.khronos.org/webgl/">WebGL</a>. Oh, and <a href="http://www.youtube.com/watch?v=xiFyMVUD6fs">here&#8217;s a little video</a>.</p>
<p><em>click the picture below to go directly to the demo.</em></p>
<p><a href="http://www.realtimerendering.com/teapot/"><img class="alignleft size-large wp-image-3336" title="mobile teapot" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/01/photo-1024x768.jpg" alt="" width="1024" height="768" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.realtimerendering.com/blog/wow-that-worked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interview with three.js Creator</title>
		<link>http://www.realtimerendering.com/blog/interview-with-three-js-creator/</link>
		<comments>http://www.realtimerendering.com/blog/interview-with-three-js-creator/#comments</comments>
		<pubDate>Sun, 20 Jan 2013 23:09:47 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[three.js]]></category>
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.realtimerendering.com/blog/?p=3329</guid>
		<description><![CDATA[Three.js is one of a number of free WebGL libraries. First released in April 2010, it has become pretty popular, and includes a huge number of demos. I wanted to know more about its origins, so interviewed its creator, Ricardo Cabello, aka mr.doob, who lives in Spain. * What is your background: your education, your current job? [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mrdoob.github.com/three.js/" target="_blank">Three.js</a> is one of a number of <a href="http://www.khronos.org/webgl/wiki/User_Contributions" target="_blank">free WebGL libraries</a>. First released in April 2010, it has become pretty popular, and includes a huge number of demos. I wanted to know more about its origins, so interviewed its creator, Ricardo Cabello, aka mr.doob, who lives in Spain.</p>
<div>
<p><em>* What is your background: your education, your current job?</em></p>
</div>
<p>My education was a bit of a disaster. I went to primary school, in the later years there I was also going to an academy to learn to draw comics. Then I started studying electronics in secondary school and later moved to arts. It wasn&#8217;t really the right time for me to study so I quit before going to University.</p>
<p>During all these years I was fairly active on the <a href="http://en.wikipedia.org/wiki/Demoscene" target="_blank">Demoscene</a> and that&#8217;s where it all comes from. However, back then I was not a programmer, I only created the graphics, and came up with ideas for demos and stuff.</p>
<div>
<p>Currently I&#8217;m a freelancer doing web development, mainly working for Google Data Arts Team.</p>
</div>
<div>
<div>
<p><em>* Why did you create three.js?</em></p>
</div>
<p>There were many reasons. I was always curious to know what I could do with my own 3d engine. I also thought it was a good challenge for me. I had been tinkering with one since my <a href="http://en.wikipedia.org/wiki/ActionScript" target="_blank">ActionScript</a> days, learning the basics and slowly figuring out the right architecture.</p>
</div>
<p>However, the main motivation probably was the fact that, back in the Demoscene days, everyone were doing their own 3d engines that were only used for one or two demos. For the next demo they would create a new engine. I always found that a bit wasteful so I thought of doing one that others could reuse.</p>
<p>So now I&#8217;m trying to build the kind of engine and tools I wish I had back then.</p>
<div>
<p><em>* How did it get to be so popular?</em></p>
</div>
<p>I don&#8217;t know. Compared to the ones that were popping up at the time, while not the most performant, maybe it was the one with the friendliest API and the easiest to extend. Thanks to that, it now has tons of features and handy code sitting in the examples folder.</p>
<div>
<p><em>* Do you have a sense of how many users there are?</em></p>
<p>Not really&#8230;</p>
<p><em>* How many people contribute code?</em></p>
</div>
<p>There tends to be around 3 active people. There are many others that do small random contributions/fixes: 171 in total so far.</p>
<div>
<div>
<p><em>* Is three.js&#8217;s support and extension a part of your job, a hobby, or both?</em></p>
<p>I guess both <img src='http://www.realtimerendering.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>* Where&#8217;s three.js going? Do you have a plan, or does it depend on user contributions?</em></p>
<p>There is no clear plan. If anything, I just want the web to be more demoscene-ish. More realtime/interactive stuff and less videos.</p>
<p><em>* One problem with having users is that the API gets locked into place. Do you have any plans to change any APIs and deprecate older classes? For example, &#8220;CubeGeometry&#8221; is misnamed, since the method actually creates boxes, not just cubes.</em></p>
<p>That&#8217;s probably the biggest problem. The API is still not locked and we break backwards-compatibility from time to time. There is a <a href="https://github.com/mrdoob/three.js/wiki/Migration" target="_blank">wiki page</a> that documents all the changes.</p>
</div>
<p>However, we try to add deprecated messages here and there for some releases and try to avoid breakage. In the case of CubeGeometry, we would rename it to BoxGeometry while still keeping a CubeGeometry class that would return a BoxGeometry when instantiated plus throwing a warning on the console.</p>
<p>I think the API is getting there, though. It&#8217;s starting to feel right. The only parts I&#8217;m not done with are loaders and materials.</p>
<div>
<p><em>* What sort of technical challenges have you encountered? Does all three.js code work on pretty much all browsers and platforms (ignoring Internet Explorer)?</em></p>
</div>
<p>There have been many challenges, starting with finding the best coding patterns to use in JavaScript to avoid garbage collection. We still struggle with that. Next is finding the most useful data structures for geometry and materials. Then how to pass all that to WebGL in a performant way. We still have a lot to do there. But luckily this is all under-the-hood stuff that most users won&#8217;t even notice.</p>
<p>As for compatibility, yes, we try to support as many platforms as possible.</p>
<div>
<p><em>* In the area of interactive rendering, what&#8217;s the biggest surprise to you over the past ten years? Is there any new capability or platform or social phenomenon that has stood out in your mind?</em></p>
</div>
</div>
<p>I guess the fact that I&#8217;ve been following the demoscene for years has rendered me insensitive about these things&#8230; I remember loving Google Body (now <a href="http://www.zygotebody.com/" target="_blank">Zygote Body</a>) because it showed how 3D could be actually useful as a presentation medium. You couldn&#8217;t grasp the data in the same way if the interface was 2D.</p>
<div>
<p><em>* What do you think is the biggest problem facing the field of interactive rendering at this point?</em></p>
<p>Lack of WebGL support on Safari for iOS and Chrome for Android. As soon as those browsers add support for it I can see this properly taking off.</p>
<p><em>* Which way is up, the +Y or +Z axis?</em></p>
</div>
<p>Y is up. If you&#8217;re consistent with the 2D graphics world (X right, Y up (well&#8230; down)) then the missing axis is Z which becomes depth.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.realtimerendering.com/blog/interview-with-three-js-creator/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>New Year&#8217;s Teapot</title>
		<link>http://www.realtimerendering.com/blog/new-years-teapot/</link>
		<comments>http://www.realtimerendering.com/blog/new-years-teapot/#comments</comments>
		<pubDate>Tue, 01 Jan 2013 15:02:54 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[teapot]]></category>
		<category><![CDATA[three.js]]></category>
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://www.realtimerendering.com/blog/?p=3303</guid>
		<description><![CDATA[I&#8217;ve been beavering away on my part of the Interactive Rendering course for Udacity and Autodesk. It&#8217;s a free MOOC &#8211; massive open online course &#8211; and I&#8217;ll talk more about what I learned from doing it when the course nears completion. For now, the main takeaway I have is &#8220;WebGL plus three.js is a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been beavering away on my part of the <a href="http://bit.ly/ericity">Interactive Rendering course</a> for Udacity and Autodesk. It&#8217;s a free <a href="http://en.wikipedia.org/wiki/Mooc">MOOC</a> &#8211; massive open online course &#8211; and I&#8217;ll talk more about what I learned from doing it when the course nears completion. For now, the main takeaway I have is &#8220;<a href="http://www.khronos.org/webgl/">WebGL</a> plus <a href="http://mrdoob.github.com/three.js/">three.js</a> is a pretty good combination for teaching graphics on the web.&#8221; The fact that WebGL is built into most browsers (sad slow head-shake to Microsoft Internet Explorer at this point) means you can point a student to an URL and they can immediately see and play with an interactive demo. Three.js is a scene graph library which simplifies for the student the mass of initialization and whatnot that WebGL requires, while also not hiding a lot of functionality from the programmer (like some scene graphs do). Bonus bit is that the Chrome browser has a JavaScript debugger built in (just hit F12 or ctrl-shift-I to toggle it on), so students can always look at the underlying code.</p>
<p>So, here&#8217;s my New Year&#8217;s thingy for you to try out:</p>
<p><strong><a href="http://www.realtimerendering.com/teapot/index_new.html">The Teapot</a></strong> &#8211; nicer controller, not currently working on mobile</p>
<p><strong><a href="http://www.realtimerendering.com/teapot/" target="_blank">The Teapot</a> - </strong>semi-mobile friendly, annoying trackball</p>
<p>[Mac/Safari users: follow <a href="http://www.khronos.org/webgl/wiki/Implementations/WebKit" target="_blank">these simple instructions</a> to enable WebGL on your machine. Other users: if stuck, try <a href="http://get.webgl.org/">this site</a>.]</p>
<p>Nothing deep, as it&#8217;s meant for teaching about Gouraud vs. Phong shading: the mouse changes the view (left: trackball, right: pan, middle: zoom), there are a few keyboard controls to switch from vertex to pixel shading and change the tessellation, a GUI for messing with the model and scene, and a little FPS counter in the corner. If the mouse or GUI doesn&#8217;t work the first time, hit refresh (and if anyone knows a fix for this glitch, speak!). If you see the FPS counter consistently below 60 FPS for your machine, please <a href="mailto:erich@acm.org" target="_blank">let me know</a> your hardware configuration. The heresies I commit in this program:</p>
<ul>
<li>You can add a bottom to the teapot (<a href="http://www.sjbaker.org/wiki/index.php?title=The_History_of_The_Teapot" target="_blank">SJ Baker&#8217;s excellent page</a> considers this a major sin).</li>
<li>You can expand the lid 7.7% horizontally to give a solid seal between the teapot and the lid (this gap looks goofy to unbelievers).</li>
<li>You can scale the model up by 30% so it actually looks more like the real teapot (read <a href="http://www.sjbaker.org/wiki/index.php?title=The_History_of_The_Teapot#The_Teapot_DataSet" target="_blank">the end of this section</a> for one explanation of why the model was changed &#8211; short version: Blinn hack to adjust for non-square pixels).</li>
</ul>
<div>Comments appreciated!</div>
<div></div>
<p><a href="http://www.realtimerendering.com/teapot/"><img class="alignleft size-large wp-image-3325" title="teapot demo" src="http://www.realtimerendering.com/blog/wp-content/uploads/2013/01/teapot_demo1-1024x550.jpg" alt="" width="1024" height="550" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.realtimerendering.com/blog/new-years-teapot/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>