<?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 Nissie Bungbrakearti on Medium]]></title>
        <description><![CDATA[Stories by Nissie Bungbrakearti on Medium]]></description>
        <link>https://medium.com/@nissiebungbrakearti?source=rss-c7b5fb425b89------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bUOsPb4A2L9I1XlX.</url>
            <title>Stories by Nissie Bungbrakearti on Medium</title>
            <link>https://medium.com/@nissiebungbrakearti?source=rss-c7b5fb425b89------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 04:42:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nissiebungbrakearti/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[Week 11–12 (Part2): Lamella]]></title>
            <link>https://medium.com/code3100/week-11-12-part2-lamella-90d0314fe69b?source=rss-c7b5fb425b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/90d0314fe69b</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Nissie Bungbrakearti]]></dc:creator>
            <pubDate>Thu, 08 Jun 2017 13:00:49 GMT</pubDate>
            <atom:updated>2017-06-08T13:00:49.555Z</atom:updated>
            <content:encoded><![CDATA[<p>Dom and I began right away designing different iterations of a pavilion that was simple yet effective in form.</p><h4>Iteration 1</h4><p>The first iteration was a very simple array of lofted gills that were positioned to have a gradient in distance of separation so that the entrance would seem more natural.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TRhxi2B73OykxJMeUGSnmQ.png" /></figure><p>I began by extracting half of a circular curve and dividing that into even distances. Using a cull by pattern node I used the patter true, false, true, false, false, true, false, false false, true …etc until I reached enough falses and trues to take up the entire curve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YPm-D9Wv4doKdOKPE-zu3A.png" /></figure><p>Although this way is quite manual, it was the only solution I could think of at this time that would replace the graph mapper.</p><p>I repeated this step with an internal circle and then created arcs between each point using arch SED</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rHWpuATWFjRshcBHFtgVNw.png" /></figure><p>This was repeated with a smaller external curve and a larger internal curve. This would create the lowest point of the gills.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RPriCWclKfQUVsXJmPvRtA.png" /></figure><p>They were then lofted to create the gills. Since this was only half the curve, all the geometry was then mirrored to complete the pavilion form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uGxLwpahTz4ksIli3Gah3g.png" /></figure><h4>Iteration 2</h4><p>Iteration 2 was very similar to iteration one, however some of the panels were removed to allow more light to enter the space. This would also make it easier for the fabrication team to create and would be beneficial in terms of cost and fabrication time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TqBCUkPWPW9C8Y432JB3Zg.png" /></figure><h4>Iteration 3 (Finger joints)</h4><p>Dom was able to take what I had done and create more organic looking gills.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CtsAU-nRjwOyhLrU-yNPbw.png" /></figure><p>This is something the group preferred as it seemed more organic and and resembled a fungi more so than the original more simple gill design. I took these gills and started to look at how it could be constructed. Something that I knew how to script as I had previously scripted it for another project, was finger joints. I took one of the gills and played with how finger joints could be scripted with this form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TftrBYW7l82odsnhqhGl2A.png" /></figure><p>In this script I have exploded the gill brep, found the edge of a face and laid it flat. I then exploded the four curves of this edge curve and found a point along both of the longer curves to dictate where the finger joints would be positioned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kdtydT0V0ALQCeRQeuTRGA.png" /></figure><p>I took the curve created using the two points, exploded and shattered it and then used dispatch to extract every second shattered curve. I then offset the remaining shattered curves to create what you see above. I then used weave and connect curves to create the final finger joints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fo6WeKYnjtfbxN2KctjxTA.png" /></figure><h4>Iteration 4</h4><p>Dom and I then put a bit of both our scripts together to come up with the final form. Using Dom’s organic gills with my separation panel scripts we were able to come up with a good balance of simplicity and a unique form. Dom also added in a bench in the centre which everyone agreed felt fitting for the pavilion and its theme.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h8bIo1EuMoHeVxKNmxmy_A.png" /></figure><p>I then took this model in to 3DS Max and did a simple render using Vray and Photoshop to create a hero image. It was realised that none of the previous pavilions had had any renders or visualisations that showed what it could actually look like and I felt by taking this extra step it would “sell” the pavilion better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mfVDtJymvplH61yz." /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90d0314fe69b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/week-11-12-part2-lamella-90d0314fe69b">Week 11–12 (Part2): Lamella</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[Week 11–12 (Part1): Fungi]]></title>
            <link>https://medium.com/code3100/week-11-12-part1-fungi-d88716bd961d?source=rss-c7b5fb425b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/d88716bd961d</guid>
            <category><![CDATA[mushrooms]]></category>
            <dc:creator><![CDATA[Nissie Bungbrakearti]]></dc:creator>
            <pubDate>Thu, 08 Jun 2017 12:20:32 GMT</pubDate>
            <atom:updated>2017-06-08T12:20:32.032Z</atom:updated>
            <content:encoded><![CDATA[<p>Dom and I were appointed to project manage the pavilion and design something that would be aesthetically pleasing, is simple enough in form for fabrication and has valid reasoning for form.</p><p>We started brainstorming about stress relief and what can decrease stress levels. We know from earlier studies looked at, that nature is a highly effective way to reduce stress and so we wanted to take inspiration from an organism within nature for the pavilion. After brain storming with the class we decided upon a mushroom or fungi form. This was due to the fact that fungi already shelter the ground beneath them, their form naturally would allow for people to walk around underneath the “cap”. The gills which form underneath the cap also are slightly translucent which would create a soft ambient light inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*TlrRPjZBX1DcTyvQ1hBFCw.jpeg" /></figure><p>We wanted to look at one particular species of fungi so that we could narrow down what to take inspiration from. During a workshop with the fab team I came across the Lactarius Fungi. This species of fungi is stunningly beautiful in its simplicity. The gills are thing and elegant and they create depth and dimension to the form from underneath. The gills of this type of fungi are also always parallel to gravity which is something I thought we could incorporate into our design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*THZnvK9gKvhWIzFE.jpg" /></figure><p>Another interesting biological characteristic of this type of fungi is that it excretes milk or latex when it is cut or bruised. This linked perfectly to the material we were using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y88r11tPGKDc_yDO6VPyrw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d88716bd961d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/week-11-12-part1-fungi-d88716bd961d">Week 11–12 (Part1): Fungi</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[Week 10 (Part 2): A new perspective]]></title>
            <link>https://medium.com/code3100/week-10-part-2-a-new-perspective-c636581c09da?source=rss-c7b5fb425b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/c636581c09da</guid>
            <category><![CDATA[stress]]></category>
            <dc:creator><![CDATA[Nissie Bungbrakearti]]></dc:creator>
            <pubDate>Sun, 14 May 2017 13:04:13 GMT</pubDate>
            <atom:updated>2017-06-07T02:35:11.385Z</atom:updated>
            <content:encoded><![CDATA[<p>After our meeting with Suleiman at BVN on Wednesday, we discussed the issues with our current idea. At the moment we all thought that our idea was too literal and didn’t leave much room for design and creativity. It was a unanimous decision that we should change our direction of though, and so we are deciding to go back to <strong>reducing</strong> stress instead of simply informing.</p><p>We want to experiment with spatial sound and particle systems to see how it can impact on the senses and in turn reduce stress. We aim to create an experience that also is an abstract data visualisation, but also acts as an aesthetically pleasing holographic experience if the user is uninformed about the background information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*R3RQjYZpjboOjiCr." /></figure><h4>SOUND</h4><p>Sound is such an important part of an immersive experience. I did some research in to some studies conducted on the effect of sound on stress.</p><p><strong><em>The Effect of Music on the Human Stress Response, Myriam V Thoma, 2013</em></strong></p><p>This study looked at the how different sound impacts on stress reduction. This was measured by the cortisol levels in the participants saliva. There were three types of sound: relaxing music, acoustic control sounds (i.e. water rippling), and acoustic music. The results proved that the acoustic control sounds produced the lowest amount of cortisol in the participants.</p><blockquote>“…lowest concentrations of cortisol were observed in the acoustic control condition (i.e. listening to the sound of rippling water)…humans indeed feel more comforted in natural than in urban environments.”</blockquote><p><strong><em>Stress Recovery during Exposure to Nature Sound and Environmental Noise, Jessper J Alvarsson, 2010</em></strong></p><p>This second study looked at stress recovery and sound. Again different types of noise were testing on participants that were exposed to a stressful situation and stress levels studied before and after. The different types of noise include nature sounds, high level noise such as traffic, and low level noise such as ambient city noises. It was proven that stress recovery was faster when participants listened to nature sounds.</p><h4>VISUALS</h4><p>We would like to use abstract visualisations in our experience so that if the user does not understand the background information they can still enjoy a unique and relaxing activity. We aim to create “satisfying visualisations” to induce a state of calm and overall relaxation.</p><p>Similar to how we are entranced by mesmerising videos and images, we would like to create a similar effect. Such “satisfying” media is an example of the <strong>mood management theory.</strong></p><blockquote>“It’s the idea that genres of media get implicitly associated with certain feelings,”</blockquote><blockquote>Jessica Gall Myrick, PhD</blockquote><p>This is the theory that certain types of media impart certain emotions on us such as happiness or relaxation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HD7dr-TO2vR-r8VP." /></figure><p>These visualisations are also associated with<strong> autonomous sensory meridian response (ASMR)</strong>.</p><blockquote>“the euphoric experience of that tingling sensation that runs down your head, neck and spine before you’re whisked away into full-body relaxation.”</blockquote><blockquote>Rosebud Baker, Elite Daily</blockquote><p>ASMR also releases serotonin, oxytocin, dopamine, and endorphins in the human brain. These are all hormones that make us happy and joyful.</p><h4>COLOUR</h4><p>Similar to our last ideas, colour is very important as it induces different emotions.</p><p><strong>BLUE:</strong> trust, serenity, logic, reflection, calm</p><p><strong>GREEN: </strong>harmony, balance, peace</p><p><strong>YELLOW:</strong> creativity, emotional strength, friendliness</p><p>These are the three main colours we will use for our holograms as they are associated with calming or peaceful emotions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c636581c09da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/week-10-part-2-a-new-perspective-c636581c09da">Week 10 (Part 2): A new perspective</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[Week 10 (Part1): Scripting the Final Form in GH]]></title>
            <link>https://medium.com/code3100/week-10-part1-scripting-the-final-form-in-gh-c670b3a630c1?source=rss-c7b5fb425b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/c670b3a630c1</guid>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Nissie Bungbrakearti]]></dc:creator>
            <pubDate>Sun, 14 May 2017 12:38:46 GMT</pubDate>
            <atom:updated>2017-05-14T12:38:46.645Z</atom:updated>
            <content:encoded><![CDATA[<p>Once the final form had been finalised by Michael using the script from week 9, I then recreated it in a more controlled and tidier way.</p><p>Firstly, Dom had created a floor plan that the group agreed we should follow. The floor plan is beautifully fluid in shape and caters for all the groups needs as well as takes in to account pedestrian flow.</p><p>I took this floor plan and imported it as a <strong>Bitmap</strong> in the Top View in Rhino. I then traced over the floor plan using <strong>curve:interpolate points</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4RmXBKtC0jFI-RzsNsR0vw.png" /></figure><h4>THE SEPARATION DISK</h4><p>The centre disk was very simple. I simple referenced the curve in GH and <strong>extruded </strong>it by 3cm which was the recommended height by Alessandra.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wdkoJXjNQi7wouFr8bcRGg.png" /></figure><h4>THE ENTRANCE WALL</h4><p>The entrance wall needed to be tapered off on both ends while having a slight bend to the top of the wall. I started off by extracting the <strong>control points</strong> of the referenced curve. Taking these control points I then used <strong>Gene Lis</strong>t to assign each control point a z-vector value to be moved. By using gene list instead of graph mapper like last week we are able to manually control how high each control point will be in while also still keeping the form parametric. These moved points were then generated into an<strong> interpolated curve.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tuYdyAuaizXkHWbAN8LFuA.png" /></figure><p>This curve was then <strong>offset</strong> by .6m (curve 1) and then moved upwards in the z direction by .296m (curve 2). All curves <em>excluding</em> the offset curve (curve 1) is plugged in to a <strong>merge node</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EL74RjE30giha4b21ohxfA.png" /></figure><p>The <strong>loft node</strong> was then used to create the final surface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4cr9870vRalB_WU7OkFj0A.png" /></figure><h4>THE MAIN FORM</h4><p>I used the same method as the entrance wall to generate the middle curve of the main pavilion form</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dz-9vWhVNX5EaGXmJbmXYg.png" /></figure><p>The top curve would be different however, in comparison to the entrance wall. The main form top curve also needs to have its points moved, similar to the middle curve, so that a shelter is created as seen on the floor plan Dom had created. The points needed to be moved in the<strong> normal vector direction</strong> of the point along the surface. To find this vector,<strong> pull point (pull)</strong> was used then plugged into <strong>two point vector</strong> along with the original moved z direction points. The display vector component displays the direction of the vector and as seen below this method has been successful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HgOyc9BFBc-CyYEipgFH6w.png" /></figure><p>Once these points were moved at a certain unique vector value using gene list again, a line was created using<strong> interpolate curve</strong> and moved in the z direction once again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cw9f9sGc_L8EFXxQXZzRAA.png" /></figure><p>For the entrance wall, the curves were then simply lofted, however when a loft was used for the main form, there were strange lips in the form that would not be able to be fabricated and constructed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H-4GnO-VfMbCB2k3xU447g.png" /></figure><p>My idea to fix this problem was to use <strong>network surface</strong> instead of loft. Network surface utilises U and V curves to generate a surface which make the form finding more controlled and accurate. I created a<strong> cluster</strong> that extracted a point on the bottom curve, middle and top curve using number sliders. These points were then merged and generated in to a curve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w26lceQDrOX2eQlus5P59g.png" /></figure><p>As seen below, this is what the clusters look like when all the necessary V curves were generated. Clusters are an awesome way to tidy a part of your script that is being repeated. It made the script so much more tidy and simple for other to use and modify if needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0LzeC-OXnpW2ppcvHXBcgQ.png" /></figure><p>The final form was then created using network surface and turned out quite successful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UR9_6tdkUcio8XYgUSuovQ.png" /></figure><h4>SOME THOUGHTS</h4><p>Some of the group were not sure about the central disk as a lot of us thought that people would simply walk over it. Some ideas that were thrown around were</p><ul><li>Getting IoT group to line the disk with LEDs to attract attention to the disk and simulate the flow of people through LED animations.</li><li>Combine the entrance wall and disk in to a triangular shape that tapes towards the middle of the open pavilion area</li><li>Make it a bench, a place for people to rest</li><li>Remove it all together.</li></ul><p>The issue with IoT LEDs was that it would not be very effective during the day.</p><p>The issue with the triangular shape is that it would make the central space less open and could be an obstruction</p><p>The issue with the bench idea is that it would cause unwanted congestion in the entrance/exit area</p><p>Finally, removing it all together would defeat the aim of being able to control the flow of people.</p><p>Dom will then take this script and modify the entrance wall, Nariddh will complete the panelling and Montanna will perform a Karamba analysis.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c670b3a630c1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/week-10-part1-scripting-the-final-form-in-gh-c670b3a630c1">Week 10 (Part1): Scripting the Final Form in GH</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[Week 9 (Part3): HoloLens Progress]]></title>
            <link>https://medium.com/code3100/week-8-part3-hololens-progress-c4f52c50d979?source=rss-c7b5fb425b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4f52c50d979</guid>
            <category><![CDATA[augmented-reality]]></category>
            <dc:creator><![CDATA[Nissie Bungbrakearti]]></dc:creator>
            <pubDate>Mon, 08 May 2017 02:44:44 GMT</pubDate>
            <atom:updated>2017-05-08T09:12:45.546Z</atom:updated>
            <content:encoded><![CDATA[<p>Due to Dom and I being so heavily involved in the new design and Grasshopper process, we felt that we didn’t have much of an opportunity to develop our own groups work. Even on Saturday when we met for both HoloLens and Design work, we became engulfed in the design as it needed to be done by Monday. However, we did manage to spend some time discussing how we want to progress our idea and what we wanted to be able to do for Monday, even if it was a little bit of progress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CXI27MLUYlLJ20sr." /></figure><p>Here is a list of things we wanted to achieve, either by Monday or by submission:</p><ul><li>We decided that we needed to get the “tap to place” holograms working so that we could determine where the holograms would appear in a space.</li><li>Place sound in the experience. This includes selection sounds, transition sounds and ambient sounds.</li><li>Develop the holographic models. Make it more realistic to give it more context to the situation</li><li>Record the voice over. This would require a microphone from BECU to be acquired.</li><li>Map holographic content on to pavilion walls so that it is more immersive.</li></ul><p>I decided to do the modelling for Monday as I am very comfortable with 3DS Max and it wouldn’t take too long.</p><p>I was asked to model a head, the kidneys, hypothalamus and pituitary glands, while Dom took on the brain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9XQg9z_AmWfcsqj18ZC_Hw.png" /></figure><p>My usual method for low poly modelling is to start off with a simple geometry such as a sphere or cylinder and use its vertices to change its shape. First I delete half of the polygons so I am able to do the same amount of work in half the time. I then mirror the geometry to make a complete shape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-fVrK7kSlVSwDwXzV3k6Gg.png" /><figcaption>This is the final result of the head.</figcaption></figure><p>The Hypothalamus and Pituitary Gland were then modelled. These were very simple as it was just made from a simple default geometry. The shape that was used was the Hedra in the Extended Primitves drop down menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*qogRarzBjyonTtzOb5Sy_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y4t0ivkmZNyQBpJakjimNw.png" /><figcaption>Final result of both the Hypothalamus and the Pituitary Gland</figcaption></figure><p>To create the kidneys I took a different approach. I started off with a plane that was segmented into difference subdivisions. Using <strong>Edit Poly</strong> and the <strong>Vertices tool</strong>, I then selected individual vertices and moved them so that they resembled the shape of a kidney.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sSIhn0KYA52x9bGrZznOBQ.png" /></figure><p>Once I was happy with the shape I then started to pull them outward. I only pulled them in one direction as you can see in the image below. This is so I can mirror the geometry and have a final form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MoikA8Howjbvajfv2K6ZBg.png" /></figure><p>The half kidney was then mirror on the z axis and copied so that the entire original geometry wouldn’t be mirrored. In doing this I have created one whole kidney, however there are two. To make a second I then mirrored the geometry again in the y axis with an offset value that distanced it far enough from the original model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UHJ0gms8flgO1cFXbGKz_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hvmkRk8_wHo4r6WZWqjjHA.png" /><figcaption>Final kidney models</figcaption></figure><h4>PRESENTATION LINK</h4><p>If you would like to look at our presentation and the progress we made as a group, click<a href="https://docs.google.com/presentation/d/1Kp962BlNvie-EgGxxR2Ow0Szv08Yn_vUDnP0sqUG0bE/edit#slide=id.g2189af17e5_0_219"> here.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4f52c50d979" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/week-8-part3-hololens-progress-c4f52c50d979">Week 9 (Part3): HoloLens Progress</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[Week 9 (Part2): Approaching the Final Design]]></title>
            <link>https://medium.com/code3100/week-8-part2-approaching-the-final-design-815944b15546?source=rss-c7b5fb425b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/815944b15546</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Nissie Bungbrakearti]]></dc:creator>
            <pubDate>Mon, 08 May 2017 02:18:50 GMT</pubDate>
            <atom:updated>2017-05-08T02:45:33.560Z</atom:updated>
            <content:encoded><![CDATA[<p>On Friday, Dom worked continued on the script that I created and altered the walls to something that provided more shelter. I thought that this was a good idea because it gave the walls more purpose than being completely vertical and just being used as a divider.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/0*7h9EjeUyJmQLmRaX." /><figcaption>Rhino screen shot of Dom’s design iteration 2.1. (Credit to Dominic Hawton)</figcaption></figure><p>However, from what was discussed with the entire group people preferred how my walls tapered off at the end.</p><blockquote>Person 01: I liked how nissies one had a slope to it. At the entrance.</blockquote><blockquote>Person 02: Going to add the slope back, agreed it’s more visually interesting. Alessandra wanted shelter from the walls that why I had to redo the script.</blockquote><p>On Saturday, we met up at uni to work on both our HoloLens work and refine the pavilion form. Both mine and Dom’s script were very different. I used more phsyical points in Rhino so that I had physical control over how the walls would flow. Dom on the other hand created a script that depended on GH more.</p><h4>DESIGN ITERATION 2.2</h4><p>Below is the design iteration we created after Saturday afternoon. We were able to successfully integrate both our ideas in to one pavilion, however it is obvious that the domes look very out of place and the pavilion as a whole does not look cohesive</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LershoiQoK3rwCQwsOFnAA.png" /></figure><p>We began with Dom’s script and tried to alter that to create the hybrid wall that we wanted. Unfortunately, we weren’t able to successfully move the points in the z direction correctly and the shelter part of the wall became difficult to control. We opted to work off my script after an hour or so of playing with Dom’s. What’s great about working with other people is that someone always knows something you don’t. In part 1 of week 8s journal blog, I mentioned that the way I scripted design iteration 2 was inefficient and not the optimal way to go about it. Dom was able to show me how to move the points upwards in the z direction at varying heights without the need of multiple sliders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*atYyJaiabO4fYDNag-woDA.png" /></figure><p>As you can see, with both our minds working towards a common goal, we were able to shorten the script down quite a lot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8DHZXyk4bZqh4PO3BpJn8g.png" /></figure><p>By using a range between 0 and 1 and a graph mapper we were able to assign each physical point in Rhino a different increasing height value to achieve this tapering effect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RyU0WDHOh_L0TWAFpEgSHg.png" /></figure><p>Then, using the attractor point which is highlighted by the orange box, those translated points were then made to converge towards the one attractor point. These points would create the shelter that Dom had originally scripted in his iteration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J8WZ6uYvQn88f8fNiSTx_Q.png" /></figure><p>It was then lofted and panelised. Once we had got this method completed, it was easy to replicate it for the remaining three walls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QYrxynIKcd-JrUVT8Qx7aw.png" /></figure><p>It is obvious that the domes stick out like a sore thumb. And so, Dom took it upon himself to make a more cohesive fluid structure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=815944b15546" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/week-8-part2-approaching-the-final-design-815944b15546">Week 9 (Part2): Approaching the Final Design</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[Week 9 (Part1): Scripting Preliminary Designs]]></title>
            <link>https://medium.com/code3100/week-9-part1-scripting-preliminary-designs-d6c6ae135792?source=rss-c7b5fb425b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6c6ae135792</guid>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Nissie Bungbrakearti]]></dc:creator>
            <pubDate>Sun, 07 May 2017 14:03:59 GMT</pubDate>
            <atom:updated>2017-05-08T01:48:47.458Z</atom:updated>
            <content:encoded><![CDATA[<p>On Thursday the 4th a few of us went to a workshop in the SquareHouse with Alessandra to pump out some final designs. I love using Grasshopper for Rhino and so jumped on the bandwagon straight away. I was in charge of scripting the forms, while other tried to do material testing or script some additional content for the design.</p><h4>DESIGN ITERATION 1</h4><p>The first design was created to signify stress through form. The beginning dome would be smaller and more confined and as you walk through the transitional corridor, you enter a large open space with light peering through.</p><p>I created the script so that the pavilion was parametric. A few problems that had come across in the earlier weeks was that some scripts were only slightly parametric and so it made it very difficult to change and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DV-5nth5UNb72RQs_umYtw.png" /></figure><p>The occulus in the large dome was scripted by Nariddh and was scripted parametrically based on the latitude and longitude of the Sun in relation to the centre of that dome.</p><p>Some issues that we came across included the height of the domes. If the radius of the dome was 2m and it was created from a perfect sphere, then that would meant that the maximum height at the centre of the dome would be 2m. This became a running issue throughout the rest of the design iterations we made throughout the day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZZyXBrSIJvrVgctspQ1EpQ.png" /></figure><p>The pavilion was made based off two physical points in Rhino. These points determined the centre of spheres which were cut in half by the group plane. Using those physical points a line was drawn between them and evaluated based on its length. An angled plane was then put on this evaluation point which then cut in to the domes, creating angled openings for the transition corridor to be placed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kgEOO-18RjBpJciuKZYW7w.png" /></figure><p>Lines were generated using divide curve to create enough U and V curves to generate a smooth organic transition space between the two domes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2oS9sMYQit6QyJPhxQnTIQ.png" /></figure><p>From there, the small entrance dome and transition space was subdivided to create the framework structure that would hold up the pavilion. The larger occulus dome was harder to divide because we wanted it not to be divided from the top of the dome like the small dome, but from the centre of the occulus. The required some playing around, but eventually I was successful in generating the vertical divisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNkTMhbBmms2X0Nk5QtGUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q5OoFJfq3IAvWiVqyEQodw.png" /></figure><p>To achieve this, I found the centre of the occulus by dividing the curve in 4 sections then drawing a line between two opposing points. Using the middle of that line, a normal plane was placed and arrayed in a circular fashion. Circle by base plane was then used to create large surfaces that would intersect with the dome. And lastly, the division were created by identifying where the circular arrayed surfaces and the dome intersected. Being a parametric script, it was easy to refine the amount of divisions based on what was thought to be more structurally stable and efficient. Nariddh had scripted the horizontal divisions of the large dome, however by the time we switched designs there was no point in combining the scripts.</p><h4>DESIGN ITERATION 2</h4><p>Design iteration 2 was proposed when concerns about how AR,VR and HoloLens could fit in design iteration 1. We needed to be able to separate areas where different activities would occur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ScKKHQCKKaVkj6UrV-UEJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*7ZYYDHG3yMbGpkqrT1YiOw.jpeg" /><figcaption>Floor plan sketched by Alessandra</figcaption></figure><p>I liked this design a lot more in comparison to the first due to its shape and the entrance that draws you in. Although it could still be developed I think it’s a good starting point for a promising form. Similar to the problems in design 1, the domes would be too short if they were perfectly domed and so I scaled them up in the z direction to give some height, although this looks not as aesthetically pleasing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JTLIA-eb5Uv9XMmHnRJRsg.png" /></figure><p>This design was generate off physical points in rhino which enabled me to create a spline along them and move their geometries in the z direction at different height values to accomplish the flow of the walls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*alwxAl1wvyZGWI0o3T1CJw.png" /></figure><p>The domes were created the same way as iteration one, with one sphere based on a physical central point in Rhino and sliced on the ground plane. These domes were then stretched up to allow for extra height. The green geometry above represents spheres that were stretched to create doorways for the domes. These were booleaned from the main dome shelters to create the entrances and exits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cH7jfofAiIfNo_0AWcNCbA.png" /></figure><p>They were then subdivided using the same method as the dome shelters in iteration 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dsr46ugA_LCafMU-ZlUkoQ.png" /></figure><p>The tapered walls were created from physical points in Rhino which were then moved in the z direction at different values. This is not the most efficient way of scripting this, however it gave me more control over which point was at exactly which height and at what location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*12KNkI88smrEmXb4ShDP4A.png" /></figure><p>The same process was repeated on the remaining two walls. Unfortunately, I was unable to make Friday’s workshop session and so Dom took the reigns and picked up where I left off for Friday. He took this iteration and developed it further.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6c6ae135792" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/week-9-part1-scripting-preliminary-designs-d6c6ae135792">Week 9 (Part1): Scripting Preliminary Designs</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[Week 8: Story Boarding]]></title>
            <link>https://medium.com/code3100/week-8-story-boarding-8d5af4befefa?source=rss-c7b5fb425b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d5af4befefa</guid>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[Nissie Bungbrakearti]]></dc:creator>
            <pubDate>Sun, 07 May 2017 13:16:22 GMT</pubDate>
            <atom:updated>2017-05-07T13:16:22.633Z</atom:updated>
            <content:encoded><![CDATA[<p>In the past few weeks it became apparent to the HoloLens team that we were focusing too much on how to connect the HoloLens to Arduino and had lost a bit of sight in the story telling and our hologram development. Using research I had conducted a few weeks ago and the knowledge of what we could achieve, I put together a story board of what we could show.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hXMIeNu5XKqo_Vl3439Iog.png" /></figure><h4>SCENE 01:</h4><ul><li><strong><em>What you see</em></strong>: You “enter” the orb, the pulsating fades/stops and colour dims. The object inside the orb that sits on top begins to pulsate and becomes saturated in colour. <em>“Tap on the hypothalamus to release CRH</em>”. Once tapped particles will move from the top object to bottom object within the orb.</li><li><strong><em>Meaning: </em></strong>The Hypothalamus, located in the brain, released corticotropin releasing hormone (CRH) and sends it to eh pituitary gland, located at the base of the brain.</li><li><strong><em>Extra options: </em></strong>Include something similar to <em>“Anything that has a yellow glow can be tapped on for more information, try it on the object you see in front of you</em>” (User taps on glowing object to receive informative text about hypothalamus)</li></ul><h4>SCENE 02:</h4><ul><li><strong><em>What you see</em></strong>: Bottom object will become saturated in colour and start pulsating. “ <em>Tap on pituitary gland to release ACTH</em>”. Thick line from pituitary gland will animated downwards and form the adrenal gland. Particles will move from pituitary gland down the line to adrenal gland.</li><li><strong><em>Meaning</em></strong>: Once CRH has reached the Pituitary Gland, it releases adrenocorticotropic hormone (ACTH) which moves with the blood to the adrenal gland, located above the kidneys</li></ul><h4>SCENE 03</h4><ul><li><strong><em>What you see:</em></strong> Adrenal gland starts to “come to life”. Cortisol is released in the form of particles emitting outward from the centre of the adrenal gland. This could populate the entire room, shooting outwards to signify stress hormone has been released.</li><li><strong><em>Meaning: </em></strong>The Adrenal Gland releases cortisol which is the stress hormone</li></ul><h4>SCENE 04</h4><ul><li><strong><em>What you see</em></strong>: Central orb begins to change colours from red to blue and starts to pulsate. Two secondary orbs will manifest, positioned with the orb in the centre. The user must choose the red or blue orb which will trigger neural activity within the orb.</li><li><strong><em>Meaning:</em></strong> The user then chooses fight or flight orb which triggers neurons in the brain to fire through decision making.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d5af4befefa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/week-8-story-boarding-8d5af4befefa">Week 8: Story 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[Week7 (Part3): Data Structure]]></title>
            <link>https://medium.com/code3100/week7-part3-data-structure-5d5bfdc32329?source=rss-c7b5fb425b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d5bfdc32329</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Nissie Bungbrakearti]]></dc:creator>
            <pubDate>Sun, 07 May 2017 10:36:08 GMT</pubDate>
            <atom:updated>2017-05-07T10:36:08.100Z</atom:updated>
            <content:encoded><![CDATA[<p>Continuing from Week7 (Part2) I will continue to look at the basics of C# coding for Unity3D.</p><h4>What is an array?</h4><p>An array is when you want to store more than one piece of information in the one variable. To do this a collection needs to be used. By adding open brackets <strong>[ ]</strong>, Unity knows that we want to create an array. As seen below I have created an array of <strong>names</strong>, however have not put any values inside it. Selecting the camera we can see that there is a names option in the Inspector panel where I can determine the <strong>size, or in better words, the number of elements</strong>. These element values are set to be a string and so in typing in numbers we would receive an error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtYuYqIWvVuK5HtwgfCtHg.png" /></figure><p>Making this array public means that we can determine how many values and what those values are within the Unity editor. Below I have identified within the script itself how many arrays there will be by using <strong>[5]</strong>. When we play the game, however, we can see that Unity over rides the array value back to zero due to it being a public variable. Therefore we should note that <strong>public fields in the class will be overwritten by the Unity Inspector</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qBYOQktbBEVLjU3ig8E5ng.png" /></figure><p>Removing public means that we can work with the variable exclusively from within the script. In void start I have specified the beginning index of the array being <strong>[0]</strong>. Therefore, the arrays will range from<strong> index [0] — [4]</strong>. By setting name[0] to Nissie I can get Unity to print “first name” + the first index of the array which I have set to “Nissie”. We can see this below in the Unity3D <strong>console</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-xx0-UL5DvfLY04pflXI1w.png" /></figure><p>Alternatively, you can set the array values at the beginning and remove the amount of items within the variable. Removing the number of items within the variable will mean that the compiler will automatically know the number of items within our array string. I can then call <strong>print = (names[0] +” “+ names[1]);</strong> where “ “ is creating a space in between the two items.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AukpRR-inuEoBUK4zHHjLw.png" /></figure><p>Now, by creating another print string we can print “Total names” and get the<strong> length </strong>of the names, meaning the number of items within the variable. Below we can see that there are now two outputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZAt-ZCoQHM-X_vM-EyXvLQ.png" /></figure><h4>What is a list?</h4><p>A list is another collection of items in a class. A list, however, is able to grow dynamically. As we can see below, a list acts very similar to that of an array. The exception in the example below is that List uses count to extract the number of items instead of length which is what array uses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NKSSB4ord8NovFr_H9FXVg.png" /></figure><p>Now, below we can see how a list differs from an array i being able to <strong>dynamically update</strong>. We can add an item to the animal variable within the void start method and still have it work. We then want to try and print what the last animal is. By using <strong>print (….animals[animals.Count-1])</strong>; we can achieve this. The -1 is very important due to the index system used. For example, with the addition of mouse, there are now 3 items within the variable, however we know that indexes start at 0.<strong> If we were not to include -1 then it would try to print animals[3] instead of animals[2] </strong>which is what is correct.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QIaXG91y7pdK8DRF6M6-KA.png" /></figure><p>Below, I have changed nothing except for added another animal. By adding the one line of code, we can see how flexible lists are in that they allow for dynamic updating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_AJrKEfwfviSI9sTFCuXBQ.png" /></figure><p>We can also easily remove items from a list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kFlCl1erbc5YYof7gnnv7w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d5bfdc32329" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/week7-part3-data-structure-5d5bfdc32329">Week7 (Part3): Data Structure</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[Week 7 (part2): Intro to Coding in Unity]]></title>
            <link>https://medium.com/code3100/week-7-part2-intro-to-coding-in-unity-acdc178d4d13?source=rss-c7b5fb425b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/acdc178d4d13</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Nissie Bungbrakearti]]></dc:creator>
            <pubDate>Wed, 03 May 2017 11:49:47 GMT</pubDate>
            <atom:updated>2017-05-03T11:49:47.986Z</atom:updated>
            <content:encoded><![CDATA[<h4>Understanding how to use C# as a design tool in Unity3D</h4><p>After becoming more familiar with Unity and its functionalities it is obvious that coding is used to customise designs and interactive events. The coding language used is C# and lucky for me I found some Scripting in Unity tutorials on Lynda.com. These tutorials are great because you can watch at your own speed, they are often very informative, and a transcript is provided so you can read along or go back to a point that you wish to revisit. The tutorial I am going through can be found <a href="https://www.lynda.com/Unity-tutorials/Welcome/540497/570488-4.html?srchtrk=index%3a2%0alinktypeid%3a2%0aq%3aunity+c%23%0apage%3a1%0as%3arelevance%0asa%3atrue%0aproducttypeid%3a2">here</a>.</p><h4>Introduction to Code in Unity</h4><p>It should be noted that every game object has unity scripts attached to it in the form of components which can be seen on the right hand side of the editor in the Inspector panel. Each <strong>component is a C# script</strong> that has been scripted to modify a certain element of that game object. For example, the camera game object which is always included as a default game object has the components Transform, camera, GUI Layer, Flare Layer and Audio Listener.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jpc2rIq51C_iHdfnGRNSLg.png" /></figure><p>The console which can be found at the bottom displays messages from your code such as warning messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YTB6K7k3065xQivGqMufPw.png" /></figure><p>To view code within your project you can go to <strong>Assets</strong> in the top tool bar<strong> &gt; Open C# Project</strong>, and this will open Visual Studio which enables you to edit the scripts and update them instantaneously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Co0NMgkYP6KjFWzviwwGDw.png" /></figure><p>Currently there are no C# scripts for us to edit and so the Visual Studio opens to an empty screen.</p><p>To create your own script you can right click inside the Assets Folder down the bottom. <strong>Right click &gt; Create &gt; C# script</strong> will create a new script in the selected folder. When selected the script can be seen in the right Inspectors panel, but not edited. To edit the script, it needs to be opened in Visual Studio.</p><p>To add a script to a game object, simply drag the script you want from the bottom panel onto the game object. The new script should then appear in the Inspector panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OwGH2vjRCSDkfxFrc6eoeg.png" /></figure><h4>What is a Variable?</h4><p>Adding values to the script requires us to create variables. Additionally, the variable type is determined by where it is located inside the script. There are different types of variables. For example:</p><p><strong>STRING</strong> = any text you want to give a variable</p><p><strong>BOOLEAN </strong>= a value that can either be true or false</p><p><strong>FLOAT</strong> = a value that is a number with decimals</p><p><strong>INTEGER </strong>= a value that is a whole number.</p><p><strong>RETURN</strong> = lets us know if a method will give us a value back</p><p>Additionally, a field is<em> “ is a variable that exists inside of a class outside of the scope of a method”.</em></p><p>In Visual Studio I have created a string and set the field to text whilst using “ “ as a way to identify that we are dealing with a string. As seen below, a red squiggly line will appear when a line is incomplete. To complete this text, a semi colon is used “ <strong>;</strong> “ .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*huh3RYXUwmQFD3tpoc25Ww.png" /></figure><p>By adding “<strong>public</strong>” to the beginning of “string” we are able to view this variable publicly in Unity and change it without having to go back into Visual Studio. Having a variable be “<strong>private</strong>” means that it will not be visible within the Unity Inspector. To update the script in Unity simple press the save button outlined below in Visual Studio. Once the string is made public, we can see that it is visible in the Unity Inspector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nhuU0TwogjyYbbfIIhGQlA.png" /></figure><p>Now testing out the boolean variable. Using the public variable <strong>bool turnOn;</strong> and saving the code creates a true or false variable in our Unity Inspector. This check box allows for us to manually switch something to true or false.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kBiMFqckkDJNSEoJqXwsDg.png" /></figure><p>Like the previous examples, I’ve then made a public float and integer variable where the float represents the X position and the integer is a test. Again, once saved in Visual Studio and compiled in Unity, it will update and appear in teh Inspector panel. Hovering your mouse over these new public variables will show arrows that act as a slider.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ntXEzL8pqyr-YDw_n-y6cw.png" /></figure><h4>What are functions?</h4><blockquote>“A function is a way of wrapping code so we can re-use it whenever we want...Functions allow us to keep code isolated from the execution order when the script runs.”</blockquote><p>Starting off with adding a function to the start method, in here I have stated that once played “text” will change to “Updated during Start()” instead of “hello code3100”. We can see that this is successful in the screenshot below. Once we exit play mode however, the text reverts back to “hello code3100” <em>instead</em> of “Updated during start()”. This means that every time we exit play mode, functions within void start method revert back to default values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8IltEByj1EdyhQ6zBB-9Ug.png" /></figure><p>We can also create our own methods within the script. Below I have created a return type that will return us a value. Using void means that we don’t want anything returned. Below we can see it now says “Updated during text”. Using methods we can control the script and the way it runs. Unity calls start when the script loads up and Update when the game is played.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_PN4Zt8k9BCEA1HKtyAd_w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acdc178d4d13" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code3100/week-7-part2-intro-to-coding-in-unity-acdc178d4d13">Week 7 (part2): Intro to Coding in Unity</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>