<?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 Dávid Komorowicz on Medium]]></title>
        <description><![CDATA[Stories by Dávid Komorowicz on Medium]]></description>
        <link>https://medium.com/@Dawars?source=rss-d0bfcd05da7c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Fmh-K8x1Z1rwCXMbCYfSlA.jpeg</url>
            <title>Stories by Dávid Komorowicz on Medium</title>
            <link>https://medium.com/@Dawars?source=rss-d0bfcd05da7c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 10:12:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Dawars/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[Personalized Hand Models for VR]]></title>
            <link>https://medium.com/kitchen-budapest/personalized-hand-models-for-vr-bdf6d6f8fad3?source=rss-d0bfcd05da7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdf6d6f8fad3</guid>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[computer-graphics]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[immersive]]></category>
            <dc:creator><![CDATA[Dávid Komorowicz]]></dc:creator>
            <pubDate>Thu, 20 Sep 2018 12:03:17 GMT</pubDate>
            <atom:updated>2018-09-24T20:40:03.101Z</atom:updated>
            <content:encoded><![CDATA[<h4>For a truly immersive experience</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aN8KaLkYUpAZHf6OPs65IQ.png" /></figure><p>I’ve always preferred story-driven games to the competitive ones. When diving into a game like this, one experiences a variety of emotions and may also grow as a person at the end. Despite all that I came to the realization that we might control these characters — our avatars in a way — , but in effect, they have nothing to do with us!</p><p>When playing a game, you see the body and hands of your playable avatar instead of your own. You can customize your character in some MMORPGs, but it still requires heavy manual tweaking to make them look like you.</p><p>This is even more relevant in virtual reality, where the control is, literally, in the player’s hands. Hand-object interaction is in the center of a great virtual reality experience.</p><p>Seeing someone else’s hands move instead of your own feels uncanny and causes discomfort. Although this sounds like a small detail, it can really break the immersion, especially in VR. To work around this, most games apply clever tricks, like covering the player’s hands or showing gloves instead.</p><p>However, hands differ in shapes and sizes, so these workarounds only offer partial solutions to the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F2Zn7RFsg3aNORY7.jpg" /><figcaption>Hands in The Gallery — Episode 1: Call of the Starseed</figcaption></figure><p>With my project, I aim to change the character’s body to resemble the player’s physical image in order to make gaming a truly personal experience, thus making it more immersive.</p><blockquote>I want to transform the character’s body to resemble the player’s own physical characteristics, making games a truly personal experience.</blockquote><p>Recent advancements in Artificial Intelligence made it possible to take personalization to the next level, whether <a href="https://ai.googleblog.com/2017/12/tacotron-2-generating-human-like-speech.html">generating voice on the fly</a> (TTS) or <a href="http://cvl-demos.cs.nott.ac.uk/vrn/">modeling the player’s face from a single image</a>.</p><h3>Online Demo</h3><p>Take a look at my interactive demo <a href="https://dawars.me/mano/">here</a>. You can change the shape of the hand by adjusting the sliders on the right.</p><p>Try finding the right parameters for <em>your</em> hand, let’s see if you can.😉<br>Leave a comment with your results.</p><figure><a href="https://dawars.me/mano/"><img alt="" src="https://cdn-images-1.medium.com/max/741/1*31t5hzaRjO9BEkfIxNzHPw.png" /></a><figcaption>Deformable Hand <a href="https://dawars.me/mano">Demo</a></figcaption></figure><h3>The Model</h3><p>As a starting point, I’m using the <a href="http://mano.is.tue.mpg.de/">Mano</a> model. It is a parametric hand model published by the <a href="http://ps.is.tue.mpg.de/">Perceiving Systems Department</a> in Tübingen. <br>I’ll get into more details in the following article. If you are interested, make sure you’ve clicked the <em>Follow </em>button next to my name.</p><p>Researchers from PSD published all the data accompanying their high-quality paper which is still very rare these days. <br>There is a catch, however. They still use Python 2 and therefore the data is in a Pickle format incompatible for Python 3, that I’m currently using. Furthermore, the structure of the files was “documented” only by an example code. I had to figure out the purpose of each matrix by their dimensions and arbitrary names.</p><p>All in all, I came to the conclusion that I needed to export the values as JSON files to maintain cross-compatibility between various programming languages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/0*f19q0EEI_9zbmgJ7" /><figcaption>Skeleton with Blend Weights</figcaption></figure><p>Based on the published files I’ve rebuilt the whole model in Maya to be able to export to different game engines.</p><p>I managed to set up the blend shapes by hand but that was not an option for the rig. I would have had to manually set blend weights for every one of the 778 vertices for every 16 joints.</p><p>Fortunately, I found a better way, scripting! Maya supports two languages for scripting: MEL and Python. (That means Python)</p><p>There is a <a href="https://plugins.jetbrains.com/plugin/8218-mayacharm">plugin</a> for my favorite IDE, PyCharm, which connects to the Python interpreter run by Maya and executes code on it. Now I can use those matrices I saved earlier. This made the whole process a very pleasant experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S4IRDQCJ8l5f9WxCoa4sHg.png" /><figcaption>Executing Python code in Maya</figcaption></figure><h3>Leap Motion</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Flq79ehChCjM%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dlq79ehChCjM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Flq79ehChCjM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a15319bffa58bafb8f358ecc872b39b2/href">https://medium.com/media/a15319bffa58bafb8f358ecc872b39b2/href</a></iframe><p>To see if everything worked correctly I imported the model in Unity and paired it up with Leap Motion. <a href="https://www.leapmotion.com/en/">Leap Motion</a> is a small device that can track your hand movements in real-time.</p><p>Unfortunately, it is not precise enough to be able to track arbitrary hand poses, but a fun toy nevertheless. This is due to the model Leap Motion uses which prefers more common gestures. At the end of the video, I touch each of my fingertips with my thumb, but they don’t move separately and don’t make contact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GLUsuvD5CSjboolhCVN_dw.png" /><figcaption>Leap Motion joint orientations (<a href="http://blog.leapmotion.com/hands-module-2-0-bring-your-hand-designs-to-life-in-two-minutes-or-less/">Source</a>)</figcaption></figure><p>However, the setup was not as easy as it sounds. Leap Motion requires the joints of the skeleton to be oriented in a certain way.</p><p>One axis along the bone, another through the axis of rotation and the third one to complete an orthonormal base.</p><p>Luckily Maya has the <em>Orient Joint</em> feature that does just that. It was a great time saver and I could even call it from code.</p><p>After that, it was easy pairing the rig with the Leap Motion controller using their <a href="http://blog.leapmotion.com/hands-module-2-0-bring-your-hand-designs-to-life-in-two-minutes-or-less/">auto rig tool</a>.</p><h3>Goal</h3><p>The end result of this project will be a mobile app that can transform hand photos into a textured 3D mesh consisting of 10 shape parameters and the different texture files (albedo, normal, etc). These will be extracted with Convolutional Neural Networks (CNN), which is the state of the art method for image processing tasks. These will then be transferred to a supported game of choice. The model can be animated with conventional methods thanks to the MANO model we use as a base.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6qeMBlPQyN3fHrW4" /><figcaption>Mobile app concept</figcaption></figure><p>Whether the computations run on the device or in the cloud will depend on the computational need of the network. On-device inference would be beneficial for privacy reasons because hand data can be used for biometric identification, therefore, it should be treated with extra care. Not to mention the data policy imposed by GDPR for European users. This way the data never leaves the phone complying with the new regulations.</p><h4>What’s next?</h4><p>Currently, I’m finishing up cleaning the training data and starting to train a neural network. In the next post, I’ll write about the results of the first prototype which will estimate the <em>shape</em> parameters and what I’ve learned along the way. In the meantime <a href="https://medium.com/@Dawars">follow me</a> to get notified when it comes out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WfRoGAYpsk2cnKZI3CdF0w.png" /></figure><p>If you liked this article, <a href="https://medium.com/@Dawars"><strong>follow me</strong></a> and leave a <strong>couple of 👏s</strong> to help others find it as well.</p><p>Never miss anything! I write about the intersection of <em>Machine Learning</em> and <em>Computer Graphics</em>.</p><figure><a href="https://www.facebook.com/dawars00/"><img alt="" src="https://cdn-images-1.medium.com/max/600/1*BYqdxq-P63Hj_V3bWNk11w.png" /></a></figure><figure><a href="https://twitter.com/dawars00"><img alt="" src="https://cdn-images-1.medium.com/max/600/1*k5mtAKLYS7jZdX_MDr8q6Q.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdf6d6f8fad3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kitchen-budapest/personalized-hand-models-for-vr-bdf6d6f8fad3">Personalized Hand Models for VR</a> was originally published in <a href="https://medium.com/kitchen-budapest">Kitchen Budapest Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Anime or Cartoon? — AI-powered style definition now on mobile]]></title>
            <link>https://medium.com/kitchen-budapest/anime-or-cartoon-mobile-app-a00e2c77584e?source=rss-d0bfcd05da7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a00e2c77584e</guid>
            <category><![CDATA[anime]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[cartoon]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Dávid Komorowicz]]></dc:creator>
            <pubDate>Fri, 12 Jan 2018 16:14:13 GMT</pubDate>
            <atom:updated>2018-01-18T13:05:14.657Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zaTiuHCZliqKqlhk.jpg" /><figcaption>Photo by Barnabás Neogrády-Kiss</figcaption></figure><p>Since last summer I have been working on establishing a new definition for <a href="https://medium.com/@Dawars/kibu-lift-anime-or-cartoon-a1d2310b4659">Anime and Cartoon using Artificial Intelligence</a>.</p><p>During this time I took part in the <a href="http://kibu.hu/en/programs">KiBu Lift Program</a> and the <a href="http://www.emet.gov.hu/felhivasok/felhivas3/">Hungarian National Talent Program</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BXr0tkARY-MHA-zf.png" /><figcaption>Photo by Barnabás Neogrády-Kiss</figcaption></figure><p>At KiBu, Demo Day is a biannual event showcasing the output of the KiBu Talent &amp; Lift programs.</p><p>Along with a quick talk about the project I released the first public beta of the app which you can try out here: <a href="https://dawars.me/anime/">dawars.me/anime/</a></p><h3>The UI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S7kHYlgy15O2sIue.jpg" /><figcaption>Photo by Barnabás Neogrády-Kiss</figcaption></figure><p>The app works much like a traditional camera application. One has to point the mobile at the analysed image and at the top of the screen the app displays the anime or cartoon likeness in percents.</p><h3>How does it work</h3><p>The app takes advantage of the superhuman capabilities of neural networks in computer vision, especially CNNs (convolutional neural network).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ss4zebpxMqUW6MvM.png" /></figure><p>The network is trained on hundreds of thousands of images from both anime and cartoon images. Here I would like to stress that only universally accepted animations go into either categories, e.g. Avatar: The Last Airbender is excluded.</p><p>During this phase the networks creates an internal representation of “anime likeness” and “cartoon likeness”.</p><p>We don’t really know what these are but the network distills these from the shown images. Usually these features can be related to outlines, color usage or bigger shapes like eyes, hair.</p><p>The current beta utilizes the <a href="https://arxiv.org/abs/1704.04861">Mobilenet</a> architecture, which offers great tradeoff between speed and accuracy. Ideal for real time image classification tasks, just like this project.</p><h3>Future work</h3><p>Currently the app does a good job at recognising and distinguishing between anime and cartoon images. A current limitation is that it can only say something is either anime or cartoon but not both (a mix of them) or neither.</p><p>I’m planning to train an even bigger Neural Network (VGG-16) on this dataset. VGG-16 is well known for its great performance in Style Transfer.</p><p>Using a slightly modified version of <a href="https://github.com/jcjohnson/neural-style">Neural Style Transfer</a> we could get a glimpse of the inner workings of the network.</p><p>My hypothesis is that if we tell the network to make a cartoon image more anime looking, certain features will appear that the network associates with anime and vice versa.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/0*QmeS3107DfI1pjHS.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/0*jJSoGnBSlThdzhQt.png" /></figure><p><em>Originally published at </em><a href="https://dawars.me/anime-cartoon-app/"><em>dawars.me</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a00e2c77584e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kitchen-budapest/anime-or-cartoon-mobile-app-a00e2c77584e">Anime or Cartoon? — AI-powered style definition now on mobile</a> was originally published in <a href="https://medium.com/kitchen-budapest">Kitchen Budapest Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Anime or Cartoon? — Let the AI decide]]></title>
            <link>https://medium.com/kitchen-budapest/kibu-lift-anime-or-cartoon-a1d2310b4659?source=rss-d0bfcd05da7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1d2310b4659</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[cartoon]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[anime]]></category>
            <dc:creator><![CDATA[Dávid Komorowicz]]></dc:creator>
            <pubDate>Wed, 02 Aug 2017 14:51:34 GMT</pubDate>
            <atom:updated>2017-08-03T18:19:17.947Z</atom:updated>
            <content:encoded><![CDATA[<h4>An AI that tells apart anime from cartoon based on style.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kv3K7qzzGgQJoUOJWO-ZqQ.png" /></figure><p>There is an ongoing debate about the definition of Anime.</p><blockquote><em>The word </em><strong><em>anime</em></strong><em> (アニメ) comes from the abbreviated pronunciation of “animation” in Japanese, referring to all kinds of animation.</em></blockquote><p>Outside of Japan however, it is usually meant as animations <em>exclusively</em> created in Japan.</p><h3>Anime as an Art Form</h3><p>Films cannot be distinguished (and shouldn’t) based on the country of origin. Why couldn’t people outside of Japan produce <em>anime</em> if they wanted to or why couldn’t Japanese make <em>cartoons</em>?</p><p>I consider anime an art form, and this art form isn’t restricted to one country. Anime (and cartoon) is a certain way that characters are drawn/animated and how stories are portrayed and told.</p><p>Sometimes it’s easy to tell, whether we see an anime or a cartoon, e.g. in the following example. Can you guess which one it is?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*LXdF9WtOR1wgd72YJ_k7YQ.png" /><figcaption>Samurai Jack (Cartoon)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WxF7ot1HQkql-QGlpZsRcg.png" /><figcaption>Sword of the Stranger (Anime)</figcaption></figure><p>So far, so good. But what about this one?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*DE2lZdoZ0M3SXuAqz2e1dg.png" /><figcaption>Afro Samurai (?)</figcaption></figure><p><strong>Afro Samurai</strong> was made in Japan but the creator (Takashi Okazaki) drew inspiration from <em>American media</em> and their depiction of Japanese culture due to his fondness of hip hop and soul music.</p><p>There are some animations, like this one, that cannot be simply put into either of the categories. As anime got popular world-wide, it influenced western animation studios and vice versa, like Disney, Pixar and DreamWorks amongst many others.</p><p>And there are even some collaborations between Japanese and non-Japanese studios like The King Kong Show, The Mysterious Cities of Gold, Ulysse 31, etc.</p><h3>Difficulties</h3><p>An animated film has a lot of components that combined make up a whole: visual style, quality of animation, the themes (human bonds, afterlife, etc.), the music, the characters, the plot and so on…</p><p>Therefore not a single one of them can be used to describe the whole.</p><p>In addition, anime itself has different animation styles, so we cannot talk about one anime style but several.</p><h3>Solution</h3><p>A more inclusive definition could be whether something <em>looks like</em> anime or not. This is problematic, because it’s a highly subjective factor, but by introducing an independent third-party this can be solved as well.</p><p>For these borderline cases I’m going to develop an AI that tells from an image, to what extent does it look like anime or cartoon.</p><p>I’m utilizing Deep Learning, because it’s very good at recognizing and categorizing images. Using Convolutional Neural Networks (CNN) 98.9% accuracy was achieved in telling apart <em>dogs</em> from <em>cats</em>.</p><p>I will feed the AI generally acknowledged anime and cartoon images and it will learn the distinct characteristics of each…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iML5xFPT5humzv9PCzO5_w.png" /><figcaption>Application Concept</figcaption></figure><p>I’m working on this project as part of my <em>Lift residency </em>at <a href="http://kibu.hu/">KiBu</a>.</p><p>If you are interested in <strong>Beta testing, </strong><a href="https://goo.gl/forms/m7MqBNc4GfMPYFNf1">subscribe here</a> and don’t forget to hit the <em>follow button</em> below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1d2310b4659" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kitchen-budapest/kibu-lift-anime-or-cartoon-a1d2310b4659">Anime or Cartoon? — Let the AI decide</a> was originally published in <a href="https://medium.com/kitchen-budapest">Kitchen Budapest Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Crowdsourcing Image Labeling]]></title>
            <link>https://medium.com/@Dawars/crowdsourcing-image-labeling-3a5192c64fb8?source=rss-d0bfcd05da7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a5192c64fb8</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[anime]]></category>
            <category><![CDATA[crowdsourcing]]></category>
            <category><![CDATA[cartoon]]></category>
            <dc:creator><![CDATA[Dávid Komorowicz]]></dc:creator>
            <pubDate>Thu, 27 Jul 2017 20:59:46 GMT</pubDate>
            <atom:updated>2017-09-02T12:44:49.454Z</atom:updated>
            <content:encoded><![CDATA[<h4>Web App for labeling images</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2lue2YZbKEKan5T0." /></figure><p>This post is the continuation of <a href="https://medium.com/kitchen-budapest/kibu-lift-anime-or-cartoon-a1d2310b4659">Anime or Cartoon? — Let the AI decide</a>. In it I describe the project I’m collecting the data for.</p><p>In Deep Learning we often work with huge datasets and this project is no exception. I collected around 300.000 images from both anime and cartoons. Processing this many images is not an easy task though.</p><h3>Crowdsourcing</h3><p>I designed this simple web app to crowdsource the labeling of these images. I was heavily inspired by <a href="https://www.galaxyzoo.org/#/classify">GalaxyZoo</a> which is made for classifying different kinds of galaxies.</p><p>If you just want to try it out, look no further: <a href="http://dawars.me/anime">http://dawars.me/anime</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/0*kNiFnBjH4OiccXTM." /><figcaption>Labeling an image in the app</figcaption></figure><h3>The Problem</h3><p>Now let’s talk about the problem. I wanted to go through every image so that I can filter out the problematic ones but it would have been impossible to do so manually. I found 4 main features that I wanted to assign to each image:</p><ul><li>Some images contain <strong>text</strong>. This is bad, because I especially don’t want the network to associate Japanese with anime and English with cartoon.</li><li>Again, some images contain the <strong>logo of the TV channel</strong>. This is similar to the previous case, I don’t want specific TV channels to be associated with either category.</li><li>Some images contain one or more <strong>Characters</strong>. This is good because it is easier to classify based on the style of the characters (the backgrounds can be more similar between the two categories)</li><li>Sometimes the images are completely<strong> black or unrecognizable</strong>. In this case I don’t want the Neural Network to learn them.</li></ul><p>For the “empty” images with minimal detail (only one color) I ended up checking the file size and deleting everything below ~1 kB (JPEG compression). This was a quick and pretty effective method.</p><p>I made a tutorial to teach users what to look for in the images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/0*zjuSv3fXsI_BCZGq." /><figcaption>Character tutorial</figcaption></figure><h3>Used Technologies</h3><p>You can read this part on my blog at <a href="http://dawars.me/crowdsourcing-image-labeling/#used-technologies">http://dawars.me/crowdsourcing-image-labeling/#used-technologies</a></p><h3>Final words</h3><p>I’m very proud of myself to finish a project at this scale from backend to frontend all by myself. I was very excited for <a href="https://developer.android.com/topic/instant-apps/overview.html">Instant Android apps</a> which became public just recently. But unfortunately its support is very limited and even restricted to Nexus devices at this time so I gave upon it. It would have given a native feel to mobile users.</p><p>The project is on GitHub, if you want to check it out: <a href="https://github.com/Dawars/Anime-Image-Labeling">https://github.com/Dawars/Anime-Image-Labeling</a></p><p>I’m going to release the dataset once the labeling is finished.</p><p>If you want to get notified for new posts, follow me <a href="https://medium.com/@Dawars">here on Medium</a> or on <a href="https://twitter.com/intent/follow?screen_name=Dawars00">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a5192c64fb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Design Overview of VR Titles]]></title>
            <link>https://medium.com/dawars00/a-design-overview-of-vr-titles-bc5faba56f1f?source=rss-d0bfcd05da7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc5faba56f1f</guid>
            <category><![CDATA[htc-vive]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <dc:creator><![CDATA[Dávid Komorowicz]]></dc:creator>
            <pubDate>Sat, 06 Aug 2016 22:05:55 GMT</pubDate>
            <atom:updated>2017-12-10T16:55:55.227Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/805/0*-KA12ny71u2UxjIO.jpeg" /></figure><p>I’ve got access to an HTC Vive recently thanks to <a href="http://kibu.hu/">Kibu</a> and I spent my past few weeks playing most of the games available. In this post I’ll share what I’ve learned from playing these games and watching others play them. I’ll walk around the different design solutions in these games especially applied to the Vive.</p><h3><a href="http://steamcommunity.com/app/270130">The Gallery — Episode 1: Call of the Starseed</a> (6213Ft)</h3><p><strong>+ Hands instead of controllers:</strong> This is the first game I see “my” hands in instead of the controllers. This nicely blends into the environment and adds a bit more realism. You can close your hands and pick up objects by pressing the <em>trigger</em> on the controller and it feels natural. And there is even a separate hand animation for each object that you can hold.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HYtvB97oNDBqm4lc.jpg" /><figcaption>Hands in-game</figcaption></figure><p><strong>+ Inventory system:</strong> When you want to use an item from your inventory you don’t have to open a flat window but rather you pull out a backpack over your shoulders.</p><p>This is a genius way to manage your items. You need something? Pull out your backpack and take it out. Don’t need it any more? Put it over your shoulder as if there was a real backpack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/0*hJy8IVCqNfhL7q-A.jpg" /><figcaption>Inventory</figcaption></figure><p><strong>+ Loading Menu:</strong> Every time you reach a checkpoint a new cassette will be appear on the table at the start of the game. You can load the selected checkpoint by putting the corresponding cassette into the player.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*u5UqYdx_B_dXFHI1.jpg" /><figcaption>Loading a checkpoint</figcaption></figure><p><strong>+ Collision:</strong> If you have a large enough play space or the map isn’t rectangular you can walk through walls or look beyond them. This is a problem I have encountered in every other game. Here this is solved by blurring your vision as you go deeper into the material so that you don’t see unintentional things. When you go deep enough you will get teleported back to a traversable area.</p><p><strong>+ Persistent bounds: </strong>For me this is a very useful feature because I’d rather see the bounds of the room on the floor at all times so that I avoid seeing the grid which is super annoying.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ma0guMqf7yKcnOPm.jpg" /><figcaption>Left: Avoiding the grid with the help of the bounds vs Right: Getting near the wall and seeing the grid</figcaption></figure><p><strong>+ Interactivity:</strong> There are a lot of objects in the world that you can grab and interact with. This can significantly increase the time the player spends in a map. 🙂</p><p>Here are some of these cool interactions:</p><ul><li>Lighting the fireworks</li><li>Burning the letter</li><li>Cooking popcorn on the camp fire</li><li>Putting the tape in the cassette player</li><li>Hearing the ocean in the shells</li><li>Shaking the glow stick to activate</li></ul><p><strong>– Limited Interactions:</strong> However in a game where you can do so much, you get used to it and there will be some things you cannot do. These tiny things can easily break the illusion of reality. Of course everything can’t be imitated from the real world but most of these obvious things can:</p><ul><li>Log in campfire doesn’t burn but gets pushed out</li><li>Interactive candle next to non-interactive candle</li><li>Ringing the bell by throwing objects at it is not excepted in quest only shooting</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/0*qJA3hRcyvDBzCIdT.jpg" /><figcaption>Interactive and non-interactive candle next to each other</figcaption></figure><p><strong>– Auto height change: </strong>When you are walking around and the terrain changes beneath you the game changes the camera height to keep a constant distance from the ground. This may sound like a good idea but a lot of people get sick from this very quickly. This is caused by the difference between what your body feels and what your eyes see.</p><p>With the recent patch most of the issues were resolved but walking up the stairs will still get you nauseous. The height change is simply too large while you are walking on a flat floor.</p><h3><a href="http://store.steampowered.com/app/450390">The Lab</a> (free)</h3><p>This is kind of an official tutorial for the headset by Valve. It contains 8 minigames exploring different aspects of VR. All of them is very high quality so I’ll only talk about the most interesting ones.</p><p><strong>+ Scale:</strong> From the outside I thought these rooms were bigger but when I tried them out I was amazed how small they were compared to my expectations and it felt a lot better. It is important to test and develop everything in the headset even if it looks right on the monitor.</p><p><strong>+ eSport:</strong> These two rooms require a lot of movement which can be considered real eSport in a way. This is welcome since most of the gamers don’t move enough. As a result you will start to sweat pretty soon which can ruin the gaming experience. I recommend using a strong fan directed at the game space which will help you orient in the room too.</p><p><strong>+ Directing attention:</strong> At the first part of this demo you have to find different objects in the room and interact with them. The game will wait for you and the big lamp hanging from the ceiling will point you to the right direction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*rX6CRPNJ9Klm9UBk.jpg" /><figcaption>Transferring attention with light</figcaption></figure><p><strong>– Directing attention: </strong>At the end however you only have a couple of seconds to look around the room and figure out what to look at. As a result most of the players miss out on the ending including sometimes myself after playing it a dozen times. Here the light doesn’t help because it disappears almost instantly. A good solution would be to only start this “cutscene” when the player faces the correct wall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*dVPObTNILsgK3ob-.jpg" /><figcaption>Directing attention is slow</figcaption></figure><p><strong>+ Navigation:</strong> The teleportation is disabled on slopes and the camera height stays constant even when you walk to higher or lower areas in-game. This is usually not very distracting for small terrain differences. In addition I would add a feature when this difference exceeds a threshold the player would be automatically teleported to the new altitude.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*pb5HcClZDqzd5szW.jpg" /><figcaption>Teleport is disabled on slopes</figcaption></figure><p>The problem is with smooth motions, slow but sudden changes when the view fades into black and then the new location is working fine just like the teleport in the lab or the “blink” in <em>The Gallery</em>.</p><h3><a href="http://store.steampowered.com/app/446750">Portal Stories: VR</a> (free mod)</h3><p><strong>+ Physical dimension:</strong> The glass panes are so high that they only cover the legs but when you crouch the turrets can’t shoot you. This is a different kind of movement which is evident in the real world but here we have to figure it out ourselves which adds another level of realism.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*LJrq5n2VKNrqSh__.jpg" /><figcaption>Physical cover from bullets</figcaption></figure><p><strong>+ Teleporting:</strong> In this game teleportation is a game mechanics. You get two devices which strongly resemble the controllers but look a lot better. With one you can teleport yourself around and with the other you can grab objects. While it is a good method for this game it would be boring to see this technique in every game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*07lkhbM5FNxdJ7ru.jpg" /><figcaption>Teleport and Pickup Tools</figcaption></figure><p><strong>+ Elevator ride: </strong>As opposed to stairs, elevator rides are working without a problem. Provided that there is a fix frame at the edges of the screen which the player can look at during the ride. A possible explanation is that since our vertical motion as human beings is limited the brain didn’t develop enough to sense vertical motion as precisely as horizontal motion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RJ7-iF5FHgAnpTWd.jpg" /><figcaption>Elevator ride</figcaption></figure><p>My big question is whether ladders are working and if so how to implement them.</p><p><strong>– No collision:</strong> Because you can simply walk through walls you don’t even need to solve any tests to beat the game.</p><h3><a href="http://store.steampowered.com/app/407060/">AltspaceVR </a>(free)</h3><p><strong>– In-game 2D UI: </strong>For dynamic content like a server list 2D UI is a good choice especially when it’s projected on a 3D surface: In the <em>Welcome Space</em> there is a table on the wall with similar information. The execution however is poor. The buttons themselves are not small but when you point at them they rarely get triggered making it extremely frustrating to use.</p><p><strong>– Movement: </strong>My first thought was when I saw the controllers is how easy walking could be implemented. Just use the touchpads to move around. It may be that easy on a <em>Cardboard</em> but definitely not on the Vive with <em>Roomscale</em>. It feels as if you are sliding while you are standing still and you just want to teleport instead and never try this again. This is a similar problem to walking up a slope I talked about earlier.</p><p><strong>+ Social platform:</strong> This is an international meeting place. My favourite moment is when a guy from France and a girl from Japan were talking to each other in Japanese. It is not only good for practicing languages but also to meet different people from all around the world. You can walk around freely and feel the other people’s presence but not in an overwhelming way. You can use hand and head gestures which make it a lot more interesting than a chat conversation. Imagine the possibilities of an online co-op game or a VRMMORPG (SAO) …</p><h3><a href="http://store.steampowered.com/app/381940/">Trials on Tatooine</a> (free)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*zvU4EiaHXQJXruG2.jpg" /></figure><p>This is a short experiment where you can “Repair the Millennium Falcon, defend it from attack by Imperial Stormtroopers, and wield a LIGHTSABER”. This leaves a big impression because it’s Star Wars otherwise it’s too short.</p><p><strong>+ Lightsaber:</strong> The lightsaber is really well made, when you swing it you feel as if it was the real thing. This is achieved with the combination of sound and force feedback.</p><p><strong>+ Scale:</strong> When the Millenium Falcon lands in front of you, you start taking steps back because you are afraid it would crush you. The fact that a Virtual Reality experience makes you feel things like this (physical danger) is astonishing.</p><p><strong>– Not much to do:</strong> This experiment is more like an interactive movie than a game, which is generally not a bad thing. But in this case you are restricted in what you can do. There is a big map in front of you and you can’t explore it.</p><h3>Summary</h3><ul><li>Hands instead of controllers</li><li>Interaction with objects is important</li><li>Persistent bounds and center mark can be useful but might be distracting for some</li><li>Prevent players from going through walls</li><li>Avoid 2D interfaces where possible and use 3D scenes and objects instead</li><li>No auto height adjustment</li><li>No walking with touchpads</li><li>Elevator rides are working when there is a static frame to look at</li><li>Only start cutscenes when the players are guaranteed to be looking</li></ul><p><em>Originally published at </em><a href="http://dawars.me/design-solutions-htc-vive/"><em>dawars.me</em></a><em> on August 6, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc5faba56f1f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dawars00/a-design-overview-of-vr-titles-bc5faba56f1f">A Design Overview of VR Titles</a> was originally published in <a href="https://medium.com/dawars00">Dawars00</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Liquid Blobs with Voxelized Marching Cubes in Minecraft]]></title>
            <link>https://medium.com/dawars00/liquid-blobs-with-voxelized-marching-cubes-in-minecraft-4d927c86ef63?source=rss-d0bfcd05da7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d927c86ef63</guid>
            <category><![CDATA[metaballs]]></category>
            <category><![CDATA[rendering]]></category>
            <category><![CDATA[marching-cubes]]></category>
            <category><![CDATA[computer-graphics]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Dávid Komorowicz]]></dc:creator>
            <pubDate>Wed, 05 Nov 2014 17:57:34 GMT</pubDate>
            <atom:updated>2017-12-02T14:12:59.928Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*90oyQSOn9ftKJmvr.png" /></figure><p>Nowadays every good tech/magic mod needs a form of liquid storage. As a result they look and behave very similarly. Our mod (<a href="http://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/1292336-crafting-pillars-mod-multiplayer-fix">Crafting Pillars</a>) is visually driven, hence I wanted to re-invent the way a Liquid Tank looks in-game while retaining the same functionality.</p><h3>The Idea</h3><p>Inspiration came from Portal 2 which I was playing at the time. The gels floating in the air form blobs which connect and get separated as they move relative to each other. This fitted the theme perfectly: an ancient, science fiction mod, building from stone but with technology that can compress even liquids.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iXG4-VV6L_ZLu5rD.jpg" /><figcaption>Gel from Portal 2</figcaption></figure><p>To fit this into the world of Minecraft however, I had to make some changes. Minecraft is made up of Cubes and round objects are usually not welcomed.</p><h3>Theory</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/0*_aH293RiHmHy5bBB.png" /><figcaption>[1] Metaballs</figcaption></figure><p>These liquid blobs are called <a href="https://en.wikipedia.org/wiki/Metaballs">metaballs</a> and I will explain how they work.</p><p>We usually use an analogy from physics so that’s what I’m going to do. (Don’t worry, learn physics instead😉)</p><p>Imagine placing <em>electrical</em> <em>charges</em> into space. They will be at the center of our blobs. Now we have to compute the <em>electric field strength</em> at every point in our space.</p><p>To get the surface of the metaballs, we must choose a threshold value. We want our surface to contain every point in space where the <em>field strength</em> is equal to our threshold. (this is called an isosurface).</p><p>Mathematically speaking</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/0*drfDYIX-xMmXPCPQ." /></figure><p>where <em>m</em> is the number of charges/blobs,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/0*Ds9ImMCnhEC-i-rN." /></figure><p>computes the strength of the i-th charge at the location (x, y, z) and <em>threshold</em> is an arbitrary value we choose.</p><p>The strength of a charge is inversely proportional to the square of the distance. In other words it decreases as we move further away.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/0*gNZezGgHXeCWAm65." /></figure><p>where (xi, yi, zi) is the position of the i-th charge</p><p>Hint: It might be interesting to play around with this function and see how the surface changes. Also try out a few different threshold values and see what works best.</p><p>Notice, that as the charges get closer together they start to connect and then completely merge as shown in image [1].</p><h3>Marching Cubes Algorithm</h3><p>Now that we have the <em>equation</em> for our surface we have to somehow display it.</p><p>In computer graphics we usually don’t render every point of a surface, but rather approximate it with triangles. Furthermore we don’t render the inside of objects, only the surface.</p><p>We divide our space into cubes along a grid and only calculate the field strengths at the grid points. We then search for the surface the following way.</p><p>For each grid cell we check if the surface is going through it. The idea is to check the corner vertices whether they are on the opposite side of the surface. For example if one vertex is inside the surface and an adjacent vertex is outside, we know that the surface must cut the edge between these two vertices so we put some triangles there.</p><p>The <a href="http://paulbourke.net/geometry/polygonise/">original algorithm</a> is using a look up table for each way the surface can intersect with our grid cell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*jMSH0_54NZF0vani.png" /><figcaption>Look Up Table for Marching Cubes</figcaption></figure><p>Our case is much simpler though so I won’t go into more details. There is a very good explanation <a href="http://www.cs.carleton.edu/cs_comps/0405/shape/marching_cubes.html">here</a> with visual illustrations.</p><h3>Voxelized Algorithm</h3><p>We want the surface to always align to the grid (Axis Aligned), making a nice minecraft-y look.</p><p>I created a <a href="https://github.com/Dawars/CraftingPillars/blob/1.10.2/src/main/java/me/dawars/craftingpillars/client/render/Blobs.java">Blobs</a> class to store the location, strength and velocity of the <em>charges </em>and functions to calculate the field strength.</p><p>Next comes rendering.</p><p>First we iterate through each grid point and check if it is inside a blob. If it is we <em>may</em> have to render the side of the blob. Imagine being at the centre of the blob, the neighbouring cells are still inside so we don’t need sides there. If we need to render a side we simply render a quad from 2 triangles.</p><p>Here is the simplified code from the <a href="https://github.com/Dawars/CraftingPillars/blob/1.10.2/src/main/java/me/dawars/craftingpillars/client/render/TESRTankPillar.java">TileEntityRenderer</a>:</p><pre>Tessellator tess = Tessellator.getInstance(); VertexBuffer buffer = tess.getBuffer(); buffer.setTranslation(x, y, z); buffer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX); final float THRESHOLD = 1; float[][][] field = Blobs.fieldStrength(te.getBlobs()); for (int i = 0; i &lt; 16; i++) for (int j = 0; j &lt; 16; j++) for (int k = 0; k &lt; 16; k++) if (field[i][j][k] &gt;= THRESHOLD) { // Cell is in the blob if (j == 15 || field[i][j + 1][k] &lt; THRESHOLD) { // neighbour is outside (or at space bound</pre><h3>Animation</h3><p>As a last step we need to animate the blobs. I store a list of blobs in the TileEntity class of the Tank.</p><p>In every tick/update I call the update function in the Blobs class for every charge.</p><p>This checks if a charge (centre of a blob) is colliding with the sides of our space. We will simulate perfectly elastic collisions, so we just need to multiply the respective velocity coordinate with -1.</p><p>After that we update the position of the charge with its speed.</p><h3>Here are the code snippets together:</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c0c723ff10d5ad3871bb9ba507fd130/href">https://medium.com/media/5c0c723ff10d5ad3871bb9ba507fd130/href</a></iframe><h3>Final Words</h3><p>That’s it, you’ve made it through!</p><p>I hope you found this useful and learnt something.</p><p><em>Originally published at </em><a href="https://dawars.me/liquid-blobs-voxelized-marching-cubes-minecraft/"><em>dawars.me</em></a><em> on November 5, 2014.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d927c86ef63" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dawars00/liquid-blobs-with-voxelized-marching-cubes-in-minecraft-4d927c86ef63">Liquid Blobs with Voxelized Marching Cubes in Minecraft</a> was originally published in <a href="https://medium.com/dawars00">Dawars00</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>