<?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 Ali Siddiqui on Medium]]></title>
        <description><![CDATA[Stories by Ali Siddiqui on Medium]]></description>
        <link>https://medium.com/@alisiddiqui_code?source=rss-137150cd3137------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qcs1P2HSGRvTr-E84M4qEg.jpeg</url>
            <title>Stories by Ali Siddiqui on Medium</title>
            <link>https://medium.com/@alisiddiqui_code?source=rss-137150cd3137------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 05:16:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alisiddiqui_code/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 VR Experience: Stage 4&5]]></title>
            <link>https://medium.com/code3100/the-vr-experience-stage-4-5-a9f5d13985ec?source=rss-137150cd3137------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9f5d13985ec</guid>
            <category><![CDATA[virtual-reality]]></category>
            <dc:creator><![CDATA[Ali Siddiqui]]></dc:creator>
            <pubDate>Fri, 09 Jun 2017 13:53:58 GMT</pubDate>
            <atom:updated>2017-06-09T13:53:58.991Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the final part of the experience. Video of all stages is at the bottom of the post.</p><p><strong>Stage 4</strong></p><p>This environment is completely new and is set in mid-air using floating platforms and islands. The following are the new features added in this stage:</p><ul><li>High amounts of animation and overlap events.</li><li>Environmental biomes that was inspired by research into stress and how certain environments can bring relief to people. We used a forest &gt; snow &gt; beach biome (designed by Jason) for this stage.</li><li>Using more particle systems that related to nature e.g. waterfall, fire, snow. This shows how UE4 can be utilized to create different immersive environments.</li><li>New interactable objects and triggers.</li><li>Dynamic material instances.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bVVqKBI4XnZnoS6Jaks7UA.png" /><figcaption>Floating Platforms</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rUZTqP5Q5W559ltDA-PFHQ.png" /><figcaption>Forest Biome</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lwQU4BVeOC4onbvGamnslg.png" /><figcaption>First Interaction</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rBiCHTSIxjUvZkVie77XcA.png" /><figcaption>Forest Interaction Script</figcaption></figure><p>Once the user places the cube inside the box, the box starts blinking/glowing green and a waterfall starts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M-uMwsBDNIx5HFUfXbYXRA.png" /><figcaption>Snow Biome</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gEAchMJLri3I8U4OuB3FRA.png" /><figcaption>Interactive Slider</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7pQ_Nkek6OEUNbNtmVri-Q.png" /><figcaption>Slider Interaction</figcaption></figure><p>This slider allows the user to slow down the wind and start a fire particle system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PpXImrscOF1FW0lWbxIXpg.png" /><figcaption>Beach Biome</figcaption></figure><p>Once the user goes through all the biomes, they enter a similar structure to that of Stage 3. Each arc starts turning white and the camera starts fading to white and the user is teleported back to stage 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZLzcEiks3FrF3Fore3f2Lg.png" /><figcaption>Surrounding Starts Fading to White</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xuOdTMRg0IAuwmbzODmVxQ.png" /><figcaption>Back to Stage 1</figcaption></figure><p><strong>Video of VR Experience</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dp6JxJe3BIdw&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fp6JxJe3BIdw%3Ffeature%3Doembed&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4237500c6013f640ca7f9afd53345ed6/href">https://medium.com/media/4237500c6013f640ca7f9afd53345ed6/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9f5d13985ec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/the-vr-experience-stage-4-5-a9f5d13985ec">The VR Experience: Stage 4&amp;5</a> was originally published in <a href="https://medium.com/code3100">code3100</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The VR Experience: Stage 3]]></title>
            <link>https://medium.com/code3100/the-vr-experience-stage-3-7cf19e2f7ad4?source=rss-137150cd3137------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cf19e2f7ad4</guid>
            <category><![CDATA[virtual-reality]]></category>
            <dc:creator><![CDATA[Ali Siddiqui]]></dc:creator>
            <pubDate>Fri, 09 Jun 2017 10:21:31 GMT</pubDate>
            <atom:updated>2017-06-09T10:21:31.968Z</atom:updated>
            <content:encoded><![CDATA[<p>The stage design uses the arcs from the pavilion design and is arranged to create the feeling of an endless hallway. The primary features of this stage are:</p><ul><li>The beginning of the stage uses a moving light to show the path of the hallway as it is very dark.</li><li>A particle system is also animated to also act as a guide and add more intrigue into the design.</li><li>Rotating arcs surrounding a pathway along with dynamic lights which displays the possibilities of dynamic elements in VR.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vmjo-B88ZlCrJ6LCJsFAbQ.png" /><figcaption>Arc Rotation Animation</figcaption></figure><p>The above script uses very simple logic:</p><ul><li>Once trigger box is overlapped&gt;play animation&gt;play audio</li></ul><p>This is the basis for all interactions used in the experience:</p><ul><li>EVENT &gt; INTERACTION &gt; RESULT</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qdRol5is47WNvTq34jsimg.png" /><figcaption>Lights used in this stage</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Z0liPX7aLG4g3Fx4J9S_A.png" /><figcaption>Dynamic Object and Particle System</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UN0vomPWZ8E1oStryNnl0g.png" /><figcaption>Rotating Arcs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cqAuOmruv27O64NIagGE5A.png" /><figcaption>Portal to Stage 4</figcaption></figure><p>This leads into Stage 4 of the experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cf19e2f7ad4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/the-vr-experience-stage-3-7cf19e2f7ad4">The VR Experience: Stage 3</a> was originally published in <a href="https://medium.com/code3100">code3100</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The VR Experience: Stage 1&2]]></title>
            <link>https://medium.com/code3100/the-vr-experience-stage-1-2-43c51a2b26c3?source=rss-137150cd3137------2</link>
            <guid isPermaLink="false">https://medium.com/p/43c51a2b26c3</guid>
            <category><![CDATA[virtual-reality]]></category>
            <dc:creator><![CDATA[Ali Siddiqui]]></dc:creator>
            <pubDate>Fri, 09 Jun 2017 10:02:44 GMT</pubDate>
            <atom:updated>2017-06-09T10:02:44.232Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Stage 1</strong></p><p>The start of the experience begins in the pavilion, putting the user in a familiar space and introducing them to the virtual space. This is where the on-boarding happens, teaching the user to teleport, pick up objects (torch), and turn it on. In addition, there is atmospheric audio which includes people walking around, a cafe, birds and general chatter. This is essential in creating an immersive experience as it fills out the space and causes the user to forget they’re in VR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wFbyfi--oMuja1dwriQF0w.png" /><figcaption>Stage 1: on-boarding</figcaption></figure><p><strong>Stage 2</strong></p><p>After a certain amount of time (30s–90s) everything fades to black and the user is teleported to stage 2 — a night time version of the pavilion with a mystery themed soundtrack playing in the background. Dynamic lights and an interactive button are introduced in this stage. The purpose of this stage is to engage and intrigue the user to advance through the encompassing environment that surrounds them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*13FQs200IHOSmQSEwF80_A.png" /><figcaption>Sequential Light Activation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qhhaClkIpV828k7omp7ggQ.png" /><figcaption>Button Pressed Event</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVR4OnkbSoubUV0-wkYTdg.png" /><figcaption>Night time pavilion with button and lights</figcaption></figure><p>Once they press the button, all lights start turning off and the screen fades to black, leading into <strong>Stage 3</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43c51a2b26c3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/the-vr-experience-stage-1-2-43c51a2b26c3">The VR Experience: Stage 1&amp;2</a> was originally published in <a href="https://medium.com/code3100">code3100</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VR On-boarding]]></title>
            <link>https://medium.com/code3100/vr-on-boarding-51f4c0929e01?source=rss-137150cd3137------2</link>
            <guid isPermaLink="false">https://medium.com/p/51f4c0929e01</guid>
            <category><![CDATA[virtual-reality]]></category>
            <dc:creator><![CDATA[Ali Siddiqui]]></dc:creator>
            <pubDate>Mon, 05 Jun 2017 05:47:20 GMT</pubDate>
            <atom:updated>2017-06-05T05:47:20.025Z</atom:updated>
            <content:encoded><![CDATA[<p>This is one of the most crucial parts of any kind of VR experience as you need to ensure the user knows how to use the controllers to navigate and interact.</p><p><strong>DISCLAIMER:</strong> This will be using Mitch’s VR Template project which is freely available on GitHub.</p><p>Aim: To show the user how to teleport, pick up torch, turn on torch. This will be done using dynamic materials, text, and haptic feedback.</p><p>Firstly, we need to get the Oculus touch controller meshes and use them in the character model so the user can instantly relate real life and VR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/161/1*kQhx5Nx7a6k_0pHmnHaIyg.png" /><figcaption>Ensure ‘Show Engine Content’ is checked in the view options</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jpfxXsfTysDokJdqdV-fFw.png" /><figcaption>Type in ‘Oculus’ in the search bar to see the controller meshes</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lMNU2ZoCeuZPrB4VNWbJHg.png" /><figcaption>Apply those meshes in the hand sphere components</figcaption></figure><p>Next, install SteamVR to get individual components of a controller mesh. These meshes will be used to highlight the buttons that need to be used. The following are the required meshes:</p><ul><li>Thumbstick — Used for teleportation</li><li>Grip — Used to pick up/interact with objects</li><li>Trigger — Used to turn on torch</li></ul><p>Import the individual meshes and set its material to M_BasicHighlightMaterial. Then add this mesh to character model (using a static mesh component) and place it over the controller mesh. Then add a text render component that will be used as the instructions for the on-boarding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*iOIfc5C4LtcCLVCV43bbRg.png" /><figcaption>Text Render Component</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ye6Tv15clUGwMut0HuyHHw.png" /><figcaption>Highlighted Thumbstick and Text Render</figcaption></figure><p>Repeat this for the other two buttons. Next the Blueprint logic needs to be added.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8xN8A-C5ZcPK6YjLCIk1Hg.png" /><figcaption>Thumbstick On-boarding</figcaption></figure><p>Logic for the above image:</p><ul><li>Thumbstick is highlighted and TextRender is showing when the user enters the game, the left controller is also vibrating.</li><li>Once the user presses the Thumbstick, the visibility for the highlighted mesh and TextRender is turned off, a sound effect is played and the haptic feedback stops.</li></ul><p>This logic of toggling visibility and sound is used for the other buttons as well, however they are triggered when the user enters a trigger box and needs to pick up the torch. Below is an example of how it works:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FFX2Y85laIuA%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DFX2Y85laIuA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FFX2Y85laIuA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d24fc50fbdbefe77c242a444cbe0d28d/href">https://medium.com/media/d24fc50fbdbefe77c242a444cbe0d28d/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51f4c0929e01" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/vr-on-boarding-51f4c0929e01">VR On-boarding</a> was originally published in <a href="https://medium.com/code3100">code3100</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The VR Experience Concept]]></title>
            <link>https://medium.com/code3100/the-vr-experience-concept-f048f773cd19?source=rss-137150cd3137------2</link>
            <guid isPermaLink="false">https://medium.com/p/f048f773cd19</guid>
            <category><![CDATA[virtual-reality]]></category>
            <dc:creator><![CDATA[Ali Siddiqui]]></dc:creator>
            <pubDate>Sat, 03 Jun 2017 04:50:42 GMT</pubDate>
            <atom:updated>2017-06-03T04:50:42.940Z</atom:updated>
            <content:encoded><![CDATA[<p>Initially, we were going for a ‘puzzle’ style game to showcase the interactivity aspect of VR. In addition, we also wanted to incorporate a darker more mysterious environment with engaging audio.</p><p>However, after creating a prototype dark room with immersive audio, the tutors suggested that we focus purely on the experience without the puzzle aspect as it might take away from the atmosphere. We decided to keep the interactivity simple, yet necessary where they would only pick up a torch and use buttons/levers to advance through each stage. The immersion would be achieved through dynamic elements such as lights and objects.</p><p>The following is a brief explanation of how we plan on setting out the experience:</p><ul><li><strong>Stage 1:</strong> User starts off in the pavilion during day time, as it would be in real life. This is also where the on boarding would occur, getting them used to the controls. Lively audio with crowd noises and birds.</li><li><strong>Stage 2:</strong> After certain amount of time (30s to 60s) the environment fades to black and it’s night time. The audio has changed to a mysterious sound track.</li><li><strong>Stage 3:</strong> Warped space, completely new environment.</li><li><strong>Stage 4:</strong> another warped space and new environment.</li><li><strong>Stage 5:</strong> Return back to stage 1 and end of experience.</li></ul><p>We thought that purely focusing on creating an immersive VR experience would have a much stronger link to stress. Below is a diagram of how the stages of stress will be represented in our experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8DNT-eBddxucMJtv-ITYdg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f048f773cd19" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/the-vr-experience-concept-f048f773cd19">The VR Experience Concept</a> was originally published in <a href="https://medium.com/code3100">code3100</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adding Functionality in the VR template]]></title>
            <link>https://medium.com/code3100/adding-functionality-in-the-vr-template-136ed48a9ed4?source=rss-137150cd3137------2</link>
            <guid isPermaLink="false">https://medium.com/p/136ed48a9ed4</guid>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[scripting]]></category>
            <category><![CDATA[blueprint]]></category>
            <category><![CDATA[computational-design]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <dc:creator><![CDATA[Ali Siddiqui]]></dc:creator>
            <pubDate>Wed, 17 May 2017 04:27:03 GMT</pubDate>
            <atom:updated>2017-05-17T04:27:03.586Z</atom:updated>
            <content:encoded><![CDATA[<p>A key part of a VR experience is the interaction between the player and the objects that make up the environment. For our VR experience, the user will primarily be picking up an object that acts as an activator. For example, an object must be placed in a specific location to open a door/turn on a light.</p><p><strong>Goal:</strong> Open a door/turn on a light when a specific object enters a trigger box.</p><p>Firstly, I created 3 Blueprint (BP) Actors with Trigger Boxes. A door, light, and any static mesh that will be used as the activator (in this case I’ve used a simple cube). The Activator BP just needs to be a an actor that has a static mesh as a child, this static mesh can be anything the user wants. The reason it needs to be a BP is so that it can be referenced in other BPs to cause events to occur. In this case I’m using Mitch’s VR Content Example scene which has preset objects and BPs that allow the user to pick them up with VR controllers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4R6H2X-kwR1PuOkNBTh0KQ.png" /><figcaption>BP Activator Setup</figcaption></figure><p>Next, I started working on the door. The first thing that needs to be done is setting up the rotation animation. This animation is done using a Timeline node where you can control a curve that controls the value of rotation and timing between key frames.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*Z5oW3ZUS17QbXLs8XukTfQ.png" /><figcaption>Timeline Node</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KtwMCRKcIpWQCC0It0nXYg.png" /><figcaption>X-axis is time, Y-axis is value of rotation in degrees</figcaption></figure><p>This timeline needs to be activated by an event and then this information needs to be sent to the door static mesh. However, this event can only be triggered by the activator. Below is the script of how this works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EHaHvRWsxyjQW5lflrJSdg.png" /><figcaption>Referencing the activator BP (IntObj = Interactive Object)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gJaGqkwmyYp73dq-sIeu0w.png" /><figcaption>Checking if the Activator is overlapping the trigger box</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y3xWQQ5B7crlBMduBG15-g.png" /><figcaption>Setting Rotation of Door</figcaption></figure><p>Logic:</p><ul><li>Check if Actor overlapping trigger box is the activator</li><li>If true &gt; check if closed &gt; if closed &gt; play timeline &gt; change Z rotation value &gt; Set this as the new door rotation</li><li>If false &gt; Reverse animation &gt; set this new rotation as Closed</li></ul><p>The BP for the light is very similar. It is based on toggling the visibility of the light based on the presence of the activator in the trigger box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x1ZdvbvZZN7JpqaWG1trZA.png" /><figcaption>Light Switch BP</figcaption></figure><p>This forms the basic interactions the player will do throughout the VR experience. It encourages exploration while using the movement in VR to its advantage, thus creating a much more immersive and engaging environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=136ed48a9ed4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/adding-functionality-in-the-vr-template-136ed48a9ed4">Adding Functionality in the VR template</a> was originally published in <a href="https://medium.com/code3100">code3100</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Problem Solving System in UE4 (2/2)]]></title>
            <link>https://medium.com/code3100/creating-a-problem-solving-system-in-ue4-2-2-491b0381057c?source=rss-137150cd3137------2</link>
            <guid isPermaLink="false">https://medium.com/p/491b0381057c</guid>
            <category><![CDATA[vr-group]]></category>
            <category><![CDATA[group-4]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[computational-design]]></category>
            <dc:creator><![CDATA[Ali Siddiqui]]></dc:creator>
            <pubDate>Mon, 03 Apr 2017 01:45:38 GMT</pubDate>
            <atom:updated>2017-04-04T01:03:23.324Z</atom:updated>
            <content:encoded><![CDATA[<p>Another aspect we wanted to have in our game was getting the player to move around and explore the space. To achieve this, we thought one of the challenges would involve the player needing to find all keys to unlock a door. This will allow the player to get used to moving around in a virtual environment.</p><p><strong>My Goal:</strong> Create a door/portal that can only be accessed if the player collects all the keys.</p><p><strong>Step 1</strong></p><p>I made two Blueprint actors, the first being a door static mesh which will act as the portal to the next stage. The second was a sphere static mesh that will be the keys that the player must collect to be able to go through the portal. Next, I created a blank map that will be where the player teleports to after going through the portal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ud5LVP8q8NW2QMLKGTCRWA.png" /><figcaption>Assets described above</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LmakGBf-j5Hch4uOb0N44g.png" /><figcaption>Sphere actor used as a key</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yV4kFFTZ4DyMfy4IR7LuIQ.png" /><figcaption>Door actor used as a portal</figcaption></figure><p><strong>Step 2</strong></p><p>Then, I create a variable in the Character Blueprint called ‘NumberOfKeys’ that will be an integer representing the amount of keys needed to unlock the portal. This variable will be referenced in the portal and key blueprints. I also created a GameInstance Blueprint which will be used to save data between stages e.g. portal requires 3 keys &gt; player collects 4 &gt; player goes through portal &gt; 1 key remaining in player inventory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*HizyqEBKLXLCa72s1l0CAQ.png" /><figcaption>NumberOfKeys variable as an Integer</figcaption></figure><p>Now I start making the script in the Key Blueprint. A simple collision trigger is used where if the player overlaps the sphere collision, this data is sent to the Character BP and is added to the ‘NumberOfKeys’ variable. The key actor is then destroyed to show that the player has collected it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U2u-_UB5sgJbT9v3gJ_7wg.png" /><figcaption>Key Blueprint script</figcaption></figure><p><strong>Step 3</strong></p><p>Next, I start working on the Portal Blueprint script. I add a collision trigger event that sends this information to the Character BP and allows me to use the ‘NumberOfKeys’ variable in this script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*lGv-111jqwr30UDc-2oGQA.png" /><figcaption>Casting to Character BP and using required variables</figcaption></figure><p>I have to add a new Integer variable in this script called ‘RequiredNumberOfKeys’, this will let me have different requirements for different portals through the use of booleans and true/false statements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vSoOky5kSW3C6hUCi8cZIg.png" /><figcaption>Using new variable to check if player has sufficient amount of keys</figcaption></figure><p>The script above works as follows:</p><ul><li>Does player have required amount of keys? if true &gt; does player have more than required amount of keys? if true &gt; subtract required amount of keys from the amount of keys picked up &gt; send this information to GameInstance and save data in the following stage &gt; open new level</li><li>Does player have more than required amount of keys? if false &gt; send this information to GameInstance &gt; open new level</li><li>Does player have required amount of keys? if false &gt; print “You Don’t Have Enough Keys!” &gt; don’t open new level</li></ul><p><strong>In-Game</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E5qVLwrO89Cb50D8x2ICLg.png" /><figcaption>Start of first stage</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IwTLpocnK1s80zVJBg8iYw.png" /><figcaption>Only ONE key picked up, TWO required to enter portal</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qf7rKTMQID3VQ0FA6jm3_A.png" /><figcaption>‘Don’t have enough keys’</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zXf9y_l3PZaAKLCRYQjlAQ.png" /><figcaption>All THREE keys picked up</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oFB2nH-RkWEKROiZfpByNA.png" /><figcaption>Portal teleports player to next stage</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OAW3rntePgh9BXbeGsSe4g.png" /><figcaption>One key remaining in inventory</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qucOTR-SaXtmaQA9S63djA.png" /><figcaption>Number of keys required and stage name can easily be edited</figcaption></figure><p>Learning this simple game mechanic was very helpful in furthering my knowledge in the communication of information between Blueprint scripts as well as saving data to the character itself. This can be further developed and used for our final game.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=491b0381057c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/creating-a-problem-solving-system-in-ue4-2-2-491b0381057c">Creating a Problem Solving System in UE4 (2/2)</a> was originally published in <a href="https://medium.com/code3100">code3100</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Problem Solving System in UE4 (1/2)]]></title>
            <link>https://medium.com/code3100/creating-a-problem-solving-system-in-ue4-1-2-4803b3058885?source=rss-137150cd3137------2</link>
            <guid isPermaLink="false">https://medium.com/p/4803b3058885</guid>
            <category><![CDATA[group-4]]></category>
            <category><![CDATA[vr-group]]></category>
            <category><![CDATA[computational-design]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <dc:creator><![CDATA[Ali Siddiqui]]></dc:creator>
            <pubDate>Sun, 02 Apr 2017 13:35:31 GMT</pubDate>
            <atom:updated>2017-04-04T01:03:00.108Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the ideas that we talked to Barry about was the player needed to find a light source. They would find (or be given) a torch and would then have to find the battery for the torch to be have better vision of the surrounding area.</p><p><strong>My Goal: </strong>Create a torch that could be picked up, however it would only work if the player found the battery.</p><p><strong>Step 1</strong></p><p>Firstly, I modeled a simple flashlight in 3DS Max, UVW Unwrapped it and imported into UE4 and checking the ‘Import Skeletal Mesh’ option. This allows me to pick up the object and interact with it as if it is has physics characteristics. Then I converted it into a Blueprint Actor so I could use it in other scripts as a variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FrUgEDUT0cpYA3wPp2zh3A.png" /><figcaption>Imported Assets of Torch</figcaption></figure><p><strong>Step 2</strong></p><p>I have also added a Blueprint interface that allows me to communicate between the Flashlight and FirstPersonCharacter scripts. Events such as ‘pressing this key will turn the light on,’ ‘destroy the actor when the player picks it up.’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*daTl_t7ZaW2kKzyESIGOGw.png" /><figcaption>Blueprint Interface Functions</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b0UMa3RxOWWwnZAbwjpRrQ.png" /><figcaption>Key input going into the interface functions</figcaption></figure><p><strong>Step 3</strong></p><p>Now I have to add the logic to the character blueprint where the torch is added to the character once the player picks it up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2g5ZqiVl7nbFLkZLLGoeg.png" /><figcaption>Placement of torch and light source on the character model</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*klot1Cac52yWVKIGhHA2Hw.png" /><figcaption>FirstPersonCharacter Blueprint Script</figcaption></figure><p>This part of the script checks to see if the player has a flashlight, if not, add it to the player. It also toggles the visibility of the flashlight based on whether the key input is true or false <strong>AND</strong> if the player has the battery or not.</p><p><strong>Step 4</strong></p><p>adding battery as a blueprint actor and using boolean to turn on the light switch</p><p>For this prototype, I used a simple cube mesh to represent the battery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*buGJasgCfodDNt37k9n9dQ.png" /><figcaption>Battery Mesh</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AIxIsCfMBA6NWFuW88JEew.png" /><figcaption>Script used in battery blueprint</figcaption></figure><p>The main logic of this script is:</p><ul><li>Press input key &gt; is player within collision box? if yes &gt; check if the player has already picked up a flashlight &gt; Print ‘Flashlight Needed’ if false &gt; Destroy actor</li><li>Press input key &gt; is player within collision box? if no &gt; don’t add to inventory</li></ul><p><strong>In-Game</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H08Da8g5Z5RxPFGEMNF6qg.png" /><figcaption>Two assets used in the prototype</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q5SGq-PdRynaelg_SieI0Q.png" /><figcaption>‘Need Battery’ printed when player tries to use flashlight</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yP5OmcL_c46lL4LYO1UhNQ.png" /><figcaption>Battery Mesh</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I6Y7u3ottKoDvcZ35lgIpw.png" /><figcaption>‘Flashlight Power On’ when battery picked up</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*icGJtnG4WBY4ZShr3iBsvw.png" /><figcaption>Flashlight works after picking up battery</figcaption></figure><p>This is definitely an extremely simplified version of the scripts, however it outlines the basic logic of how this game mechanic works and also shows the importance of booleans and communication between blueprint scripts. This was also very useful as the same logic can easily be applied when scripting for our final game.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4803b3058885" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/creating-a-problem-solving-system-in-ue4-1-2-4803b3058885">Creating a Problem Solving System in UE4 (1/2)</a> was originally published in <a href="https://medium.com/code3100">code3100</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meeting with the Tutors and using the Visualisation Tool]]></title>
            <link>https://medium.com/code3100/meeting-with-the-tutors-35be673806f0?source=rss-137150cd3137------2</link>
            <guid isPermaLink="false">https://medium.com/p/35be673806f0</guid>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[computational-design]]></category>
            <category><![CDATA[vr-group]]></category>
            <category><![CDATA[group-4]]></category>
            <category><![CDATA[vr]]></category>
            <dc:creator><![CDATA[Ali Siddiqui]]></dc:creator>
            <pubDate>Sun, 02 Apr 2017 09:53:30 GMT</pubDate>
            <atom:updated>2017-04-04T01:07:54.068Z</atom:updated>
            <content:encoded><![CDATA[<p>On Tuesday the 28th of March we met with Barry and Shanny at BVN to get feedback on our progress as they were not able to attend the previous lesson.</p><p><strong>Visualisation Tool</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PmMf9FsKztZwkI8Ryj0sAw.jpeg" /><figcaption>Edward from the design team using the visualisation tool in VR</figcaption></figure><p>First, we went through our visualisation tool and demonstrated how it would be used to view different design iterations and change materials to see how the pavilion would exist in the space. The main concern was questioning how it would perform in VR in terms of frames per second as some of the models had a very high poly count. Barry suggested other people in the class should also use the VR headset to get a good sense of scale of the space and the design iterations. This would allow people to think of more realistic dimensions needed for their respective features and how they would accommodate multiple people in that space within the pavilion.</p><p>Some major observations of designs people observed after using VR were:</p><ul><li>Width of pathways</li><li>Ceiling heights</li><li>Exposure to light</li><li>direction of flow</li></ul><p><strong>VR Experience</strong></p><p>This was the most important part of the meeting as we were struggling with ideas on how to create a cohesive experience between stages. Barry and Shanny showed us good examples of VR games and how they get the player to familiarize themselves with the controls and the surrounding space. Furthermore, we discussed real ideas that will be used in our experience/game which also links back to our five stages of human stress reaction. The following are ideas and concepts that we will use:</p><ul><li>The game will start with the regular pavilion design as it is in real life. Once the player moves forward (triggering a collision box) the screen will fade to black and the player will then be in a darker and scaled up version of the pavilion. They would need to complete simple interactive tasks to advance to the next stage, this will act as a tutorial for the player.</li><li>We will be taking inspiration from the game Portal, where the player needs to collect and place certain objects in specific areas to unlock doors and new levels. This relates to our theme as problem solving is a large part of stress response and mobilization. Problem solving in VR is also very effective in getting the player to forget their environment and focus on the issue at hand. <strong>(I will be working on the puzzle and problem solving aspect of our game).</strong></li><li>Audio and lighting will also be a big part of our experience as it will engage the player and add to a more realistic and immersive experience. Also by trying to use as little text as possible, audio can play a big role in grabbing the player’s attention and guiding them through an area.</li></ul><p>Prototypes of this will be documented in upcoming posts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35be673806f0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/meeting-with-the-tutors-35be673806f0">Meeting with the Tutors and using the Visualisation Tool</a> was originally published in <a href="https://medium.com/code3100">code3100</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating A Visualisation Tool (2/2)]]></title>
            <link>https://medium.com/code3100/creating-a-visualisation-tool-2-2-7c4d27681cad?source=rss-137150cd3137------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c4d27681cad</guid>
            <category><![CDATA[vr-group]]></category>
            <category><![CDATA[computational-design]]></category>
            <category><![CDATA[group-4]]></category>
            <category><![CDATA[unreal-engine]]></category>
            <dc:creator><![CDATA[Ali Siddiqui]]></dc:creator>
            <pubDate>Sat, 01 Apr 2017 11:11:38 GMT</pubDate>
            <atom:updated>2017-04-04T01:01:55.747Z</atom:updated>
            <content:encoded><![CDATA[<p>The next stage of this prototype involves the use of Blueprint scripting to add functionality to the tool. The two main features of this tool are:</p><ul><li>Easily visualising multiple design options</li><li>Changing materials of the panels and frame of the structure</li></ul><p><strong>To view the different designs</strong>, I first had to collect them from the groups&gt;prepare them in 3DS Max&gt;export into UE4. Once I have the pavilions in the correct position with the materials applied, I must convert them to a Blueprint Actor which allows me to use it as a variable in other scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CmMl5wvxTrYfo2EXcc7tjw.png" /><figcaption>Converting a design option to a Blueprint Actor</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*tItZF6dMW1PC50fIF1WbFg.png" /><figcaption><strong>Widget Blueprint:</strong> Interface for selecting different design options</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gyPc4A6ahiCk6urlt_5qaw.png" /><figcaption><strong>Referencing</strong> the design options in the Widget Blueprint script</figcaption></figure><p>To add functionality to these Widget Interface buttons, I add an ‘OnClicked’ event which triggers the visibility and collision toggle. As shown below, the design reference is the target of these nodes where the ‘OnClicked’ event execution wire is inserted. The red nodes are Boolean&#39;s, which execute functions based on questions the script is asking, e.g. <strong>pseudo code:</strong> ‘if the button is clicked, and the visibility/collision is off, turn the visibility and collision on,’ and vice versa.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IM5HBXPqvoIb1H7Cxg6aMw.png" /><figcaption>Using the reference to toggle visibility and collision</figcaption></figure><p><strong>To change the material of an object</strong> was a much more challenging task for me. This is the basic method and variables that went in to my method of achieving this:</p><ul><li>Create an interface with the sufficient buttons</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*GGloKhtapPaCCCtAitK5aw.png" /><figcaption>Material Changer Interface</figcaption></figure><ul><li>Create a Blueprint Interface — this is used to communicate between Blueprint scripts — this will tell the game that the clicked mesh is the ‘Selected Mesh’, this selected mesh reference’s material is then changed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*i5hJEtEnV-PF0Krs2_cy5Q.png" /><figcaption>Blueprint Interface</figcaption></figure><ul><li>Add a ‘LineTraceByChannels’ in the character Blueprint, this sends a line out from the player and checks whether an object was hit or not.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1RFhNpfq7_RLDjZufAMxg.png" /><figcaption>LineTraceByChannel Setup</figcaption></figure><ul><li>This line trace is then ‘Casted’ to the design option blueprint, this allows me to get the design as a variable in the character blueprint.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Jbej8qaoranuaCv_aHPbg.png" /><figcaption>Casting to the design option Blueprint</figcaption></figure><ul><li>This variable is then sent into the Blueprint Interface event which tells the game that this object becomes ‘Mesh Selected’ when clicked.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GRb9zkQ4c1BZgKviditLGg.png" /><figcaption>Setting the design option objects as a mesh selected when clicked</figcaption></figure><p>Dominic helped me a lot with getting this to work as well as explaining to me how Blueprint logic works. These skills I learned will definitely be applied in the VR experience scripts when creating an interactive environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c4d27681cad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/creating-a-visualisation-tool-2-2-7c4d27681cad">Creating A Visualisation Tool (2/2)</a> was originally published in <a href="https://medium.com/code3100">code3100</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>