<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by OCAD U Locomotive Group on Medium]]></title>
        <description><![CDATA[Stories by OCAD U Locomotive Group on Medium]]></description>
        <link>https://medium.com/@jelanithompson_?source=rss-45a68d50b721------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*KDOZGwdsqfZZ1vTueQAEeA.png</url>
            <title>Stories by OCAD U Locomotive Group on Medium</title>
            <link>https://medium.com/@jelanithompson_?source=rss-45a68d50b721------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:23:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jelanithompson_/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The objective of this project was to create a 3D web experiment that would serve as a building…]]></title>
            <link>https://medium.com/@jelanithompson_/the-objective-of-this-project-was-to-create-a-3d-web-experiment-that-would-serve-as-a-building-c96435469e94?source=rss-45a68d50b721------2</link>
            <guid isPermaLink="false">https://medium.com/p/c96435469e94</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[graphics-programming]]></category>
            <category><![CDATA[threejs]]></category>
            <category><![CDATA[creative-technology]]></category>
            <dc:creator><![CDATA[OCAD U Locomotive Group]]></dc:creator>
            <pubDate>Fri, 10 Jan 2020 23:31:21 GMT</pubDate>
            <atom:updated>2020-01-10T23:33:13.567Z</atom:updated>
            <content:encoded><![CDATA[<p>THREE.js Interactive Project Documentation</p><p>The objective of this project was to create a 3D web experiment that would serve as a building block towards an eventual audio-reactive application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Hb527yaELoe1mIXm" /></figure><p>The user can hit different keys to get different effects from the shape that’s on the screen. These include creating dashed/fragmented surfaces with the filter function, modifying the color of the shape and toggling the status of the perlin noise function that&#39;s responsible for the ripple effect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-hut7zeJxiHW9J6s" /></figure><p>The user is able to orbit around the shape to see what it looks like from every angle. THREE.js comes with a method that allows us to accomplish this task easily. As for object motion, in addition to the ripple, it’s spinning slowly on its access. I placed the noise on one side of the shape to emphasize this. You can press the M key to enable a simple movement function that uses sin and cos to add a bit of life to the shape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LK3nmd6Vnx9JBO9B" /></figure><p>The user can press the U (update) key to switch between the different forms of the shape and press the C key to switch the colour. Most of my time was spent trying to figure out how to make this functionality happen in realtime. I eventually settled on pre-loading these shapes thanks to a friend who&#39;d dealt with a similar problem before. This affects the load time slightly, but the transitions happen seamlessly.</p><p>In the future, in addition to the audio-reactive element, it would be great to experiment with post-processing more. I achieved the above 8-bit effect by trying to apply an effect called <em>Bloom</em>. Bloom is suppose to make objects glow, but the pixelated effect was a happy little accident. THREE.js has tons of post-processing options available to check out if that was something you were interested in for the future.</p><p>This experiment makes use of Matt DesLaurier’s canvas-sketch as well as his three-tube-wireframe packages. Canvas Sketch is a tool that allows us to quickly prototype creative web projects and share them whether it be physical/digital prints. Three Tube Wireframe is just something that allows for thicker lines than the original demo had. This is solely for aesthetics.</p><p><a href="https://github.com/mattdesl/canvas-sketch">mattdesl/canvas-sketch</a></p><p><a href="https://github.com/mattdesl/three-tube-wireframe">mattdesl/three-tube-wireframe</a></p><p>If you’d like a walkthrough of the code, I can provide that as well. Most of the complex parts have to do with the GLSL, but I’ve tried to write descriptive comments for the rest.</p><p>Some additional functionality:</p><p>Spacebar - Pause</p><p>cmd + s - Save screenshot of frame</p><p>R - Turn off the perlin noise functionality</p><p><a href="https://github.com/JelaniThompson/fresco-threejs-interactive-experiment">https://github.com/JelaniThompson/fresco-threejs-interactive-experiment</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c96435469e94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making A Locomotive Train Track With PubNub]]></title>
            <link>https://medium.com/@jelanithompson_/making-a-locomotive-train-track-with-pubnub-935f9ca9e3ba?source=rss-45a68d50b721------2</link>
            <guid isPermaLink="false">https://medium.com/p/935f9ca9e3ba</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[OCAD U Locomotive Group]]></dc:creator>
            <pubDate>Sat, 14 Dec 2019 17:49:27 GMT</pubDate>
            <atom:updated>2019-12-14T17:49:27.041Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HHX1FOLK_Uzt_MD6" /></figure><p>For our final section in the Atelier studio course titled <em>Book++</em>, our group (Anas Raza, Joshua Linton, Jelani Thompson) were tasked with picking a random book from a stack and making an interactive idea based on the book we chose. Our book was <em>Atlas Lokomotiv</em>, a collection of different locomotives and facts about them spanning the years of 1900–1918.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/0*BVXECIB89XAKmjwW.jpg" /></figure><p>Since we were required to use the networking library PubNub, the idea that we came up with was to have a train track that spans across the phone of multiple users and to have a train drive across those tracks. We tried our best to ensure that the transition of the train driving from screen-to-screen was accurate. The end result was exactly what we’d imagined.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9xye9_j1-s2e3Tyw" /></figure><p>Let’s hop right into the technical.</p><p>To make sure that this idea worked, we needed to be able to have a single source of truth that all of the connected devices could access for data such as timing. To do this we do the following:</p><p>- Initialize our data server to make use of our assigned publish and subscribe keys</p><pre>dataServer = new PubNub({</pre><pre>  publish_key: pubKey,</pre><pre>  subscribe_key: subKey</pre><pre>});</pre><p>- Subscribe to our channel and add listeners to it</p><pre>dataServer.addListener({ message: readIncoming });</pre><pre>dataServer.subscribe({ channels: [channelName] });</pre><p>- Read incoming messages</p><pre>function readIncoming(inMessage) {</pre><pre>  publishedPhoneID = parseInt(inMessage.message.newPhoneID);</pre><pre>}</pre><p>- Broadcast the messages</p><pre>function broadcastPhoneID(nextPhoneID) {</pre><pre>  dataServer.publish({</pre><pre>    channel: channelName,</pre><pre>    message: {</pre><pre>      newPhoneID: nextPhoneID</pre><pre>    }</pre><pre>});</pre><p>- Have a text field to input the assigned ID so the phone knows when to play the train animation</p><pre>sendText = createInput();</pre><p>- Have a draw function for our visual effects such as our background picture and gifs of snow</p><pre>snow250.position(0, 0);</pre><pre>image(bg2, 0, 0, displayWidth, displayHeight);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5cTbUv55bk1_xuI0" /><figcaption>A quick sketch of how we had the train move onto screen</figcaption></figure><p>After the basic setup, we added in code to have the animations sync properly between devices so that the train animation wasn’t playing on multiple screens simultaneously.</p><p>You can check out a video of the project running here: <a href="https://drive.google.com/file/d/1ofETtePH6ltUGmvbgiP44G_fIvsJpCU5/view?usp=sharing">https://drive.google.com/file/d/1ofETtePH6ltUGmvbgiP44G_fIvsJpCU5/view?usp=sharing</a></p><p>You can check out the project code at <a href="https://glitch.com/~traintime1">https://glitch.com/~traintime1</a></p><p>You can also see it running live at <a href="https://traintime1.glitch.me/">https://traintime1.glitch.me/</a> (on your mobile device).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=935f9ca9e3ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>