<?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 Pritish Choudhary on Medium]]></title>
        <description><![CDATA[Stories by Pritish Choudhary on Medium]]></description>
        <link>https://medium.com/@PritishCh?source=rss-c00b7d637bcf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EqwdGL_rP5y5oZNRn7w8ug.jpeg</url>
            <title>Stories by Pritish Choudhary on Medium</title>
            <link>https://medium.com/@PritishCh?source=rss-c00b7d637bcf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 16:53:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@PritishCh/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[Raytracer]]></title>
            <link>https://medium.com/@PritishCh/raytracer-cbccdb7ce7cf?source=rss-c00b7d637bcf------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbccdb7ce7cf</guid>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[rendering]]></category>
            <category><![CDATA[multithreading]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Pritish Choudhary]]></dc:creator>
            <pubDate>Fri, 05 May 2017 03:20:58 GMT</pubDate>
            <atom:updated>2017-05-05T03:20:58.237Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog I will write about how I went about speeding up the rendering of an image using multi threading.</p><p>When I first ran the program, it took my system 58 seconds to render the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o3tgSzlkFybKRJYgqBgi9Q.png" /></figure><p>So I decided to do the rendering using spacial partitioning and enabled the use of multiple cores using OpenMP API. Using “<strong>#pragma omp parallel for</strong>” we can multi threading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*EfClI3elhziEhwtP_3HiWw.png" /></figure><p>Instead of looping through every pixel, I decided to loop through every 3rd pixel to save time. The difference is render is minimal, but it saves up a lot of time. Then I created 4 different output values. 2 of them retrieved the color of the specified pixel and converted the pixel co-ordinates into camera co-ordinates.</p><p>The 3rd one averaged the RGB values of the first two output values and the 4th one averaged the RGB values with the first and the third.</p><p>After that, I just clamped the values into a 0–1 range, saturated the output values, and wrote the color to the image by scaling up by 255.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p8P5O_M9pS4shb3-UKDfYw.png" /></figure><p>The final result was about 22 seconds faster than the original time taken to render the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M1wjOmxAAkHChULB0PglCQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbccdb7ce7cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Studio-3 Post Mortem and Self Reflection]]></title>
            <link>https://medium.com/@PritishCh/studio-3-post-mortem-and-self-reflection-b56e4c2e438a?source=rss-c00b7d637bcf------2</link>
            <guid isPermaLink="false">https://medium.com/p/b56e4c2e438a</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[postmortem]]></category>
            <dc:creator><![CDATA[Pritish Choudhary]]></dc:creator>
            <pubDate>Thu, 04 May 2017 07:43:42 GMT</pubDate>
            <atom:updated>2017-05-05T03:25:04.320Z</atom:updated>
            <content:encoded><![CDATA[<h4>What Went Well:</h4><p>This studio, I got to explore a lot of things that I haven’t done in the past. This related to both game and software development. I started of with learning about <a href="https://medium.com/@PritishCh/raytracer-cbccdb7ce7cf">Raytracers</a> where we needed to render an image at a faster rate. Through this I learnt a lot about multi-threading and dividing the Core into 4 threads and making the image render faster.</p><p>Then I developed a <a href="https://medium.com/@PritishCh/shaders-52b6e319e3">fire shader</a> which was used a type of music visualizer. This ran as the background of the game and this changed with the background music. While developing this I learnt how to use Spectrum data and how I needed to build that data which then generated the visuals.</p><p>I was then working on developing some prototypes, the first one was a camera tool. This was a <a href="https://medium.com/@PritishCh/multiplayer-couch-camera-e94ed61d82c">single screen multiplayer camera</a>. This turned to be a pretty fun project as I am like developing different camera types. I knew what kind of camera it needed to be, but because I have never tracked multiple objects at once before, it was a little challenging.</p><p>The most challenging thing was to develop a <a href="https://medium.com/@PritishCh/tethering-prototype-1c3d784d2c2d">tethering mechanic</a> for the game. This involved in me watching a lot of video tutorials trying to figure out how the physics would actually work. I had some problems at the start, but I will talk about that later. Even though I found this difficult, I started by making the generic basic cloth that had little physics like features. Then I adapted the whole code to make a tool that would be useful for the team. This was a long process but ended up making a decent prototype. It’s still buggy, but in the next few weeks, I will be improving upon it and making it fully functional.</p><p>I was also a part of a team that developed an app for company called New Intelligence(blog to be done). During the course of the project, we were frequently on discord to keep talking about how things need to be done and what were the things that needed to be done. I mostly worked on analytics and creating the feedback panels and the final report that needed to be given to the user. It was a good learning experience in terms of learning about analytics because I had no idea about the process involved in sending and receiving the information. Learnt a lot about Google Firebase and how to use SQL commands to check and sort out the data that we needed.</p><p>I also learnt a lot about networking(blog to be done) and effectively found out that <strong>I don’t want </strong>to be a networking programmer. It’s to painful to do. There is no doubt that I learnt a lot of things like sending and receiving packets, having socket connections etc.</p><p>Personally as a programmer as well, I have started commenting a lot. This is something I didn’t do a lot last time and as a result people were unable to understand some parts of my code. This time though, I added comments literally for every block of code, also added comments for what every variable would do even though the variable names were self explanatory. I have also found out that I work with a extra focus when there is a definite goal set. I definitely have reduced my procrastination time, but there are areas at which I still procrastinate(like blogging) and need to make sure that I cut that down as well.</p><h4>What Didn’t Go Well:</h4><p>I don’t think there are a lot of things that went wrong. There were times during the trimester where I fell sick, got injured which hampered some of the time at which I needed to do work and therefore at some stages couldn’t meet the required expectations of me.</p><p>In terms of methodologies, for some reason this time, I start off the project by writing shitty code and then end up deleting the whole thing and starting fresh. This consumed a lot of time, and I need to start planning ahead rather than directly jumping into code and then kicking myself for not planning.</p><p>Blogging regularly is still an area of concern for me. I really need to start blogging about my work regularly and putting them out for the public to use and collect feedback from them as it would help me improve both the thing I built and personally grow as a programmer as well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b56e4c2e438a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Programming Ethics and Licenses]]></title>
            <link>https://medium.com/@PritishCh/programming-ethics-and-licenses-30cb5c0e4fde?source=rss-c00b7d637bcf------2</link>
            <guid isPermaLink="false">https://medium.com/p/30cb5c0e4fde</guid>
            <category><![CDATA[licensing]]></category>
            <category><![CDATA[ethics]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Pritish Choudhary]]></dc:creator>
            <pubDate>Thu, 04 May 2017 05:10:04 GMT</pubDate>
            <atom:updated>2017-05-04T05:10:04.980Z</atom:updated>
            <content:encoded><![CDATA[<p>Programmers in current time need to keep track of the licenses that come with the different libraries and frameworks they use. It’s an important legal matter and must be taken very seriously because breaches in this could be an opening to lawsuits. So a programmer needs to be aware of the different licenses that exist and what these licenses mean.</p><p>Public Domain: When a work is in the <strong>public domain</strong>, it is free for use by anyone for any purpose without restriction under copyright law. Public domain is the purest form of open/free, since no one owns or controls the material in any way. Works that are in the public domain in one legal jurisdiction are not necessarily in the public domain worldwide. Copyright laws differ from jurisdiction to jurisdiction, both in duration of protection and what constitutes copyright-able subject matter.</p><p><strong>Copyright</strong> is a word that is thrown around a lot when working in the creative media. Very few creators have a strong understanding of this word. By definition, “<strong>Copyright is a legal right created by the law of a country that grants the creator of an original work exclusive rights for its use and distribution</strong>.”</p><p><strong>Copyleft</strong> is a general method for making a program (or other work) free, and requiring all modified and extended versions of the program to be free as well. The simplest way to make a program free software is to put it in the public domain, uncopyrighted. This allows people to share the program and their improvements, if they are so minded. But it also allows uncooperative people to convert the program into proprietary software. They can make changes, many or few, and distribute the result as a proprietary product. People who receive the program in that modified form do not have the freedom that the original author gave them; the middleman has stripped it away.</p><p>A <strong>Trademark </strong>is a recognizable insignia, phrase or other symbol that denotes a specific product or service and legally differentiates it from all other products. Trademarked products are generally considered a form of property. A trademark could be a logo, slogan or simply the name of the product. One of the main purpose of having a trademark is to protect the product from being used without the permission of the source company.</p><p>A <strong>Patent </strong>is a right, that is given by the government, to prevent others from creating, using, or selling your invention. It protects things such as new processes, machines, software etc. It is used to protect ideas and not the expressions. A standard patent lasts for 20 years and an innovation patent (something that is not unique enough to be standard) lasts for 8 years.</p><p>Lets get into some of the common licenses that are used. <strong>The General Public License(GPL)</strong> is one of the best known copyleft licenses. Prominent free software programs licensed under the GPL include the Linux Kernel and the GNU Compiler Collection(GCC). GNU states that nobody should be restricted by the software they use. There are four freedoms they think that every user should have:</p><ul><li>the freedom to use the software for any purpose,</li><li>the freedom to change the software to suit your needs,</li><li>the freedom to share the software with your friends and neighbors, and</li><li>the freedom to share the changes you make.</li></ul><p>The terms and conditions of the GPL must be made available to anybody receiving a copy of the work that has a GPL applied to it (“the licensee”). Any licensee who adheres to the terms and conditions is given permission to modify the work, as well as to copy and redistribute the work or any derivative version. The licensee is allowed to charge a fee for this service, or do this free of charge. This latter point distinguishes the GPL from software licenses that prohibit commercial redistribution. The GPL additionally states that a distributor may not impose “further restrictions on the rights granted by the GPL”. This forbids activities such as distributing of the software under a non-disclosure agreement or contract. GPL also has a All or Nothing policy. So for example, if a developer is using several different libraries, and if one of them is with a GPL license, then the whole project becomes GPL and the developer must release the entire source code on request.</p><p>Another such license is the<strong> Lesser General Public License(LGPL)</strong>, the license that accompanies some open source software that details how the software and its accompany source code can be freely copied, distributed and modified. A LGPL is used to license free software so that it can be incorporated into both free software and proprietary software, and is often referred to as the weaker sibling of GPL. The LGPL and GPL licenses differ with one major exception; with LGPL the the requirement that you open up the source code to your own extensions to the software is removed. The most widespread use of LGPL is in reference to the GNU LGPL. The word “Lesser” in the title shows that the LGPL does not guarantee the end user’s complete freedom in the use of software; it only guarantees the freedom of modification for components licensed under the LGPL, but not for any proprietary components.</p><p>The <strong>Berkeley Software Distribution</strong>(<em>BSD) </em>license is a class of extremely simple and very liberal licenses for computer software that was originally developed at the University of California at Berkeley (UCB). It was first used in 1980 for the BSD, also known as BSD UNIX, an enhanced version of the original UNIX operating system that was first written in 1969 by Ken Thompson at Bell Labs.</p><p>The only restrictions placed on users of software released under a typical BSD license are that if they redistribute such software in any form, with or without modification, <strong>they must include in the redistribution</strong></p><p>1. the original copyright notice,</p><p>2. a list of two simple restrictions</p><p>3. a disclaimer of liability.</p><p>These restrictions can be <strong>summarized</strong> as</p><p>1. one should not claim that they wrote the software if they did not write it</p><p>2. one should not sue the developer if the software does not function as expected or as desired.</p><p>Some BSD licenses additionally include a clause that restricts the use of the name of the project (or the names of its contributors) for endorsing or promoting derivative works.</p><p>The <strong>MIT License</strong> (also known as the <em>X11 license</em> or <em>MIT X license)</em> is a software license that was originally developed at the Massachusetts Institute of Technology.</p><p>This is what the MIT License states:</p><p><em>“Copyright &lt;YEAR&gt; &lt;COPYRIGHT HOLDER&gt;</em></p><p><em>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</em></p><p><em>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</em></p><p><em>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.”</em></p><p>That’s it. The whole license. Unlike the GPL, the only requirement an MIT license places on its recipients is that they keep the copyright notice intact when they repurpose, redistribute, or otherwise reuse my code.</p><p>Unlike the GPL, this license is not viral. You can take my library and use it in your project while still licensing the project itself in a way that protects your business. You can <strong>add to or otherwise modify my library — and distribute your modified copy — while sublicensing your modifications differently than I licensed the original.</strong></p><p>You can build a business that sells larger, proprietary applications built out of smaller, open source components without the fear of imitators purchasing and re-selling your product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*hqnjmgth4avcbSJQBgHwnQ.png" /></figure><p>I think when I will start using the MIT License when giving my code to different people instead of directly uploading it in the public domain. In such a way, people know that they need a copyright notice and must always keep that when they modify/redistribute the code to someone else. It’s one of the most easy to understand licenses and is easy to use as well. Also ifI use libraries that belong to other developers, I will make sure that I check the licenses before I use it.</p><p>References:</p><p>//TODO- Add more ref(at home)</p><p><em>BSD license definition</em>. (2004). <em>Linfo.org</em>. Retrieved 4 May 2017, from <a href="http://www.linfo.org/bsdlicense.html">http://www.linfo.org/bsdlicense.html</a></p><p>Rouse, M. (2014). <em>What is MIT License (X11 license or MIT X license)? — Definition from WhatIs.com</em>. <em>WhatIs.com</em>. Retrieved 4 May 2017, from <a href="http://whatis.techtarget.com/definition/MIT-License-X11-license-or-MIT-X-license">http://whatis.techtarget.com/definition/MIT-License-X11-license-or-MIT-X-license</a></p><p>Rouse, M. (2014). <em>What is MIT License (X11 license or MIT X license)? — Definition from WhatIs.com</em>. <em>WhatIs.com</em>. Retrieved 4 May 2017, from <a href="http://whatis.techtarget.com/definition/MIT-License-X11-license-or-MIT-X-license">http://whatis.techtarget.com/definition/MIT-License-X11-license-or-MIT-X-license</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30cb5c0e4fde" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tethering Prototype]]></title>
            <link>https://medium.com/@PritishCh/tethering-prototype-1c3d784d2c2d?source=rss-c00b7d637bcf------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c3d784d2c2d</guid>
            <category><![CDATA[prototyping]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[unity3d]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Pritish Choudhary]]></dc:creator>
            <pubDate>Wed, 03 May 2017 17:03:54 GMT</pubDate>
            <atom:updated>2017-05-03T17:03:54.521Z</atom:updated>
            <content:encoded><![CDATA[<p>So continuing to test prototypes, we had a tethering system in our game. This is one of the most important mechanic of the game. So testing this was really necessary.</p><p>So before I started building this, I saw a lot of tutorials on rope physics. There were some really good videos and then decided to adapt it into what I need to build.</p><p>So the first thing for me was to start building a tool which I can easily modify. To build the rope like thing, I first attached a line renderer to the game object. Then I needed a way to find the number of segments present based on the distance and resolution(1 res = 1 joint per unit) . Then I find the distance between each segment and to that I find the segments position by using a separation value. The separation value takes in the position at which you want the rope to end and position of the next closest segment. Then I needed to add some physics to it. So I added a rigidbody, sphere collider, character joint and also set a soft joint limit. Tweaked the values of the drag, mass.</p><p>Then I keep attaching these joints into one another until they reach the target object and then parent this to the target object. When the player ends the game, the rope gets destroyed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*zc10Ao-p9TQxt0AKPS2hoQ.gif" /></figure><p>The gif is not very clear to show how the rope behaves. There are a lot of fixes that I still need to do, but the physics works fine.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c3d784d2c2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiplayer Couch Camera]]></title>
            <link>https://medium.com/@PritishCh/multiplayer-couch-camera-e94ed61d82c?source=rss-c00b7d637bcf------2</link>
            <guid isPermaLink="false">https://medium.com/p/e94ed61d82c</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cameras]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unity3d]]></category>
            <dc:creator><![CDATA[Pritish Choudhary]]></dc:creator>
            <pubDate>Wed, 03 May 2017 16:27:41 GMT</pubDate>
            <atom:updated>2017-05-03T16:27:41.651Z</atom:updated>
            <content:encoded><![CDATA[<p>So my team and I are currently developing a 2–4 player couch game. The game is going to be built over the course of next 12–14 weeks. I started off by prototyping the camera system that we require for the game. Its a single screen camera and therefore, I needed to track all the players at the same time.</p><p>So, when I first started the prototype, I made a really bad prototype in terms of code. I had checks for all the player combinations possible and the math was a bit hacky too. So I decided to scrap the whole thing and re-write the code. This time my focus was efficiency.</p><p>So first I made an array of targets which took in the transforms of all the objects that are required to be tracked. So for the camera to move, it needed to find the average positions(transforms) of the targets present. To find the average position, I ran a loop that ran through all the targets together, and added their positions together and then divided it with the number of targets present. So the camera is supposed to move to this position. But it cannot go too fast, so I used a smoothDamp() to transition the camera from the current position to the new average position.</p><p>I also needed a way to zoom in or out depending on the distance between the players. So for this, I ran a loop again with the number of targets present, found the position and average position(desired position to move the camera to) of the camera in local space and then moved the camera in the horizontally and vertically depending on the positions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*1hQGZdOyvaiLaROgbOQ93w.gif" /></figure><p>This is how the camera turned out to be. Which is pretty decent. Will definitely look to make it more smoother for the final version of the game.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e94ed61d82c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shaders]]></title>
            <link>https://medium.com/@PritishCh/shaders-52b6e319e3?source=rss-c00b7d637bcf------2</link>
            <guid isPermaLink="false">https://medium.com/p/52b6e319e3</guid>
            <category><![CDATA[audiovisual]]></category>
            <category><![CDATA[shader-in-unity]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Pritish Choudhary]]></dc:creator>
            <pubDate>Wed, 03 May 2017 16:04:21 GMT</pubDate>
            <atom:updated>2017-05-03T16:04:21.742Z</atom:updated>
            <content:encoded><![CDATA[<p>I worked on creating a music visualizer which would run as a background for one of the games being developed at uni. So, the game was a 2.5D side scroller game and the designers asked me to give some bright fire like background which synced with the music.</p><p>So my first thought was on how to analyze the sound. So I decided to assign a block of the audio source that’s playing. Then I calculated the rmsValue, dbValue, after this calculate the pitch by finding the maximum volume and noise of the track. This allowed me to build a spectrum data.</p><p>To Spawn a line, I made arrays of float points and transform positions and instantiated a particle system that I created through the loop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*pqn_SheRI6cC3LDS2wMbRw.png" /></figure><p>This is the code I used to update the fire visuals and this function is called in Update().</p><p>The final solution looked like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*8pE0U8E8x3697B4x6wUnbw.gif" /><figcaption>This is the biggest size of the gif I can make :(</figcaption></figure><p>It was a pretty fun project to work on!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52b6e319e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital Data Security]]></title>
            <link>https://medium.com/@PritishCh/digital-data-security-cdadb95c191b?source=rss-c00b7d637bcf------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdadb95c191b</guid>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Pritish Choudhary]]></dc:creator>
            <pubDate>Wed, 03 May 2017 13:56:17 GMT</pubDate>
            <atom:updated>2017-05-03T14:04:15.352Z</atom:updated>
            <content:encoded><![CDATA[<p>What is Data Security? Data security refers to protective digital privacy measures that are applied to prevent unauthorized access to computers, databases and websites. Data security also protects data from corruption. Data security is an essential aspect of IT for organizations of every size and type.</p><h4>Why is there a need to protect data?</h4><p>Every time a person/consumer uses a service, does online shopping, create e-mail accounts, enter any contract or service request, pays taxes, the person needs to input some personal information. There is information being generated and recorded about everyone all the time without their knowledge by the companies and agencies they have encountered even for a very short period of time. Therefore to maintain a sense of trust between the various governments and companies with the people call for strong data protection practices, with effective legislation to help minimize needless monitoring by officialdom and regulate surveillance by companies.</p><h4>Why is there a need for data security in Games?</h4><p>The games industry is one of the most booming enterprise in today’s generation. ‘Newzoo’ released the latest quarterly update of its Global Games Market Report. It shows that gamers worldwide will generate a total of $99.6 billion in revenues in 2016, up 8.5% compared to 2015.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5yk7vMswiNUlh17opgyKtA.png" /><figcaption>Predicted Growth</figcaption></figure><p>So when installing the game companies ask the user to accept the ‘Terms and Conditions’ before they could start installing the game. I don’t think there is any user who actually reads that document. Lets have a look at what this document contains about data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KliYelxNkWfKyMJxP6uvSg.png" /><figcaption>From Terms of Service by EA</figcaption></figure><p>This is just from one company who have millions of monthly users. With more and more video game companies collecting ever greater amounts of data about their customers, privacy advocates are starting to warn about risks to gamers’ personal privacy — as well as the dangers in normalizing surveillance. That’s why data security in games is really critical as it’s extremely important to respect the privacy of a person.</p><h4>Why are there security leaks despite this much protection?</h4><p>Typically when you think of data breach, you think of a malicious cyber-attack. There’s no one reason why hackers do what they do. Sometimes they are after your banking information or intellectual property for financial gain. Other times they are just having fun or trying to prove a point, disrupting your business in the process. For these reasons, there doesn’t seem to be any single type of company that gets targeted, anyone can become the victim of a cyber-attack.</p><p>Hacking methods are becoming more advanced, and every year there are new ways to use software vulnerabilities to gain access to your information. Just recently Mozilla’s Firefox had to go through a significant update to protect its users from a vulnerability that <a href="http://fortune.com/2015/08/07/firefox-security-flaw/">could allow files to be stolen from their computers</a>.</p><p>Another major example is Wikileaks. Wikileaks is a non-for-profit independent media group that specializes in leaking classified or restricted documents from various governments and organizations in an effort to increase transparency and expose corrupt behavior in the halls of global power. Most of these files, documents and correspondences come directly from whistleblowers at governmental or corporate entities. While Wikileaks used to be more open to any and all contributors and participants, it has narrowed its inclusive circle, and is primarily composed of dissidents, journalists, start-up technologists and other progressive leaders who manage and run this impressive operation.</p><p>Another such recent event belonged to Snapchat. Snapchat was going through one of its worst weeks in a while. First the ratings of its app took a nose dive in the fallout of its CEO’s alleged comment calling Indians poor ( read more about it <a href="https://www.techworm.net/2017/04/snapchat-faces-indian-ire-app-ratings-drop-single-star-app-store.html">here </a>) and now, reports are coming in that a hacker group has released details of around a million accounts. The leak contained user details of approximately 1.7 million accounts. The group that has leaked the details seems to be a ‘white hat hacker group’.</p><h4>So what steps are taken to protect this data?</h4><p>Where a comprehensive data protection law exists, organizations, public or private, that collect and use your personal information have the obligation to handle this data according to the data protection law. Basically, anyone who “processes personal data” must comply with data protection legislation (contained in the Data Protection Act 1998).</p><p>What does “processing personal data” mean? If you are collecting data which (on its own or with other data that you could access) could identify a living person then you are collecting personal data. Some examples of what can constitute personal data are: name, age, sex, race, a post or email address.</p><p>Here’s some examples of how the information collected in the games industry which could involve processing personal data:</p><ul><li>Customers purchasing a game from or registering it with the developer/publisher</li><li>Customers registering an account for an online game or game community</li><li>Customers registering to join a website, or mailing list</li></ul><p>If you are involved with any of these services, then you are subject to data protection laws. There is no exemption for small businesses — it doesn’t matter whether you’re an indie developer or a major publisher. Data protection laws apply to anyone who processes personal data.</p><p>Some of the basic principles that the data protection law needs to adhere to are:</p><ul><li>there should be limits to what is collected: there should be limits on the collection of personal information, and it should be obtained by lawful and fair means, with the knowledge or consent of the individual</li><li>there must be no secret purposes: the purposes for which the information is to be used should be specified at least at the time of collection and should only be used for those agreed purposes</li><li>there must be no creeping purposes: personal information can only be disclosed, used, or retained for only the original purposes, except with the consent of the individual or under law, and accordingly it must be deleted when no longer necessary for that purpose</li><li>the information must be secure: reasonable security safeguards are used to protect personal information from loss, unauthorized access, destruction, use, modification or disclosure etc.</li></ul><p>Data protection rules need to be enforced by a regulator or authority, often called a Privacy Commissioner. The strength of the powers invested in these authorities varies from country to country and so does its independence from Government. These powers, for example, can include the ability to conduct investigations, act on complaints and impose fines when they discover an organization has broken the law.</p><p>Apart from all laws and government agencies, there is a high need for all the companies collecting such information to have a strong security system and that’s where Encryption comes in.</p><p>Encryption is the conversion of electronic data into another form, called ciphertext, which cannot be easily understood by anyone except authorized parties. Encryption is an interesting piece of technology that works by scrambling data so it is unreadable by unintended parties.</p><p>There are a lot of ways that data can be encrypted by. Two of the best encryption technologies in current time are Twofish and AES. Twofish is a block cipher by Counterpane Labs, published in 1998. It was one of the five Advanced Encryption Standard(AES) finalists, and was not selected as AES.</p><p>Twofish has a 128-bit block size, a key size ranging from 128 to 256 bits, and is optimized for 32-bit CPUs. Currently there is no successful cryptanalysis of Twofish.</p><p>Twofish is regarded as one of the fastest of its kind, and ideal for use in both hardware and software environments. Twofish is unpatented, and the source code is uncopyrighted and license-free; it is free for all uses.</p><p>The Advanced Encryption Standard(AES) is the algorithm trusted as the standard by the U.S. Government and numerous organizations.</p><p>Although it is extremely efficient in 128-bit form, AES also uses keys of 192 and 256 bits for heavy duty encryption purposes. The Rijndael cipher — a mash of the Belgian creators’ last names Daemen and Rijmen — was selected as the proposed algorithm for AES in October 2000 and published by NIST as U.S. <a href="http://whatis.techtarget.com/definition/Federal-Information-Processing-Standards-FIPS">FIPS</a> PUB 197. The Advanced Encryption Standard became effective as a federal government standard in 2002. It is also included in the International Organization for Standardization (<a href="http://searchdatacenter.techtarget.com/definition/ISO">ISO</a>)/International Electrotechnical Commission (<a href="http://whatis.techtarget.com/definition/International-Electrotechnical-Commission-IEC">IEC</a>) 18033–3 standard, which specifies block ciphers for the purpose of data confidentiality.</p><p>In June 2003, the U.S. government announced that AES could be used to protect classified information, and it soon became the default encryption algorithm for protecting classified information as well as the first publicly accessible and open cipher approved by the NSA for top-secret information. The NSA chose AES as one of the cryptographic algorithms to be used by its Information Assurance Directorate to protect national security systems.</p><p>Despite so many security steps, data breaches continue to happen. That’s why companies are working hard and creating/updating encryption algorithms that can handle such sophisticated amount of information. There is a lot of public information available on the internet and that’s why security is really important.</p><p>References:</p><p>Boutilier, A. (2015). <em>Video game companies are collecting massive amounts of data about you | Toronto Star</em>. <em>thestar.com</em>. Retrieved 3 May 2017, from <a href="https://www.thestar.com/news/canada/2015/12/29/how-much-data-are-video-games-collecting-about-you.html">https://www.thestar.com/news/canada/2015/12/29/how-much-data-are-video-games-collecting-about-you.html</a></p><p><em>Data Privacy and Online Gaming: Why Gamers Make for Ideal Targets — Security News — Trend Micro USA</em>. (2016). <em>Trendmicro.com</em>. Retrieved 3 May 2017, from <a href="https://www.trendmicro.com/vinfo/us/security/news/online-privacy/data-privacy-and-online-gaming-why-gamers-make-for-ideal-targets">https://www.trendmicro.com/vinfo/us/security/news/online-privacy/data-privacy-and-online-gaming-why-gamers-make-for-ideal-targets</a></p><p><em>Data Protection | Privacy International</em>. (2017). <em>Privacyinternational.org</em>. Retrieved 3 May 2017, from <a href="https://www.privacyinternational.org/node/44">https://www.privacyinternational.org/node/44</a></p><p>Narayana, N. (2010). <em>How does WikiLeaks get hold of secret documents?</em>. <em>International Business Times</em>. Retrieved 3 May 2017, from <a href="http://www.ibtimes.com/how-does-wikileaks-get-hold-secret-documents-248570">http://www.ibtimes.com/how-does-wikileaks-get-hold-secret-documents-248570</a></p><p>Staughton, J. (2016). <em>What Is Wikileaks And How Did It Come Into Being? » Science ABC</em>. <em>Science ABC</em>. Retrieved 3 May 2017, from <a href="https://www.scienceabc.com/social-science/how-wikileaks-formed-julian-assange-sweden-london-government-secrets.html">https://www.scienceabc.com/social-science/how-wikileaks-formed-julian-assange-sweden-london-government-secrets.html</a></p><p><em>The Global Games Market 2016 | Per Region &amp; Segment | Newzoo</em>. (2016). <em>Newzoo</em>. Retrieved 3 May 2017, from <a href="https://newzoo.com/insights/articles/global-games-market-reaches-99-6-billion-2016-mobile-generating-37/">https://newzoo.com/insights/articles/global-games-market-reaches-99-6-billion-2016-mobile-generating-37/</a></p><p><em>What is Data Security? — Definition from Techopedia</em>. (2017). <em>Techopedia.com</em>. Retrieved 3 May 2017, from <a href="https://www.techopedia.com/definition/26464/data-security">https://www.techopedia.com/definition/26464/data-security</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdadb95c191b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are Consoles holding back innovation in games?]]></title>
            <link>https://medium.com/@PritishCh/are-consoles-holding-back-innovation-in-games-4ed1a532748c?source=rss-c00b7d637bcf------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ed1a532748c</guid>
            <category><![CDATA[xbox-one]]></category>
            <category><![CDATA[gaming]]></category>
            <dc:creator><![CDATA[Pritish Choudhary]]></dc:creator>
            <pubDate>Wed, 03 May 2017 10:40:29 GMT</pubDate>
            <atom:updated>2017-05-03T10:40:29.675Z</atom:updated>
            <content:encoded><![CDATA[<p>The global gaming industry is been developing at a really fast pace. As of 2015, the world wide sale of games generated a revenue of $70 billion and is predicted to raise up to $90 billion by 2020.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*BejmXTVJvijEwLCL5_QqtQ.png" /></figure><p>A large percentage of this revenue is generated by consoles. The most significant companies at the current time are Microsoft, Nintendo and Sony. The unit sales of each of of these companies is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*MIYVTLMVx4hM26MBFURAHQ.png" /></figure><p>Now considering a situation, a person buys a console as a potential long term buy. A ‘long term’ can vary between 3 to 5 years. The biggest problem with this in today’s time is that a hardware can become obsolete within the span of 2 years and an average person wouldn’t be too fond of spending tons of money on small performance and graphics upgrade. So, a company developing a game needs to keep in mind all the different limitations that a console has.</p><p>Let’s start off with Microsoft.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*61lnXxJ83IHBzfHBL0zAsA.jpeg" /></figure><p>After a disappointing first console, Microsoft burst onto the scene with the Xbox 360 in 2005. It contained the following specifications : CPU: 3.2-GHz PowerPC Tri-Core Xenon, GPU: 500 MHz ATI Xenos, 512MB GDDR3 RAM. These specs were really great at that point of time. But the next console was not released until 2013. That’s 8 years without performance upgrades which really isn’t great for the gaming industry because they had to structure the games in a way that it could run smoothly on the limited capacity of the console. At that point of time, PC hardware had made large strides and games could be played at higher frame rates and better quality graphics. So every game that is released has to be heavily optimized before they can be played on consoles.</p><p>Then came the much needed upgrade for this, the Xbox One. It contained the following specifications : CPU: 8 Core AMD custom CPU,Frequency: 1.75 GHz, RAM: 8GB DDR3 Clock: 2133MHz Bandwidth: 68.26 GB/s+ 32MB SRAM, Bandwidth: 204 GB/s(102 In/102 Out), GPU: 853 MHz(originally 800 MHz). The console came out with a bundle of limitations at the start.</p><p>To start off — The new Xbox needed to be connected to the internet all the time to play any game and there was no backward compatibility for games from the Xbox 360 version. This eventually got fixed my Microsoft because of poor sales of the console because of the above two reasons. The interface was also slow and clunky, but this too got fixed. Other drawbacks included — No Bluetooth, A bit weaker than the PS4(games played at a lower resolution when compared), Non-rechargeable controllers, the physical system itself was pretty big and heavy, Installation times were long.</p><p>In 2016, Microsoft unveiled the Xbox One S. This console literally addressed all the issues present in the previous generation console. It is smaller in size, controllers are connected via Bluetooth, 4k video playback, games up-scaled to higher resolutions, HDR support etc. This had its drawbacks as well. The most important one that comes to mind is that this hardware will be obsolete in a year because Microsoft has already announced that it will be launching Project Scorpio by the end of 2017. The console won’t magically convert Xbox One games into native 4K, it will only upscale them. So a stretched 1080p (or more likely 960p, which most Xbox One games have to output at owing to system strain) image to fill 3840 x 2160 pixels is what you have to look forward to. Rather pointless. It also requires an external cable to connect to the Kinnect which isn’t ideal because in the current time, people want everything to be wireless.</p><p>This concludes my take on why console gaming holds back game companies to reach their full potential. I am not against consoles as I do own one, but being a game developer, I wanted to think about this objectively and hopefully in the future, we find ways to upgrade consoles faster and in a cheaper way.</p><p>References:</p><p>Barder, O. (2016). <em>Forbes Welcome</em>. <em>Forbes.com</em>. Retrieved 3 May 2017, from <a href="https://www.forbes.com/sites/olliebarder/2016/04/20/the-main-limitation-on-gaming-is-no-longer-technological-its-budgetary/#6e7fbe43444f">https://www.forbes.com/sites/olliebarder/2016/04/20/the-main-limitation-on-gaming-is-no-longer-technological-its-budgetary/#6e7fbe43444f</a></p><p>Inquirer, T., original, 5., reading, F., Latest, I., &amp; read, M. (2017). <em>5 reasons why the Xbox One S is worse than the original | TheINQUIRER</em>. <a href="http://www.theinquirer.net./"><em>http://www.theinquirer.net</em>.</a> Retrieved 3 May 2017, from <a href="http://www.theinquirer.net/inquirer/feature/2462027/5-reasons-why-the-xbox-one-s-is-worse-than-the-original/page/5">http://www.theinquirer.net/inquirer/feature/2462027/5-reasons-why-the-xbox-one-s-is-worse-than-the-original/page/5</a></p><p>Kelly, G. (2016). <em>Forbes Welcome</em>. <em>Forbes.com</em>. Retrieved 3 May 2017, from <a href="https://www.forbes.com/sites/gordonkelly/2016/11/10/microsoft-xbox-one-vs-xbox-one-s-whats-the-difference/#3d10ddf2c458">https://www.forbes.com/sites/gordonkelly/2016/11/10/microsoft-xbox-one-vs-xbox-one-s-whats-the-difference/#3d10ddf2c458</a></p><p>units), G. (2017). <em>Global video game console sales 2016 | Statistic</em>. <em>Statista</em>. Retrieved 3 May 2017, from <a href="https://www.statista.com/statistics/276768/global-unit-sales-of-video-game-consoles/">https://www.statista.com/statistics/276768/global-unit-sales-of-video-game-consoles/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ed1a532748c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Home Grown — Postmortem]]></title>
            <link>https://medium.com/@PritishCh/home-grown-postmortem-a40b9519a149?source=rss-c00b7d637bcf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a40b9519a149</guid>
            <category><![CDATA[postmortem]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Pritish Choudhary]]></dc:creator>
            <pubDate>Tue, 13 Dec 2016 20:41:57 GMT</pubDate>
            <atom:updated>2016-12-13T20:41:57.774Z</atom:updated>
            <content:encoded><![CDATA[<h4>What Went Well:</h4><p>First and foremost, the communication between the team was really good. We were able to stay in contact whenever necessary even though we had really different working times. We generally decided what needed to be done in class or in chats, and then tried to complete the work when it was needed.</p><p>I worked mostly on making the plant species grow. There were a few snags during the development process of this, but with a little help this was done well. I also worked on instantiating the seeds on a daily basis, I had a small problem with this which I will discuss later. I also worked on the script for companion planting which was pretty easy to implement.</p><p>I also made the placeholders for the different UI elements, which included the main menu, pause menu, controls menu. I added a save and exit feature which saved the position and rotation of the player and then loaded that position when the game was loaded again. I used PlayerPrefs for this, which even I know is not the best way to do it, but was an easy way to do it.</p><p>We also had a good planning system, all of us knew when each of us were free and could work on the game. We had a clear list of tasks broken down and also had clear deadlines.</p><h3>What Didn’t Go Well:</h3><p>One thing was that I didn’t make a clear TDD at the start of the project, which caused a few problems because as and when I was coding, I realized I hadn’t thought about a lot of things and had to code on the fly. This lead me to not updating the TDD because I was procrastinating and hence ended up with me doing a lot of documentation work after a major chunk of the scripting was done which isn’t ideal.</p><p>Another thing that hampered a little of me meeting the deadline was that I fell sick in the middle of the project. This slowed down my process of thinking and my speed of doing work as well.</p><p>Another problem that I encountered was when instantiating the seed box on a daily basis, if all the seeds were not used, I need to delete the remaining ones and instantiate the seed box again, but what happened was there were multiple objects spawning. I didn’t know what to do for that. It got fixed eventually by Iain, but I wish I could have come up with the solution to fix it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a40b9519a149" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Postmortem Studio 2]]></title>
            <link>https://medium.com/@PritishCh/postmortem-studio-2-617c62acb926?source=rss-c00b7d637bcf------2</link>
            <guid isPermaLink="false">https://medium.com/p/617c62acb926</guid>
            <category><![CDATA[postmortem]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Pritish Choudhary]]></dc:creator>
            <pubDate>Tue, 13 Dec 2016 19:55:12 GMT</pubDate>
            <atom:updated>2016-12-13T19:55:12.540Z</atom:updated>
            <content:encoded><![CDATA[<h4>What Went Well</h4><p>This trimester I learnt a lot about Artificial Intelligence. I managed to put up a decent enough bot for the tournament though I didn’t win it. I was able to accomplish the creation of a basic patrolling bot.</p><p>I managed to create a spline system that can be edited in the scene view. While building this I learnt a lot about making custom inspectors in Unity. This also included a lot of complex mathematics (at least for me) to make the path of the spline possible. The spline system is something that I am very proud off and hope to continue developing it in the further trimesters.</p><p>For the spatial partitioning system, my classmate Phillip helped me out with it. I ended up making a grid system that did speed up the process of rendering and was pretty happy with it.</p><p>The vector math library took a few tries before I could actually nail it, but I ended up adding quite a few mathematical functions that would prove to be helpful for me in the future.</p><p>I also was the Programmer for the game Home Grown. I enjoyed working in a team again. I think the communication between us was pretty good. We knew what had to do be done and had fixed deadlines for it. I tried to optimize my code as much as possible, even though could have been better.</p><p>I also made 2 player ping pong game. I was interested in ball physics and added relatively easy mechanics. I hope to continue working on this and make it as realistic as possible.</p><h3>What Didn’t Go Well:</h3><p>At the start of the trimester, I did a lot of procrastination because I felt that there wouldn’t be a lot of work to be done and I could easily finish up at the end, which was wrong. Things became really stressful by the end as I was doing multiple things at once and was overwhelmed by the amount of work needed to be done.</p><p>The bot tournaments could have gone much better for me if I had pulled through a few more hours of work and actually implemented more stuff than what I had. I was disappointed a little with myself because AI is one of the my major areas of interest and I couldn’t fully show what I was capable off.</p><p>This trimester, I also didn’t blog regularly which isn’t ideal. I should have blogged as and when I did my work, but kept pushing it till the end. I won’t be making this mistake again for sure in the future trimesters/when I get a job.</p><p>One of my biggest regrets this trimester is not working on a side project that I had started on. Sports game are something I want to pursue my career in and I haven’t developed a sports game yet. This is something that I will be definitely working on in the upcoming trimesters and hope to build at least one decent sports game.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=617c62acb926" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>