<?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 Diego Aguirre on Medium]]></title>
        <description><![CDATA[Stories by Diego Aguirre on Medium]]></description>
        <link>https://medium.com/@diegousdz?source=rss-b5f3b41c5b01------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*m70WdpvI3ub0uL7BVHxdSQ.png</url>
            <title>Stories by Diego Aguirre on Medium</title>
            <link>https://medium.com/@diegousdz?source=rss-b5f3b41c5b01------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 16:57:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@diegousdz/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[How to install developer apps in the Apple Vision Pro]]></title>
            <link>https://diegousdz.medium.com/how-to-install-developer-apps-in-the-apple-vision-pro-d36c4a510d06?source=rss-b5f3b41c5b01------2</link>
            <guid isPermaLink="false">https://medium.com/p/d36c4a510d06</guid>
            <category><![CDATA[applevisionprodevelopment]]></category>
            <category><![CDATA[xrdevelopment]]></category>
            <category><![CDATA[apple-vision-pro]]></category>
            <category><![CDATA[visionos]]></category>
            <category><![CDATA[avp]]></category>
            <dc:creator><![CDATA[Diego Aguirre]]></dc:creator>
            <pubDate>Thu, 11 Jul 2024 17:19:22 GMT</pubDate>
            <atom:updated>2024-07-11T17:19:22.514Z</atom:updated>
            <content:encoded><![CDATA[<p>A comprehensive guide with tips and insights</p><figure><img alt="A person sitting in a couch wearing a snowboard like glasses named Apple Vision Pro. In the background a Painting with pattern of yellow and orange." src="https://cdn-images-1.medium.com/max/1024/1*0Uot3bxYDfp6_de-Hc6q0g.png" /><figcaption>Diego Aguirre using the Apple Vision Pro — 25 May 2024</figcaption></figure><p>This article is dedicated to the community and made by the community<br>in an effort to democratize knowledge about Apple Vision Pro headset.</p><p><strong>Research &amp; Development made by Gabriel Bracamonte and Diego Aguirre<br>Written by Diego Aguirre</strong></p><p>First of all, I want to thank Gabriel, for being such an amazing partner in this adventure, I’m beyond grateful for this experience that I was eager to in one point of my life test. I was hoping this could happen in my next trip, but opportunity arrived sooner than expected.</p><p>So, this article would have not been possible without the help and co-participation of Gabriel. Who at this time is an expert using the headset.</p><h3><strong>Brief intro</strong></h3><p>The Apple Vision Pro requires an iCloud account, and it&#39;s adjusted to the pupil&#39;s level of the owner. In order to use the headset of another person, the new user needs to go to settings, and re calibrate the pupils because the pupils lead the focus of the app.</p><p>This was not intuitive at all, I tried using the headset with Gabriel configuration and it didn&#39;t work the app opening because I had to look at the apps and click with the hand gesture, but because it wasn&#39;t configured to me, it was almost impossible to achieve this, losing more than 2 min trying to open the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GJG6om5UBbKGbVyA5r7IeA.png" /></figure><p>After calibration with my pupils&#39; levels, the apps when I saw them, got the focus right away, and the gesture did open the app, faster than before, but I still had to get used to it. I came from a background of using the Meta Quest 3, and the apps open hyper fast.</p><p>This concept of opening the app with eye pointing + hand gesture was tricky for me, this process would have taken too much time if I had not the help of him. Gabriel for being such an amazing partner and kindly introduced me to the headset.</p><p>My thoughts are that you need to reserve an appointment to use the headset, because probably you will need help getting started and used to move around the headset. Is not like you can grab it and use it right away, <br>like when using a Meta Quest or Htc Vive. The headset is for owner use only</p><h3>History of the headset</h3><p>Installing an app on the Apple Vision Pro (AVP) is straightforward now that we have connected all the dots. Before diving into the process, I’d like to provide some context to help you understand the capabilities of the hardware you are developing for.</p><p>Apple Vision Pro is based on a series of Patents Granted since about 2007 and perhaps a little bit back, where the multiple patents combine into a piece of hardware. Partnership with key brands allowed Apple to produce the final product we now know as Apple Vision pro, that now I’m going to name as (AVP).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fj8CLRQTHXUaA9Sn1EHArg.png" /><figcaption>The patent from 2007 I&#39;m referring to</figcaption></figure><p>AVP requires a series of tools to develop for the device, in order to deploy (install) an app into the operating system called VisionOS, you must have a Mac that is M1 or M2 or M3 and the Newers version up to come. <br>These computers run MacOS and have 1 chip made by Apple. Intel computers cannot deploy from my understanding into the VisionOS.</p><p><strong>FunFunct:</strong> at first, I thought, wow I will be able to run Xcode in the headset since apple named this device Spatial Computer in all their ads, and is marketed not as a VR headset, or Mixed Reality headset but as Spatial Computer. But later I found out, as strange it sounds, no, Xcode App, only can run in a MacOS, so yes you will definitely need a M1 computer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FzLThGLm-6IsizRS6750wA.png" /></figure><p>I don&#39;t refer to MacBook Pro or MacBook Air naming the model, because what matters to understand is the type of operating systems and the <strong>requirements for installing apps in the Apple Vision Pro</strong>.</p><h3>The Patents</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*MSDiXXmaQlO_K4ttWY6k0Q.png" /></figure><p>First of all, I want to thank a special account that was key for following the last Apple updates, in terms of Patents. What matters from to understand what the device is. My understanding is that you can not only rely on what Apple is publishing in the now, to understand what Apple development in terms of technology has been you have to see the patents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*pXYK6pXZFfjBIW5eQrWTxQ.png" /></figure><p>Why the patents? The companies develop technology ad a fast rhythm yet in order to launch a new technology it need to be developed and patented. So, the company have the grant others won&#39;t sued or the company can sue others if they infringe the patents.</p><p>The timeframe usually is about 2 years the last I heard, I&#39;m not an expert but let&#39;s suppose the whole process takes between 1 year or 1 year and a half, to 2 years. That timeframe, if we see it as a company that is developing a new technology inside yet releasing technology at a different rate. We can then realize that companies like Apple, Meta, HTC, etc, first research and develop then patent the idea and finally and only when patent is granted, the start to build the product and they are ready to release. Perhaps I might be drifting in the fine details.</p><p>So, taking the timeframe of 2 years about we can understand that the multiple components need it, and the materials for creating the technology required patents and partnerships in order to be something real. Now referring to the AVP, if you start seeing to the patents and check the date you can deduce when about will be the next time you will see the Patent, but with big companies I think the process might speed up, and the time exactly is not really clear to be able to deduce.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*X-uxmxplFhbVvGI_0IWGCQ.png" /></figure><p>The first patent I saw was the one of the conotour that is the container of the visor, the aluminum part, but way more time before, there of course where others that combine the multiple parts of the patens into a draw or render that gave all a sense of how might be the final shape of the first Mixed / Virtual / Augmented Reality headset that Apple that by the surprise of many, the refer to as a Spatial Computer.</p><p>Here is a fun fact, before VisionOS the operating system of the Apple Vision Pro was released, in the code / docs in some parts the OS was refer to as xrOS and right before launch Apple rename it as a VisionOS.</p><p>Before AVP was launch I was waiting to know what the device will do, with all the power of the chips designed by Apple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*jWhmNvAknDXbH3WMpZODEw.png" /></figure><p>And my interest was focused in understand what type of the device they will release since I saw all random Patents that now connect as a final product. How they present the product, how they name the product public, how they name it in the docs and in the code allowed me to understand the intention of the device how Apple it was marketed.</p><p>Let&#39;s go back to the First High-end — Spatial Computer I saw, wear and develop for, The Hololens 1. This device was marketed as an enterprise product, not for consumers. The price was 3500 USD. Coincidentally the same price of the Apple Vision Pro.</p><p>Apple has not referred this to an enterprise product and has focus the video Ads to market as an indoor use device. That allows you to see content anchored to space. The Apple Vision Pro has the capability of reproducing a type of content that is only captured by iPhones 15 Pro Max and newer Generations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0-ZR0SGmkO2_vx2QpcC0cw.png" /></figure><p>The iPhones 15 Pro Max record videos that can later be reproduced as 3D. The system works as recording a Left / Right lens and Lidar, that later when reproduced form the Apple Vision Pro seem like you see a portal and after inside you see the content in 3D, reproduced as a sequence. The end result when reproduced from Apple Vision Pro, seems different from 2D videos.</p><p>From what they have been patenting and what the patents show in terms of design is that as any other Apple product, your existing Apple Product seemly integrate with to other previously compatible product the user owns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*AYvb7xpTPAx1y1KSi7YXNQ.png" /></figure><p>AVP integrates with Content made with iPhone 15 Pro Max recorded in this special mode (here is how), and with you Mac Computer. AVP behaves as a computer</p><p>I’ve seen users extend the mac computer into another screen you can see in the AVP, but the feature we tested was screen share from AVP to iPad and to Mac OS. Seeing the what the user sees without cables felt impressed, because there was essentially no lag in a near distance and in a small space like an indoor space.</p><p>Is Unknow at the moment how the AVP connects to user Apple Watch. All this being said, I think we have enough context to understand what type of device we are developing for.</p><h3><strong>Step-by-Step Guide to deploy your App</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*peqS8P8vxBvmEZ7agKP5UA.jpeg" /><figcaption>The Project targeting the Apple Vision Pro and successful install your app is the target result of this guide</figcaption></figure><p>These are the requirements for</p><ul><li>M1 M2 or M3 Mac with chips type computer</li><li>MacOS Sonoma</li><li>VisionOS 1.1</li><li>Xcode Beta 12.4</li><li>iCloud or Apple Developer Account</li></ul><p>Installing an App in the Apple Vision Pro is similar to the process in iphone or ipad. But there are 2 key things that radical change.</p><ol><li>Pairing device using cables. This isn&#39;t the case for the Apple Vision Pro,<br>The only 2 things you need to install this is a <strong>computer </strong>and the <strong>headset.</strong></li><li>Installing apps using cables. This isn’t the case for the Apple Vision Pro,<br>You need to pair your device and target the device just like doing it with the simulator.</li></ol><p>First let&#39;s get the files for the Xcode in the M1 computer, make sure to have at least 50% of charge or your computer charged, for this part you won&#39;t need the AVP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*NF3aA5gR7n0x7H3riq9cdg.png" /></figure><p>here is the link to all the installers where to search for the Xcode Beta<br><a href="https://developer.apple.com/download/all/">More — Downloads — Apple Developer</a></p><p>If you don&#39;t have a developer account, please create one, you will find the link in the link before at the bottom.</p><p>I found some errors while after installing our app in the VisionOS with Xcode Beta 12.2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*5KfGh23f0cxKa07JmdpNsQ.png" /></figure><p>To avoid these errors, we recommend using the version Xcode Beta 12.4, as <a href="https://medium.com/u/2a1c2fdd524b">Yasuhito Nagatomo</a> suggested, who was very kind to point out in the right direction and was the last piece to resolve the app working.</p><p>After Xcode is installed, isn&#39;t required but is good idea to restart the computer. This will ensure all the changes are permanent.</p><p>Once the computer restarted if you did this step, just Open Xcode, you will see something like this:</p><p><strong>Create a new project</strong></p><p>In the search of creating a new project for a Vision Pro since it was my and our first time doing so, we followed the following video. Thanks God, YouTube exist and other developers and tech influencers and sharing how to do it. Here is the link : <a href="https://www.youtube.com/watch?v=_xfZIr5sDLw&amp;t=313s">I built an Apple Vision Pro app… visionOS tutorial</a></p><p><em>Tip: instruction starts at Minute</em><strong><em> 3:54 to 4:20</em></strong></p><p>Sadly, all the YouTube videos I found out there, all were deploying the app in the simulator, and the process isn&#39;t the same for installing on device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*KE-y8s2vsK34GRVLy3xr0Q.png" /></figure><p><strong>Product Name:</strong> choose the app Name and it&#39;s recommended that the text doesn&#39;t include spaces and that isn&#39;t very long. This will be the app Name</p><p><strong>Team: </strong>if you click the Add Account it will link you iCloud account, again, not need it of paid apple developer account.</p><p><strong>Organization Identifier:</strong> this would be com.CompanyName in my case is my iCloud name so after choosing the team or not, I put com.DiegoAguirre <br>This would be the name of your iCloud name. unless you are a company, just put your name and last name and make sure the first word if Name and Last Name are capital Letter.</p><p><strong>Initial Scene:</strong> I leave it as Window, since we will not be adding 3d objects</p><p><strong>Immersive Space Render:</strong> leave it as RealityKit</p><p><strong>Immersive Space:</strong> leave it as Full</p><p><strong>Include Test: </strong>Toggle off, we don&#39;t need to generate test cases since we are going to test it ourselves</p><p>If you want to know more information, check the links bellow</p><p><em>-</em><a href="https://developer.apple.com/documentation/visionos/creating-your-first-visionos-app"><em>Initial Scene</em></a><em><br>-</em><a href="https://www.wwdcnotes.com/notes/wwdc23/10203/"><em>Immersive Spaces</em></a></p><p>Click <strong>continue </strong>when you are ready and wait for the project to load.</p><p>Have you ever installed a mobile app before? No? Then read ahead:<br>When you are developing software on of the first things you need to know is what OS version the device you are targeting has. This is becase, apps contain certain architecture that only works on certain OS.</p><p>Same happens with Android apps, if you make an android app for Android 19 but the device runs android 25. Your app target OS version doesn&#39;t match your target device OS version. So, it&#39;s essential to know what version of OS you are targeting in order to configure it and successfully install it.</p><p>— <br>Once the project loaded, we are going to target the same version of the OS we have on the Apple Vision Pro in our Xcode Project targeting app.</p><p>These is 2 steps</p><ol><li>Finding the OS version on the AVP: To do so, put the headset, go to Settings search General then find About and software update or software version will show you the current OS software version you can now take the headset off and go back to Xcode.</li><li>Targeting the OS Version to make the build: To do so, On the top left corner select the project name, click under the project, then click on Build Settings on the center and then on the Info tab. Finally, under Deployment Target set the VisionOS you have in your Apple Vision Pro</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W4x9QxKD5Qlxr8lcY67CIg.png" /></figure><p><strong>Pairing the device to the computer</strong></p><p>In Xcode on the top left, we need to select or project, this will open a set of options in the center of Xcode where we will find Signing and Capabilities, click in there. In there you will find an option called Target Version, set that version to the one from the AVP.</p><p>then at the top part of Xcode should find the play button to compile and install the app.</p><p>Article used to understand the pairing mode.<br><a href="https://forums.developer.apple.com/forums/thread/746464">https://forums.developer.apple.com/forums/thread/746464</a></p><p><strong>On the Apple Vision Pro</strong></p><p>you will need to have the headset turned on and also the computer turned on, computer and computer should be in the same wifi network.</p><p>Once you have the headset on, if is the first time using the headset</p><p><strong>Steps to Reproduce</strong></p><p>0. configure the eyes and hands, save the profile</p><ol><li>Click the Crow to access the menu where the settings are</li><li>Click the settings menu, go to Privacy and Security</li></ol><p>3. Once the app is installed, you will see depending on the profile you set if you can open the app or not</p><p>4. once the installation is ready you need to trust the developer account, you do this by going to <strong>General </strong>then go to<strong> VPN &amp; developer</strong>, then trust the app</p><p>5. Then the app will open, and you are ready to test and that would be the end of the process to install the app</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n2KSdRYev-XyoHzzDK6gBw.png" /></figure><p>Final notes: the tools need it to develop for the Apple Vision Pro is a M1 or M series computer. I recommend the M1 for getting started, it was the computer I used and was more than enough to install.</p><p>When grabbing the headset always grab the headset from the glass and not the foam inside since the foam is magnetically attached and will lead to making the headset fall if grabbed from that area. Always grab the headset from the glass or from the back part.</p><p>Will all this I think you are ready to go, and anyone without prior experience should be ready to install apps into the #AppleVisionPro</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rt3ywZSR0uBxwRCMniaubA.png" /><figcaption>Diego (left) with Santiago (middle) explaining the AVP to a colleague (right) at ERKS offices.</figcaption></figure><p>Credits to <a href="https://www.linkedin.com/in/gabrielbracamontemoreno/">Gabriel Bracamonte</a> who was key &amp; the person who first introduced me to the headset and help me with the onboard of the headset. From the bottom of my heart, thank you.</p><p>And a big thank you to <a href="https://www.linkedin.com/in/santiago-bra%C3%B1a-figueroa/">Santiago Braña</a>, from <a href="https://erks.io/">ERKS</a> for hosting the space to meet more about the headset and improve this guide and finish it. Without the collaboration of Gabriel and ERKS team, this guide would have not been possible.</p><p>When looking forward into the future, we hope this guide helps others to get started and develop faster with Apple Vision Pro. This article is for the community and by the community of XR Developers and creators.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d36c4a510d06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn to program C by making Gameboy Color Games — compiling]]></title>
            <link>https://diegousdz.medium.com/learn-to-program-c-by-making-gameboy-color-games-compiling-4432d5038b4d?source=rss-b5f3b41c5b01------2</link>
            <guid isPermaLink="false">https://medium.com/p/4432d5038b4d</guid>
            <category><![CDATA[retro]]></category>
            <category><![CDATA[adventure]]></category>
            <category><![CDATA[game-boy-color]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[c-programming]]></category>
            <dc:creator><![CDATA[Diego Aguirre]]></dc:creator>
            <pubDate>Mon, 22 Jan 2024 11:01:22 GMT</pubDate>
            <atom:updated>2024-01-22T11:01:22.088Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learn to program C by making Gameboy Color Games — compiling</h3><h4>Personal learnings while coding C in a Mac environment</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c4dDkC_3NX_oECUhvFRdPQ.png" /><figcaption>An adventurous on a quest, representing the journey of learning programming — created with chatGPT</figcaption></figure><p>At the age of 31, I have chosen to learn a new programming language that I believe could help in my career as a game developer. This decision stems from the need to create C++ programs for work and my personal quest to become a better programmer.</p><p>As I write this from the comfort of my home in Argentina, I hope this information help others who are interested in learning C or in making Game Boy games.</p><p>My background is in computer animation filmmaking, but I decided to make a significant life choice to learn a computer programming language and a game engine to invest in my skills better.</p><p>Now, I am eager to learn a low-level language. I’m curious about the rendering process behind video games, but primarily, I’m fascinated by how complex software can be created from a simple language. It is this curiosity that drives my desire to learn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bSAHtZ_tuihfF3_jr8AekQ.png" /><figcaption>an screenshot of a code I wrote in C for Game Boy Color 1 year ago — by Diego Aguirre</figcaption></figure><p><em>A lesson learned — “Everything you don’t practice, will be easly forgotten.”</em></p><p>This article is all about that lesson, so I have a guide for the future and so others can benefit from this information if anyone is interested.</p><h3>Downloading components to develop and compile</h3><p>To develop for the Gameboy or Gameboy Color these days you can use certain tools that do the work for you and make your life easier but I choose to develop with plain C.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*DAYakML7zw-flj1_RCDI2w.png" /><figcaption>folder structure inside the GBDK zip file</figcaption></figure><p>First, download the Game Boy Developer Kit (GBDK) from this GitHub👇<br> <a href="https://github.com/gbdk-2020/gbdk-2020">https://github.com/gbdk-2020/gbdk-2020</a> it will download a zip folder that need to be decompress.</p><p>Here is an overview of the folders and files:</p><ul><li><strong>bin: </strong>Contains executable binaries, including the lcc compiler which you&#39;ll use to compile your Game Boy programs.</li><li><strong>examples: </strong>Usually has example projects and code that you can study and compile to understand how GBDK works.</li><li><strong>include: </strong>Contains the header files for the GBDK libraries. These files provide declarations for functions and constants that you can use in your Game Boy programs.</li><li><strong>lib: </strong>This directory holds the library files. These are pre-compiled pieces of code that get linked into your program during the compilation process, providing implementations for the functions declared in the include files.</li><li><strong>libexec:</strong> May contain helper programs used by GBDK during the build process.</li><li><strong>licenses: </strong>Contains licensing information for GBDK.</li><li><strong>README: </strong>A text file with basic information about GBDK, which might include installation instructions or general guidance.</li><li><strong>gbdk_manual.pdf </strong>and asmlnk_manual.txt: These are documentation files. The GBDK manual (PDF) is particularly important as it provides comprehensive information on how to use GBDK.</li><li><strong>sdccman.pdf:</strong> The manual for SDCC (Small Device C Compiler), the compiler that GBDK’s lcc front-end uses.</li></ul><p>To compile a program, you would write your code in a .c file and then use the lcc compiler found in the bin directory to compile your code into a Game Boy ROM.</p><p>To compile a file to run on the gb, you will need to open the mac terminal.<br>then write cd then a space then drag and drop the folder that contains the files to compile in my case this was the route /Users/diegoaguirre/Downloads/gbdk\ 2024/examples/ap/galaxy</p><p>you hit enter and nothing should happen, but you will be at the folder. Then you need to write this</p><p>/Users/diegoaguirre/Downloads/gbdk\ 2024/bin/lcc -o gameGalaxy.gb galaxy.c</p><p>what you will do is go to the GBDK folder, then go to the bin folder, then select the file lcc, and drag and drop it on the terminal.</p><p>you will write -o , followed by the file name in my case I choosed gameGalaxy.gb but honestly can be anything, just make sure to include the file extension.</p><p>finally you write the name of the c file you want to compile. If the compilation is successful, you should see a new file named gameGalaxy.gb in your project directory.</p><p>The command I’ve posted is for compiling a C source file for the Game Boy using the `lcc` compiler from the Game Boy Development Kit (GBDK). Let’s break it down:</p><p>- `/Users/diegoaguirre/Downloads/gbdk\ 2024/bin/lcc`: <br> — This is the full path to the `lcc` compiler executable that’s included with GBDK.<br> — `/Users/diegoaguirre/Downloads/gbdk 2024` is the directory where GBDK is located on your system.<br> — The `\` character is an escape character used in the shell to denote that the following space is part of the path and not a separator between command arguments.<br> — `/bin/lcc` is the path to the actual `lcc` compiler executable within the GBDK directory.</p><p>- `-o gameGalaxy.gb`: <br> — The `-o` option specifies the output file name for the compiled program. In this case, `gameGalaxy.gb` will be the name of the Game Boy ROM file generated by the compiler.</p><p>- `galaxy.c`: <br> — This is the name of the C source file that you are compiling. It should contain the code for your Game Boy game.</p><p>So, when you run this command in the Terminal, `lcc` will compile the `galaxy.c` file and produce an output ROM file called `gameGalaxy.gb`. This ROM file is what you would load onto a Game Boy emulator to test, or onto a flash cartridge to play on actual Game Boy hardware.</p><p>This would be it for this first article about how to compile and make files that can be used inside the game console.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4432d5038b4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Firebase Real Time Database in 8thwall]]></title>
            <link>https://diegousdz.medium.com/using-firebase-real-time-database-in-8thwall-40094d5116fe?source=rss-b5f3b41c5b01------2</link>
            <guid isPermaLink="false">https://medium.com/p/40094d5116fe</guid>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <dc:creator><![CDATA[Diego Aguirre]]></dc:creator>
            <pubDate>Wed, 25 Oct 2023 13:34:50 GMT</pubDate>
            <atom:updated>2023-10-25T13:34:50.110Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AvQpvW7r1OAGWIwkh8e2aQ.png" /></figure><blockquote>The Firebase Realtime Database Module is a modularized piece of code that allows developers to integrate backend communications into a 8thwall project</blockquote><h3><strong>HOW TO INTEGRATE A MODULE</strong></h3><p>General explanation about how to integrate modules <a href="https://www.8thwall.com/docs/guides/modules/importing-cloud-editor/">check here</a></p><p>Before starting learning how to connect this module, I want to provide context of how I build this <a href="https://www.8thwall.com/diegousdz/modules/firebase-realtime-database">Module</a>.</p><p>If you don&#39;t know what a module is, <a href="https://www.8thwall.com/blog/post/89540744369/introducing-8th-wall-modules">check this</a></p><p>The context of this module was that I was looking to modularize a piece of code that would be useful for the 8thwall community during the Modules Challenge. With this idea in mind, I went with the choice of <em>build a thing to build things.</em></p><p>Like a hammer, a tool super simple that can help you create things. In this sense I wanted to look for simplicity and for a code that would provide enough value for the community to use it.</p><p>I decided to go with Firebase Real Time Database since I have prior experience building apps with it, mostly CRUD. I thought maybe developers could benift with the realtime data transmition, for making things like leaderboards, chats, inventory systems, logins, etc.</p><p>I didnt wanted to reinvent the wheel and creating something form scratch. <br>So I decided to go with the <a href="https://firebase.google.com/docs/reference/rest/database">web API</a>. At the time I was building about this, the end goal was to control AR realtime with an interface inside the 8thwall project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*XGNHNvMfMMfXJabZpk4K0w.png" /><figcaption>Image Target for the project of UnitCode</figcaption></figure><h3>Where to start?</h3><p>First you should have a firebase project created. You can create a project with a gmail account for free. Using firebase is free until you reach a certain level of consumption. No worries, no need to put your credit card.</p><p>Go to <a href="http://console.firebase.google.com/">http://console.firebase.google.com</a> website and then you will find something like this 👇 Once you log-in, click in the the “Add project” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nSqx5_eIbcujFVBnXV2-aA.png" /></figure><p>A popup like this 👇 will show up. Choose a project name, note that you wont be able to change this later. And project ID will contain this, also the anything related to your project will contain the project name in some part.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rp9DRLp14plwNeQLuB3nYw.png" /></figure><p>Second part is Analytics, I suggest you to enable it by default it will later allow you to track your data. Like where users are accessing, retention and insights about your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yUnrRY6A1qKI7800SOe9jA.png" /></figure><p>By default you will see your firebase project if you dont see nothing then create a new account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I9Wh90NL4lgZEabTQMMv1w.png" /></figure><p>My process of learning this took me about 4 years to be able to fully understand the potential, The process of learning for me has never been linear, some concepts specific from databases design for firebase take some time to process and is okay, not feeling okay while trying to understand how backed works.</p><p>You should know, Firebase Realtime Database(FRTDB) is a PAAS (Platform As A Service) If we want to understand it as a product. If we want to understand it as a developer, the database is just a json.</p><p>Second, there is this thing called Nodes. The Nodes in the context of FRTDB is the level of deepnes data is.</p><p>Lets put some example</p><p>This path <br>users/id/UID_1241242/profilePic_URL</p><p>The node is the level of deepness into the path. This is a very linear example but can get supper tricky. If we would like to access all the information inside the id path. This would mean the id is a node, the UID_1241242 is a node inside the id, and the profilePic_URL is also a node.</p><p>This is an example of a database structure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*2dPNP_HAqDok-PIdDhFb0A.png" /><figcaption>Representation of the database structure</figcaption></figure><p>Lets try another example with the previous reference.</p><p>To access a certain location in the database we need to declare the path but knowing that when you request a path in the database. The last path will return all the child nodes.</p><p>Example: /user <br>(will return the UID and all the information inside each UID)</p><p>So if you want to GET only the username of a user, you can do /user/UID/username</p><p>If you want to access all information inside of the UID, you can just use the method GET add the path like this: /user/UID</p><p>Finally you would get all the information as a json. If this isnt clear you might check on <a href="https://firebase.google.com/docs/database/rest/structure-data">here</a></p><p>In the <a href="https://firebase.google.com/docs/database">documentation</a> about what is Firebase Real Time Databse says:</p><blockquote>The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. When you build cross-platform apps with our Apple platforms, Android, and JavaScript SDKs, all of your clients share one Realtime Database instance and automatically receive updates with the newest data</blockquote><p>Depending on the platform you might have to serialize data before sending it, and be sure the json you are sending is a proper json formated.</p><p>This being said I designed the module to work as a independent structure that could be easy added and removed from a project.</p><p>The module serves as a bridge between the 8thwall project and the database. The idea is that developers can easily manage data.</p><p>Here is how to interact with the module :</p><h3>Reading Data</h3><p>use: <br><em>getData(path)</em></p><p>description:<em><br></em>Retrieve data from the specified path in the database</p><h4>Example 1: Getting only one piece of data from a database path</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l9OGelHo-Q6G-Lbc3QDZSg.png" /><figcaption>Code for using the GetData method to get a single data from a database path</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*38E7bR9hPzgm_z6HC332hw.png" /><figcaption>Representation of the database structure</figcaption></figure><h4>Example 2: Getting a group of data from a path</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OTxfi3gkeHbDU7WLP4h2xg.png" /><figcaption>Code for using the GetData method to get a group of data from a database path</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b2_40ms3_KaKiHPPFChl2w.png" /><figcaption>Representation of the database structure</figcaption></figure><h4>Example 3: Fetching Saved Locations of a User</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*PjbVZ25jBhl_hCagxeASug.png" /><figcaption>Code for using the GetData method to get saved locations of a user</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*aLSX13GzL-B18-7jqrAEdg.png" /><figcaption>Representation of the database structure</figcaption></figure><h4>Example 4: Fetching User Profile and Saved Locations from Firebase</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*6j2zu4bowGtZcm-nN137Lg.png" /><figcaption>Code for using the GetData method to get User Profile and Saved Locations from Firebase</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*-gRX_GCjYxyHQ9rsYDhI-A.png" /><figcaption>Representation of the database structure</figcaption></figure><h3>Writing Data</h3><p>use: <br><em>postData(path, value)</em></p><p>description:<em><br></em>Write data to the specified path in the database</p><h4>Example 1: Posting a Comment on a Blog Post</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Vqx83UNVFx_VCVwNGVArQ.png" /></figure><h4>Example 2: Posting a New Event in a City’s Calendar</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VG1rdgwLNf60zdfJWa2ZtQ.png" /></figure><h4>Example 3: Posting a Player’s Score in a Game</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uWjCqdP9x61aBa_-dPMofw.png" /></figure><h4>Example 4: Posting a New Item in a User’s Wishlist</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g5pEsj8t3aW1DHw7mqUpcA.png" /></figure><h4>Example 5: Posting a Review for a Movie</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GIRSu-X_D_pkE6rrQqrclw.png" /></figure><h3>Updating Data</h3><p>use: <br><em>updateData(path)</em></p><p>description:<em><br></em>Update existing data at the specified path in the database</p><h4>Example 1: Updating a User’s Profile Picture</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8LStJCaR54M6qHSFIhqnCA.png" /></figure><h4>Example 2: Updating a Blog Post’s Content</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g_ltoaAjR--pKkCyrG5wgQ.png" /></figure><h4>Example 3: Updating a Product’s Price in an Inventory</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RVMC_B-LacfZhbADruQlOw.png" /></figure><h4>Example 4: Updating a Player’s High Score</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MRGXZ7vmGqqDvCTqTCb27Q.png" /><figcaption>Example 5: Updating a Task’s Status in a To-Do List</figcaption></figure><h4>Example 5: Updating a Player’s Score on the Leaderboard</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c0nm3Nk581O4lKUoNaUjMA.png" /></figure><h3>Removing Data</h3><p>use: <br><em>deleteData(path)</em></p><p>description:<br>Remove data from the specified path in the database</p><h4>Example 1: Deleting a Player Profile</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ivvb8Sr3exbqTOhqsV3DEg.png" /></figure><h4>Example 2: Removing a Game Achievement</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u3b_IaILsWGya_u-t0V9pw.png" /></figure><h4>Example 3: Deleting a Message from In-Game Chat</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fx41MTE3S7yv7pJ0YurTSg.png" /></figure><h4>Example 4: Deleting a user’s post, comments, likes &amp; shares</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ac4lOqp-cWnAG2acxDzEYg.png" /></figure><h4>Example 5: Remove a Pokémon from the player’s collection</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wy2pQPDcj1OpuJm1UIrnEQ.png" /></figure><h3>Subscribing to Data Changes</h3><p>use: <br><em>listenDataChanges(path, callback)</em></p><p>description:<br>Subscribe to changes at the specified path in the database. The callback function will be triggered when there’s a change</p><h4>Example 1: Listening to a Player’s Score</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PSSqYyCXj_JiKYXcpS_r7Q.png" /></figure><h4>Example 2: Listening to a Specific Player’s XP using PlayerID</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X1K4a6NP1wbmsjUFMU3rZA.png" /></figure><h4>Example 3: Listening to Knob Value for A-Frame Entity Adjustments</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TcWBQ-rzqelGADIH0ES-0A.png" /><figcaption>NOTE: In your A-Frame scene, you should have the code below added</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*61kggVLoc3orbwjplf-Xwg.png" /></figure><h4>Example 4: Listening to Player Position in A-Frame</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g5v2EHXEhc3aoCATOUJbnw.png" /></figure><h4>Example 5: Listening to Latitude and Longitude Data in a Location-Based Game</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mw5vzDg7_khodJ-Fic5jlQ.png" /></figure><h3>Unsubscribing from Data Changes</h3><p>use: <br><em>stopListeningDataChanges(path)</em></p><p>description:<br>Unsubscribe from data changes at the specified path, ensuring you no longer receive updates</p><h4>Example 1: Unsubscribe from a Player’s Location Updates</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BoUzR5a8X0U-qWiZhBPSeQ.png" /></figure><h4>Example 2: Stop World Weather Updates</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Va9_BxEVKPjFMZECb34cWg.png" /></figure><h4>Example 3: Engaging in Player-vs-Player (PvP) Duels</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OgNtcyJSTF8yrxgZtgry0Q.png" /></figure><h4>Example 4: Listening to Market Price Changes in a Trading Game</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mpUFFKps06QX1e_I2N-21g.png" /></figure><h4>Example 5: Disable game notification if user is at home</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*SZMRVoVmUXg269v1dtUJbw.png" /></figure><h3>Conclusions</h3><ol><li>Simplicity is Key: The module&#39;s strength lies in its straightforwardness. The functions are named descriptively, making it easy for developers to understand their purpose at a glance.</li><li>Error Handling: The module incorporates try-catch blocks in its asynchronous functions, ensuring that any potential errors are caught and logged. This is crucial for debugging and ensures that the application doesn&#39;t crash unexpectedly.</li><li>Real-time Data Monitoring: With the listenDataChanges and stopListeningDataChanges functions, developers can easily set up real-time data listeners and remove them when no longer needed. This is particularly useful for applications that require live updates, such as multiplayer games or chat applications.</li><li>Configurable Firebase Initialization: The module subscribes to a configuration, allowing for dynamic initialization of Firebase based on the provided configuration. This makes the module adaptable to different project setups.</li><li>CRUD Operations: The module provides functions for all basic CRUD (Create, Read, Update, Delete) operations, making it a comprehensive tool for interacting with Firebase&#39;s Realtime Database.</li></ol><h3>Suggestions to use the module</h3><p>When working with Firebase, it’s not uncommon for operations to be rejected or fail if executed too early.</p><p>That’s where the isDatabaseInitialized function comes into play. Think of it as a diligent gatekeeper that checks every second if the Firebase database is ready for action.</p><p>It keeps an eye on the firebaseState.isInitialized flag, and once everything&#39;s set, it stops the checks and gives a green light, signaling that it&#39;s safe to dive into database operations.</p><h4>Why is this so crucial?</h4><p>Imagine trying to read or write data when the database isn’t even awake yet. It’s like knocking on a door that no one’s behind. If you rush into operations before the database is fully up and running, you’re setting yourself up for potential rejections, failures, or even worse, unpredictable behaviors in your app. No one wants to deal with missing data or unexpected errors.</p><p>Incorporating the isDatabaseInitialized function is like having a safety net. It ensures you only interact with the database when it&#39;s truly ready, adding a layer of reliability to your application and shielding you from the pitfalls of premature database actions.</p><h4>1. Always Check Initialization</h4><p>Before performing any operations, ensure the database is initialized. Use the firebaseState.isInitialized flag to verify this. If it&#39;s not initialized, wait or retry the operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qDYvMTsBMzoSNnPIKb4nFQ.png" /><figcaption>add this right after you imported the methods from the module</figcaption></figure><h4>2. This is how you import the module methods</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fm0ft834HlN8e9QcUWhLew.png" /></figure><h4>3. Use Descriptive Data Paths</h4><p>Structure your database paths meaningfully. For user data, a path like /users/{userID}/profile is clear and organized.</p><h4>4. Manage Real-time Listeners</h4><p>When you need real-time updates, use listenDataChanges. Always unsubscribe with stopListeningDataChanges when the updates are no longer needed to free up resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7NAkM3UbPnSwgxNgLp8HlQ.png" /></figure><h4>5. Handle Errors</h4><p>The module provides basic error logging, but always add your own error handling mechanisms for a smoother user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6tIsNg2HzI2UR9V4U77Dhg.png" /></figure><h4>6. Secure Your Data</h4><p>While this module provides the tools to interact with Firebase, ensure your Firebase security rules are set up correctly to protect your data.</p><h4>7. Document Your Logic</h4><p>The module’s methods might be straightforward, but always document your specific logic, especially if it’s complex.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rAtrUi5GSsU5YW9q_EgcQQ.png" /></figure><h4>8. Monitor Firebase Billing</h4><p>Firebase’s Realtime Database charges are based on data storage, connections, and data transfer. To avoid unexpected costs:</p><ul><li>Regularly check your usage metrics in the <a href="https://console.firebase.google.com/project/_/usage">Firebase Console</a>.</li><li>Set up billing alerts to be notified of any significant spending.</li><li>Before storing large datasets, evaluate their size to ensure they don’t lead to unexpected charges.</li><li>Familiarize yourself with Firebase’s <a href="https://firebase.google.com/pricing">pricing details</a> to understand the costs associated with your operations.</li></ul><p>By actively monitoring and understanding costs, developers can make informed decisions and optimize their Firebase usage.</p><h4>9. Structuring Data for Firebase Realtime Database</h4><h4>- Flat is better than deep</h4><ul><li>avoid deeply nested data. Instead, flatten your data structure.</li><li>For example, instead of nesting comments under posts, store them separately and reference by post ID.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6AhB8iYzT4IR4Vbtbjf59g.png" /></figure><h4>- Denormalization</h4><ul><li>Sometimes, it’s beneficial to duplicate data to speed up reads.</li><li>For instance, if displaying a user’s name alongside their post, store the user’s name with the post to avoid an extra read.</li></ul><h4>- Avoid Large Arrays</h4><ul><li>Firebase Realtime Database doesn’t support querying by array index or querying large arrays efficiently.</li><li>Instead of arrays, use objects with unique keys (often IDs).</li></ul><h4>- Use Indexes for Queries</h4><ul><li>If you’re querying on a specific field, ensure you set that field as an index in your Firebase Database Rules.</li></ul><h4>- Limit Data Size</h4><ul><li>Be mindful of the data you’re writing. Avoid writing large, unnecessary data.</li><li>Consider the costs and the performance implications of writing large amounts of data frequently.</li></ul><h4>- Reference, Don’t Nest</h4><ul><li>If data can be used in multiple places, store it separately and reference its ID where needed.</li><li>This makes updates easier and ensures data consistency.</li></ul><h4>- Plan for Scalability</h4><ul><li>As your app grows, so will your data. Structure your data in a way that it remains efficient as it scales.</li></ul><h4>- Security</h4><ul><li>When structuring data, always keep security in mind. Structure data in a way that makes it easy to write security rules.</li><li>For instance, by keeping user-specific data under user IDs, you can easily write rules to ensure users can only modify their own data.</li></ul><p>That&#39;s it, if you manage to read until this part let, thank you very much. With all this information you should be more than ready to be able to use the module to add Firebase Realtime Database to your 8thwall projects.</p><p><em>If you want to check the module, you can find it on my 8thwall profile – </em><a href="https://www.8thwall.com/diegousdz/modules"><em>here</em></a></p><p>Note: If you have any question, you can find me at the 8thwall community as diegoUSDZ</p><h3><strong>Thank you for reading &amp; happy coding</strong>🤓</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40094d5116fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing & Optimizing for Publishing]]></title>
            <link>https://diegousdz.medium.com/testing-optimizing-for-publishing-62e5fbe9e33f?source=rss-b5f3b41c5b01------2</link>
            <guid isPermaLink="false">https://medium.com/p/62e5fbe9e33f</guid>
            <category><![CDATA[spark-ar]]></category>
            <category><![CDATA[spark-ar-studio]]></category>
            <dc:creator><![CDATA[Diego Aguirre]]></dc:creator>
            <pubDate>Mon, 26 Oct 2020 20:27:01 GMT</pubDate>
            <atom:updated>2020-10-26T20:27:01.154Z</atom:updated>
            <content:encoded><![CDATA[<p>Make your ARfilter experiences run smooth in (Old Android, Android &amp; iOS)</p><p>If ever wanted to create an awesome filter in Spark the Testing and Optimizing assets its a key and important part of crafting your ideas into filters. This walkthrough will give you ideas and tools to make your filters gain extra power from GPU and Ram on devices.</p><p>So this technical paper will discuss the ideal scenerarios and explain the reason why and how create top filters from the Quality Assurance point of View.</p><p>When we image our experience to be lived in AR we are actually talking about holograms but more specific we are talking about Digital Holograms. Holograms itself are 3D models, 2D models made out of bits tracked to the real work thanks to the power of Neuronal Networks, top engineering and magic.</p><p>Magic itself its moment when you get WOW by how the experience looks. That moment when your brain can barely understand what is happening.</p><p>We can feel holograms thanks to our sense organs. Visually we can see them running inside AR, VR, MR. And with your hole body to can test the experience.</p><p>Experiences that stimulate all sense organs makes a bigger impact on User.<br>So when designing your exeperience make sure to also think in terms of.<br>Smell, Colors, Shapes, where will be played, at what moment should be played the experience. Sounds.</p><p>Augmented Reality Experiences that complement normal experiences enrich the final experience.</p><p>For example using AR to showcase a product and use the smell to trigger something can lead to sell. New AR Experiences can be designed to trigger some emotions. Now knowing this you could create an experience wisely.</p><p>For example if you make fitlers that recall something like self damage this could have a bigger impact on peoples life even when the intention of the creator are not made to cause self harm or commit suicide.</p><p>Filters have a tangible impact in other people life and creators have the power to make changes and the responsibility to use that power right. For those who might still want to make some weird filters, a good way of optimizing your time will be, reading the policy.</p><p>So save time for testing by testing something you can publish. <br>I’m the type of creator who works solo. The type of creator who doesnt have a team to showcase the techonology. Some time it feels like a lot but once you know how to test and debug its a pretty straig forward process that you could incorporate to your filter development pipeline.</p><p>1st. Compress it till you make it. <br>2nd. Tested under different circunstances <br>3rd. Make changes.</p><p>This is my secret sauce. This is how I manage to put big files inside a filter. <br>You could have 2 scenarios. The first sceneario its when you know what you want to do. Second scenario its when you go to Spark AR to create to test, to experiment and to remix reality.</p><p>Spark AR Library its an under stimated resouce that barely anyone use it. <br>If you are a creator like me who enjoys more creating compositions or you lack the skills to create your own 3D models. You can use the Spark AR Library and you will find the best optimized assets for Spark AR that comunicate perfectly with Materials and sizes.</p><p>if you want to create your own assets a good idea its to keep it as low as possible. When ever you can between 600kb and 1mb.</p><p>My creation pipeline is like this.</p><p>3D software &gt; Spark AR &gt; Substance Painter &gt; Tinypng.com &gt; Spark AR <br>I use Cinema4D for face sculpt, Maya for hard surfaces and UV Mapping and Blender for optimize it.</p><p>In blender you can reduce the poly count thanks to an official tool made the Spark AR Team called “Spark AR Tool” that you can download at Spark AR website under Blog.</p><p>if you keep the 3D object at a position of 0,0,0 then you should not need to re-center the object and also if you are making the object using a 3D sofware you know that the file needs to be between 600kb and 1mb.</p><p>The top weigh of a filter its in the worst sceneario 2mb. idealy 600kbs as the best of the best and 1mb as a good and 1.5mb as something that still needs to be optimized.</p><p>The less assets are in your project the faster your filter could be approve it if it sticks to the Policies of Spark AR publishing.</p><p>Here is a loading time based on filter size:</p><p>600kbs →about 4seconds to load<br>1mb →about 7 seconds to load <br>1.5mb →about 12 seconds to load<br>2mb →about 16 seconds to load<br>2.5mb →about 22 seconds to load<br>3mb →about 32 seconds to load<br>3.5mb→37 seconds<br>4mb→ about 45 seconds to load</p><p>As you can see the loading time makes bigger and it can go exponentially depending on your internet connection.</p><p>So idealy if you make a super cool filter it should be take no more than 15 seconds to load. If takes longer than that amount of time people tend to thing the filter it&#39;s not downloading it and cancels the process of loading the filter and re download. The best practice its to keep the file size as low as possible.</p><p>Make filters that people love, not filters that people hate it. <br>From the point of view of someone of UX a bad user experience would be having a filter that looks really good but that performs really bad and ends in a bad UX.</p><p>If you mantain the filter size low you will have a great performance. The greatest filters I had test use Shaders to draw and color the whole filter.</p><p>Shaders are a great way to make complex filters and low weight. Because are low weight it perform better than average filters that use Png and JPG textures to create art in the filter.</p><p>Some complex filters look good and perform good. This is the case of filters how know how to opmize the filter so doesnt behave laggy.</p><p>When to test a filter? <br>I make unit testing (test one feature at the time) and performance testing (testing the filter in diferent circunstances). The ideal scenario would be a place in your house or company where you have many Android / Old Android / iOS devices and you can test your filters but for mostly all of mortals, we have about 2 or 3 phones where you can test your filters.</p><p>Unless you have your own equipment to test a good idea its to ask friends to test your filter and get some feedback. Ask Mom or Dad or a nearby person of your trust if it can try the filter in his phone.</p><p>Filters on iOS &amp; Android filters doesnt the same and this is why its so important the performance and testing to publish filters.</p><p>My secret recepy, this is how I test when I’m alone.<br>Step 1: Charge the phone at 100%<br>Step 2: Test your filter (if perform laggy, Compress it till you make it)<br>Step 3: Let your battery be 75% with same device <br>Step 4: Test your filter (if perform laggy, Compress it till you make it)<br>Step 5: Let your battery be 50% with same device<br>Step 6: Test your filter (if perform laggy, Compress it till you make it)<br>Step 7: Let your battery be 30% with same device<br>Step 8: Test your filter (if perform laggy, Compress it till you make it)<br>Step 9: Let your battery be 20% with same device<br>Step 10: Test your filter (if perform laggy, Compress it till you make it)<br>Step 11: Let your battery be 10% with same device<br>Step 12: Test your filter (if perform laggy, Compress it till you make it)<br>Step 13: Let your battery be 1% with same device<br>Step 14: Test your filter if performs laggy compress it even more if performs ok then it should perform better with more battery.</p><p>I usually repeat the whole process or go directly to 1% baterry testing. If the phone doesn&#39;t die in the process then I will have a really good and performant filter.</p><p>If the phone blacks out and runs out of battery then I need you should restart with step 1. Once you have a good performace at 1% battery the filter will behave the same despite if the phone or tablet runs at 20%. From 100% Battery to 20% the filter performance behave almost the same.</p><p>Once a phone enteres 19% or getting lower the phone will try to maximize battery life agains performance.</p><p>Finally Shaders and SDF. <br>if you want to make awesome filters you will start using your skills at photoshop, after effects and so on but a good thing to know is that Spark AR have a thing called SDF that use the power of shaders to create complex shapes and color.</p><p>By substituting the Photos to SDF to create color paletes you could save some filter weight. You can find the SDF Patch in the patch editor and start experimenting with them.</p><p>Automatization Testing: <br>Currently there is no way to systematically test filters using things like cucumber or Selenium. The current way of testing filter right now its by manual testing by checking and doing Unit Testing and Integration testing with Performance Testing in mind.</p><p>Now with this quick tips, mini-charts, ideas and my recipes for my everyday work I hope you have another perspective on how to make really complex filters perform really good in all devices.</p><p>Now you know.. Compress it till you make it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62e5fbe9e33f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn how to install the SparkARMixer-502 in 7 minutes]]></title>
            <link>https://diegousdz.medium.com/learn-how-to-install-the-sparkarmixer-502-in-7-minutes-eb0afa584f77?source=rss-b5f3b41c5b01------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb0afa584f77</guid>
            <category><![CDATA[ar]]></category>
            <category><![CDATA[live-streaming]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[spark-ar]]></category>
            <dc:creator><![CDATA[Diego Aguirre]]></dc:creator>
            <pubDate>Sun, 30 Aug 2020 21:47:29 GMT</pubDate>
            <atom:updated>2020-08-30T21:50:07.672Z</atom:updated>
            <content:encoded><![CDATA[<h4>Official Setup and installation Guide + tips</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y7MBWKQxYfHfAaDo.png" /></figure><p>For installing the Mixer you will need to download the 2nd link and then unzip the folder. After this Drag the SparkARMixer-502 into your applications.<br>Once you finish this task you should go to the first link and download the app called Easycontroller. After you made all this step, please start following the tutorial below.</p><p><strong>Resource download links:</strong></p><p>For Easycontroller download link: <a href="http://42noir.com/es/">Click here</a> (You will need this app)</p><p>For Projects folder download link:<a href="https://www89.zippyshare.com/v/Uh2tvsHf/file.html"> Click here</a> (Here are the resources)</p><p>For Firebase Console link: <a href="https://firebase.google.com/">Click here</a> (You will need to setup a server)</p><p>For SparkARMixer-502 app download link: <a href="https://github.com/Geekydiego/SparkARMixer-502">Click Here</a> OR <a href="https://gumroad.com/l/SparkARMixer502">Click here</a></p><p><strong>The Firebase URL</strong><br>Its on top of the Firebase DataBase just where the red line, thats the Firebase Database URL or Firebase URL, Copy it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LIg8j12w1K6_5PYo.png" /></figure><p><strong>Paste the link inside the SparkARMixer-502 app. Just where it ask for the Firebase URL.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/0*KLahcIcgAowOE75v.png" /></figure><p>Like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/0*gCIGk8Qz2D2YA96D.png" /></figure><p><strong>Then go back to Firebase to this tab</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/0*m_9zesbC3HpK1K6C.png" /></figure><p><strong>Then go to Project Configuration or Configuración del proyecto</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/0*U3Zg5esQspkbHscb.png" /></figure><p><strong>You will see a window like this</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bUBvuXS0eg87twR6.png" /></figure><p><strong>The FIREBASE KEY its the API WEB KEY. The one who has 2 lines. Copy it and go back to the SparkARMixer-502 app.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/0*r_Uxj0TC8KVbOCNF.png" /></figure><p><strong>Inside the red box paste the KEY</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/0*pB8Y3xaAISzGv2j2.png" /></figure><p><strong>Once you paste the 2 links the Set Button will change to state to Enable. Click the Set Button.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/0*Pl8KD_tTkylYR-64.png" /></figure><p><strong>Once it’s connected you should see the a log in the console.<br>Next step it’s to connect the Middi controller to the computer then open the EasyController app.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/0*56V5ZGEaxvKMNAJX.png" /></figure><p><strong>In the red box you should see the name of the Controller. If you dont follow this: </strong>Close the EasyController app, disconect the MidiController, reconnect the MidiController in a different USB Port and then Re open the EasyController app <strong>(In this order).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/0*b4gfWo-UcBLr4qOJ.png" /></figure><p><strong>Now that we have fully connected the Midi controller its time to map the controller. For this just press the Green circle besides the Map Midi.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/0*6qiomlnozsjrMQTM.png" /></figure><p><strong>The porst that are configured are the S1, S2, S3, S4, S5, S6. So for you to map this ports you will need to move first the Knob in the controller and then press the word s1 or 2 or try in the EasyController app.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/0*FMqC7SY_Vne9nTJW.png" /></figure><p><strong>Once its mapped if you move the knob you should see the EasyController move in sync with it like this.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/0*LZ0e-0OagJSv8YN8.png" /></figure><p><strong>You can map only 6 knobs in the SparkARMixer version 502 and should be exactly in the s1 to s6 order. Once all the 6 knobs are mapped your EasyController window should look like this..</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/0*CCteRpzuyEchJUi-.png" /></figure><p><strong>Make sure to unselect the Green Button besides MAP MIDI once you finish the mapping. </strong>Now we need to test if its working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*43vaI3IDtKWe2eeH.png" /></figure><p><strong>Make sure to have your windoes like this. On the right side we should see changes if its working if not. you should check i the LOG. If you correctly connected the Firebase DB you should see a Log in your Firebase Database.</strong></p><p><strong>To re check if its working click Set button, again. If its everything OK you should see instantly a Log file into your Firebase Project similar to this:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4tu470J43A_fxLP0.png" /></figure><p><strong>If you see this you are ready to go. Next step its to Test if the Midi controller it’s working. To do this you need to:</strong></p><ul><li>Open the port, change values, close the port.</li></ul><p>We can do this by simply activating the Toggle button like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/0*W8JlI_roialt-Umt.png" /></figure><p><strong>While this toggle button its activated. This will send data to the Firebase Database. The data its writen into a buffer (like a capsule). If you fill it with too much information. it will take too much time to send the Buffer Capsule to Firebase.</strong></p><p>This is important because if you never close the Valve. The app will not send the data and instead will slowly send the data in a Async way. This means that if you have opened the 6 valves. You will have a slower data transmission.</p><p>The right way to change values its to. Open 1 or maximum 3 valves at the same time change values and close it.</p><p><strong>Integration Test</strong></p><p>Open the valve. Move the mixer knob and you should see changes in the Firebase Realtime Database with 1 sec deelay. Just like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*vDQ49T-dVHsVOoHp.png" /></figure><p>Sometime gives a -1 value. If this ever happen to you. Close the Easycontroller app and reopen it. Then Close the SparkARMixer-502 and re open it. <br>Fill the Input fields with the URL and the KEY and click set.</p><p><strong>After this you should be able to see the cright values chaging in Real time just like this:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8FUyn8HRwSjjjBKc.png" /></figure><p><strong>The last part would be configuring the Spark AR Project. For this go to the zip forlder we download. Go to Spark Project &gt;NetworkTemplate &gt;NetworkTemplate.arproj doble click to open it.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J4xCGPdI-ClTVtiU.png" /></figure><p>The first thing we should see its an error. To fix this go to Edit &gt; Edit Properties &gt;Capabilties &gt;Networking&gt; Whitelisted Domains</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/0*Rrl2xOHDwYv_ybSW.png" /></figure><p>In here, change the link to the format you see. Just change the Sparkremixer.firebaseio.com to YOUR-PROJECT-NAME.firebaseio.com<br><strong>NOT LIKE THIS “</strong><a href="https://sparkremixer.firebaseio.com/"><strong>https://sparkremixer.firebaseio.com/</strong></a><strong>”.</strong></p><p><strong>You can find it in here:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/0*4DX1F5OqZulnIWWQ.png" /></figure><p><strong>Then Go back to the Spark AR and let’s edit the script to target our database. Please open the EQ1.js by selecting the script</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*t_oMM1urcBzpU286.png" /></figure><p><strong>Then click “edit” in the right side.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*ANzecDQDrnsMyXhh.png" /></figure><p>When the script its open go to the line 107 and change he first part to your firebase URL <strong>(Only the first part). This is how it should like at first.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*Y1G4CwR4PdxLqQ2u" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/0*XdG76qf2dlPltB9T.png" /></figure><p><a href="https://sparkremixer.firebaseio.com/Mixer/EqualizerLeft(1L).json">“https://YOUR-PROJCT-NAME.firebaseio.com/Mixer/EqualizerLeft(1L).json</a>&quot;;</p><p>Only change the name. Once you change it to your project you could go to the patch and check its receiving the server values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/0*Bxa8df3PDvD2w0_V.png" /></figure><p>If you dont see anything please click the Stop Button…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/0*h1tQgQOjFYTiH4Da.png" /></figure><p>Then click again Play button. After doing this you should be able to see server side values into the top right corner Value Patch, like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/0*8Kp4ubNa8JfbYDfJ.png" /></figure><p><strong>The next step is to repeat the process of changing the URL in all the 6 scripts. </strong>Make sure to only change the Firebase project name to your current Firebase project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/0*XPcOrUhGL1U6vi1h.png" /></figure><p><strong>Note: each script targets one firebase value. </strong>For example this scripts targets this Firebase Data Structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/0*kYXYfhr2GZCrqMy_.png" /></figure><p><strong>After changing the Script Value you should see the changes in the Patch Editor in Spark AR, like this:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/0*JpJj3oUTArkJFESN.png" /></figure><p>After you successfully configure all the scripts you will be had sucessfully configure set the SparkARMixer-502. <strong>You can now start Remixing Reality.</strong></p><p>If you like this articles please CLAP this article! Happy remixing!! #SparkARMixer-502</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb0afa584f77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The SparkARMixer-502]]></title>
            <link>https://diegousdz.medium.com/the-sparkarmixer-502-943164377a57?source=rss-b5f3b41c5b01------2</link>
            <guid isPermaLink="false">https://medium.com/p/943164377a57</guid>
            <category><![CDATA[streaming]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[spark-ar]]></category>
            <category><![CDATA[ar-creator]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <dc:creator><![CDATA[Diego Aguirre]]></dc:creator>
            <pubDate>Sat, 29 Aug 2020 04:45:59 GMT</pubDate>
            <atom:updated>2020-08-29T16:59:13.114Z</atom:updated>
            <content:encoded><![CDATA[<h4>The concept that lead to the code</h4><figure><img alt="SparkARMixer-502 UI of the year 2020" src="https://cdn-images-1.medium.com/max/430/1*bXSfYWPeg9jIFzWUqMp6sg.png" /><figcaption>The SparkARMixer-502</figcaption></figure><p>The SparkARMixer-502 is an Data Streaming Pipleline that enables you to remote control values inside a filter and project. The SparkARMixer-502 its an AR Playback system that allows you to sync data between devices using a Server Architecture and mix multiple layers of realities using DJ Equipment.</p><p>There will be many steps in to the future creations of AR Filters. With the recently launch of Reels over Instagram a simple task was given to all Sparkanians who develop AR Filters “make great filters for Reels”.</p><p>Year 2020 currently the way AR filters are develop and designed are to be Single Experience, just like Vodka Shots. The filters are designed to be Single Experience only. The type of experiences that is missing, is the one where AR Creators have a direct contact with the audience.</p><p>By now AR Creators seem to be more like Musicians who sell CDs but never do Concerts or meet the audience. This is when the <strong>SparkARMixer-502</strong> shows up. With the #<strong>SparkARMixer-502</strong> creators can perform a more intimate and exclusive AR show for their audience.</p><h3>Use cases for SparkARMixer-502</h3><p>You can use the Mixer in Concerts, National TV, Homemade livestreaming, Interviews and more. All this use cases share common things that repeat as a pattern.</p><ol><li>There is a Director who wants to tell a story</li><li>There is an audience that is watching the Same Content at the Same Time.</li><li>The need for controlling light&#39;s / Sound / AR remotely.</li></ol><h3>Ideal Scenario to use SparkARMixer-502</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*DY9ys0rL4GdQnRbicBkM9g.png" /><figcaption><a href="https://heavym.net/blog/en/userworks/stagedesign/skryptom-release-party/">https://heavym.net/blog/en/userworks/stagedesign/skryptom-release-party/</a></figcaption></figure><p>This AR Mixer allows you control AR values remotely &amp; precisely and the best scenario to use this mixer for it could be a Concert that uses Image Targets to display an AR Hologram.</p><p>In the present Reality we live in. There is not tool to alter, mix, remix, master and release an alteration of the original piece of reality. But now thanks to this AR Mixer creators can now perform live.</p><p>The Story does not end when the user closes the filter or exit the app. The AR Reality stills happens just like Real Reality. This brings Two modes to play AR.<br>First Mode &gt;Live Mode&lt; When you can control the filter parameters without passing the Revision (this Mode it’s very likely Facebook wont approve it). Second mode &gt;Live Editing&lt;(This is more likely, Facebook will approve it).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p0tNXehuOMA4ZDYh4hSXZw.png" /></figure><p><strong>Pros &amp; Cons of Live Performance Mode</strong></p><p><strong>The good: </strong>People could be into a the same place and point phones to an Image Target that trigger an AR Live Experience where AR Creator its controlling signals of the filter while this AR Experience enhances other experiences such a sound or haptic experience.</p><p><strong>The Bad:</strong> FB &amp; IG Review Policy that Banned the use of Network Capability. So any attempt to publish a filter with this capabilities will instantly be rejected.</p><p><strong>Pros &amp; Cons of Live Editing Mode</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*9H94nLAPms4EnmC7-s6Flw.png" /></figure><p><strong>The good: </strong>Easy to use interface that enables you to control and play multiple values in different layers of the filter giving a faster prototyping and deeper experimentation for AR Experiences.</p><p>This is great for Testing and Debugging. Also its up to other creators help to extend the code to add more functionalities like Recording the AR to create an Animation Sample that can be recorded and played in the future.</p><p><strong>The Bad: </strong>there are not bad things about this Use mode <strong>(This is the suggested Mode)</strong> Even do you can try to summit the filter it wont pass the review.</p><h3>Conclusion</h3><p>while some people is focused on Single Shot AR Experiences there are others dreaming about AR Live Reality Remixing. This Mixers brings the change to experiment faster and remotely.</p><p>Meant to be an internal tool the <strong>SparkARMixer-502 </strong>promises a future where AR Creators can create faster Top looking Face or World Scale filters that have a smooth transition between realities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=943164377a57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Size Restrictions for Spark AR.]]></title>
            <link>https://diegousdz.medium.com/size-restrictions-for-spark-ar-d8f2264e91f3?source=rss-b5f3b41c5b01------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8f2264e91f3</guid>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[spark-ar]]></category>
            <category><![CDATA[instagram]]></category>
            <dc:creator><![CDATA[Diego Aguirre]]></dc:creator>
            <pubDate>Tue, 25 Aug 2020 15:11:23 GMT</pubDate>
            <atom:updated>2020-08-25T15:11:23.447Z</atom:updated>
            <content:encoded><![CDATA[<p>Guide for exporting .OBJ or .FBX or .DAE files for Spark AR.</p><p>About 2020 in March just before Covid Started. I had the unique opportunity to be part of a team. In this multi disciplinary team I was in charge of composing the assets into a single Filter for Facebook Messenger AR Team.</p><p>In there I learned that IG &amp; Facebook filters must be <br>- 600 kb (Ideal) It gives the best performance / Loading time<br>- 1.5 mb (Up to this number still great performance but not as good as 600kb)<br>- 2 mb (No more than this) It gives an OK Perforance.</p><p>Even do oficially the maxium filter size its 4mb. This leads to a bad practice of making heavy filters that will be harder to optimize.</p><h3>What Format export for Spark AR?</h3><p>For clips that contain static 3D objets use (.DAE) / For clips that contains the animations use (.FBX) / For other usecases or if you like use (.OBJ)</p><h3>Tool for Lowering Polys of a High-Poly Mesh?</h3><p>Spark AR has a tool for optimizing 3D assets that are going to be used inside Spark AR. Its called Spark AR Toolkit and is like a pluggin for Blender (the 3D modeling software). Both Blender and this toolkit are free so its a good idea. <br>Download them for optimizing assets.</p><p>With this tool you will be able to import a file. Center it. Reduce the polycount and Export it so the file its ready to be used in Spark AR.</p><p>Here is the download Link: <a href="https://sparkar.facebook.com/ar-studio/learn/articles/creating-and-prepping-assets/toolkit-for-blender">https://sparkar.facebook.com/ar-studio/learn/articles/creating-and-prepping-assets/toolkit-for-blender</a></p><p>Thanks to<a href="https://www.youtube.com/channel/UC2Cixv8Y6__g2tO8_AlJD0A">@<strong>Emiliusvgs</strong></a><strong> </strong>he made this awesome tutorial that explains how to install the Add-On into Blender <a href="https://www.youtube.com/watch?v=o0vQRc1MeJk">https://www.youtube.com/watch?v=o0vQRc1MeJk</a></p><h3>Thats All..</h3><p>Hope it was usefull you are ready to go!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8f2264e91f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intro to Spark AR coding]]></title>
            <link>https://diegousdz.medium.com/intro-to-spark-ar-coding-10ecbfefd0d7?source=rss-b5f3b41c5b01------2</link>
            <guid isPermaLink="false">https://medium.com/p/10ecbfefd0d7</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[spark-ar]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <category><![CDATA[reactive-programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Diego Aguirre]]></dc:creator>
            <pubDate>Tue, 25 Aug 2020 14:11:04 GMT</pubDate>
            <atom:updated>2020-08-25T14:11:04.570Z</atom:updated>
            <content:encoded><![CDATA[<h4>Functions ideas for Spark AR Studio</h4><p>What do we mean about Reactive?. It really reacts? It’s react native?<br>The name comes because the type of programming its that its more declarative than imperative.</p><p>What it means is that is fully data driven so Spark AR Experiences dont execute a full simulation every frame. Rather it only picks the things that change.</p><p>Because Spark AR knows what’s going to happen next and because its declarative scripting, then can unblock and allow a faster Execution Path Optimization.</p><h3>Understanding how to code:</h3><p>To understand Spark AR you need to think in terms of Modules.</p><p><strong>Modules</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*BhfffOhHgRKky_0UmRifgg.png" /><figcaption>Lines of code to debug the framerate</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*22qVeL6OmwFwLSy6l9h3JA.png" /><figcaption>Detect taped in the screen of the device</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*MZfNOGBIzuqlvYfWkpeLKg.png" /><figcaption>Create a function for Spark</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*Cl0TrmfchsHnI7rGdkCAXg.png" /><figcaption>Create an Array</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*XwxwnstwID31SxlfUqYQDA.png" /><figcaption>Use the array in a more elegant way (make sure to declare it before use it)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*x0elC_8ZNgrazIjYPc5KNw.png" /><figcaption>A way to integrate almost all together but without the array.</figcaption></figure><p>The code explained.</p><p><strong>i</strong> its a variable that we will use it as a counter. <br><strong>prop_mode</strong> its a variable and will help us to compare against constants<br><strong>NOEFFECT, PILOT, KID, HAT </strong>are intagers they don&#39;t change his state thats why we declare them as constants.</p><p>The <strong>TouchGestures.OnTap()</strong> is a function and inside the function we setup our logic. In my case I created a simple example to integrate all together.<br><strong>prop_mode </strong>its equal to i. <strong>i++ </strong>means add 1 to i.<br>So what we are declaring its an incremental counter. Each-time we tap we will increment by 1 integer the value of i. Remember <strong>prop_mode </strong>is equal to i.</p><p>I added 2 D.Log, these print in console a log message. Make sure to add this line of code on top of everything <strong>var D = require(‘Diagnostics’);</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*ujgyLoyHmhu6Ntu-1kDJmg.png" /><figcaption>This is how the Logs look like when in the console.</figcaption></figure><p>In the <strong>TouchGestures.OnTap() </strong>function we call the <strong>NextMode() </strong>function. All the functions must follow some rules.</p><ol><li>Declare before use.</li><li>if you are using it inside other function there should be a <strong>;</strong> after the () like this <strong>nameOfTheFunction();</strong></li><li>Pass all the parameters inside the ( ).</li></ol><p>Thats all for today! More coming soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10ecbfefd0d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Things You Need To Know About Spark AR]]></title>
            <link>https://diegousdz.medium.com/10-things-you-need-to-know-about-spark-ar-baad07b2a293?source=rss-b5f3b41c5b01------2</link>
            <guid isPermaLink="false">https://medium.com/p/baad07b2a293</guid>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[spark-ar]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <dc:creator><![CDATA[Diego Aguirre]]></dc:creator>
            <pubDate>Mon, 13 May 2019 02:11:49 GMT</pubDate>
            <atom:updated>2019-05-17T09:56:06.423Z</atom:updated>
            <content:encoded><![CDATA[<h4>What I wish more people knew about this new AR software</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XeG0sChBZPraILlbb_5OfA.jpeg" /><figcaption>The author using Spark AR</figcaption></figure><h3>1 How not to be replaced</h3><p>The world as we know is about to change, AI will replace so many jobs as it will create new job opportunities.</p><p>AI, Blockchain, AR, VR, IOT and many more technologies will require individuals of new generations learn unprecedented skills, while employees already working at large or small companies will need to adapt if they don’t want to be replaced.</p><p>In this context the only jobs that AI and Automation could not replace will be the jobs that require soft skills such as creativity. My advice for you is to learn programming and combine it with art.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E8-yMF6_5Py93LxnIgFTdg.jpeg" /><figcaption>Source of the image “ <a href="https://bit.ly/2LCjvjb">https://bit.ly/2LCjvjb</a>”</figcaption></figure><h3>2 What Programming languages should I learn?</h3><p>For Spark AR, JavaScript is the language to go. Furthermore, if you want to learn what languages lead the development of apps below, I listed the programming languages based on the software you are developing for.</p><p>For Spark AR: JavaScript<br>For Unity 3D: C# and JavaScript<br>For Unreal Engine: C++<br>For Lens Studio: JavaScript<br>For Android: Java and Kotlin<br>For iOS: Swift and Objective-c</p><p>I would also recommend you to learn: Java, Swift, C# &amp; JavaScript. I think with this 4 languages you would have a solid understanding on how to create apps for mobile and web. At the end, creativity it’s all about connecting information; and if you plan to add AI at some point of your developer path to any of your apps, start learning Python (I wish someone had told me this earlier).</p><h3>3 I want to start creating, where do I start?</h3><p>The first step is to download the software from here: <a href="https://bit.ly/30dXjiL?fbclid=IwAR1MNjBWxrAuRwwRqc3hSpkSr_A8jUgu0toHuhVJXigNWpdJ007FOjqLFOA">https://bit.ly/30dXjiL</a><br>It runs in both; Windows and OSX. Linux is not supported.</p><h3>4 I already downloaded the software, Am I ready?</h3><p>It would be very disappointing that you spend hours creating filters and at the end you end up knowing that you need to be part of the Beta program to publish. The purpose of this authoring tool is not only about creating filters but instead, creating, testing and publishing.</p><p>I suggest after downloading the software to join the community. The communities are inside Facebook groups, there are currently 2 official groups where Spark AR staff are members and moderators.</p><p>[<strong>Edit:</strong> The access for Spark AR instagram Beta group inside Facebook its automatically granted after you are accepted, you would not get access unless you get inside the Beta program — its the email associated with your facebook account the one it will get the notification.]</p><p><strong><em>The first place to go is this group</em></strong><br><strong>Spark AR Creators</strong> - https://bit.ly/2JzBZhD <br>(Inside this group is where global Filters creator discuss and ask questions)</p><p><strong><em>The Second place to go is this group<br></em>Spark AR Instagram Beta</strong> - <a href="https://bit.ly/2vSOBIT">https://bit.ly/2vSOBIT</a><br>(Inside this group is where you can report bugs and ask about support from experts since part of the crew who develop the software are. As a plus, people is so kind and diligent that if you find any trouble they will help you).<br><strong>[Edit: You will be automatically added after you are accepted.]</strong></p><p><strong><em>The Third place to go is this group<br></em>Spark AR Community<em> - </em></strong><a href="https://bit.ly/2E50Pm9">https://bit.ly/2E50Pm9</a><br><strong> </strong>(Inside this group people tend to ask for advise, share their filters and ask about feedback to other creators).</p><h3>5 I joined the communities, can I now start creating?</h3><p>Unfortunately no. You are not an official Filter Creator until you apply by filling an online form and get accepted to create filters for Instagram. After you apply, wait about a week and be patient, not all applicants get the chance to be inside the closed beta. This link will redirect you to the form where you can apply: <a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fbit.ly%2F2Pbb4sz%3Ffbclid%3DIwAR1G-8y9-UGNr_6VKaUmgY0Zv7O2A06Mvt3_8_1gzKKDnELsE0F2J5k-X2s&amp;h=AT1n_WCyLQkbnau5gp0eVX60Lt7mYFKy9UIHjn14Df7NO-BwTg8WOiZqgnZ3ScjxIs8jLXeEU4eMQfgxLjVjr8La-fv0azXS0msuj5S1HdLqMKZA2-dvX55nd5At6Tc6z3-KwD_9">http://bit.ly/2Pbb4sz</a></p><p>How do I know if I was accepted and I’m ready to publish? If you can get access to this link and see the image below you are ready to start publishing. This is the link you should check often to see if you was accepted: <a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fbit.ly%2F2JAJmWa%3Ffbclid%3DIwAR1RjB3B0fLn_NX_63h6fKnYyzVfOUSWvWo0w086OAnNbZypKRXdZc-efwA&amp;h=AT1n_WCyLQkbnau5gp0eVX60Lt7mYFKy9UIHjn14Df7NO-BwTg8WOiZqgnZ3ScjxIs8jLXeEU4eMQfgxLjVjr8La-fv0azXS0msuj5S1HdLqMKZA2-dvX55nd5At6Tc6z3-KwD_9">https://bit.ly/2JAJmWa</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Z-LTaVwdIUlsgMRJeAmXw.png" /><figcaption>Spark AR Hub</figcaption></figure><h3>6 I’m ready to create &amp; publish my filter, and now?</h3><p>Now it’s time to create. Let’s establish some rules to create digital content. Treat the filter as any regular software. The regular Software cycle would be:</p><p>1- Code <br>2- Test<br>3-Deploy<br>4-Repeat</p><p>I believe filters can generate an impact on people. It is so easy to create filters, everyone can start creating their own. We tend to see repeated filters and my advice would be to “Plan your filter even before you start building it”.</p><p>If you are developing filters on your own, you will have more work. Often Softwares are developed by large teams. The teams are composed by these job positions:</p><p>Project Manager <br>Programmers (Frontend &amp; Backend)<br>UI<br>UX<br>Quality Assurance</p><p>If you are building your own filters you will need to do all these people’s work. So, take time enough to plan every step of your building process, at the end it will lead to less improvisation and more straight forward process.</p><h3>7 I’m my own Project Manager, how do I measure progress?</h3><p>From my experience, the best way to track and check your progress is by using agile methods such as Scrum, Design thinking or using online tools.</p><p>Trello or even Planner from Microsoft are a good way to create your own boards. These boards are the best way to organize yourself, divide tasks and check what you need to do, what you are doing and what its done.</p><h3>8 I’m my own Coder or noder, now what?</h3><p><strong>Disclaimer</strong>: If you find any bugs during your coding session report it immediately inside Spark AR Beta group in Facebook, contribute to make this software great.</p><p>’ve programmed for hours for Hackatons, programmed for work and for my own pleasure. What I have learned from this is that our attention tends to decrease after a few hours. The Augmented Reality Developers need to stay smart, so in my case as a pioneer.</p><p>I distribute my time wisely like so: 45 minutes of only working and 15 minutes off to do whatever. Remember to work smart, not hard. If you want to make a difference from the rest you need to take every advantage you have to stand out from the rest. In my opinion; use this distribution of time and you will be able to create filters for hours.</p><h3>9 I finished my filter how do I test it?</h3><p>There are several ways to test your filter, below I listed 3 ways to test your creation. Why is it testing so important? Simply because it assures your experience runs smoothly in every device. Allows you to track bugs and even more, it will let you know ways you should improve. Sometimes coding works in the same phone models, but not on different Operating Systems.</p><p>The first way is to use the built-in videos that allow to see how your filter will look like on Instagram or Facebook. You will see in the right top corner some videos that allow you to preview how the filter behaves depending on the shape of the faces.</p><p>The second way its to download the Spark AR App for Android or iOS called Player. Once its installed, plug your device via cable to your computer. After this, find an icon that says “Mirror”. This feature will allow you to test at runtime your filter with the camera of your phone without publishing it.</p><p>The third way it’s once your filter gets published. Ask every single friend to check out your new creation. You will find that your filter doesn’t run in every phone. This is why is so important that you send your filter to friends, family and post it inside the Facebook community group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_TTd-BrOgMsBqV0_A17vA.png" /><figcaption>Spark AR Software — look at the right top corner the video I was talking about before.</figcaption></figure><h3>10 I’m ready to publish, What things should I know?</h3><p>Filters can be rejected easily, please read the policies first. You could theoretically link your company IG to your personal FB, but if the effect is branded it would get rejected during review.</p><p>If you want to create filters for a business you must apply, click on this link: <a href="https://forms.gle/oz199YkrBsg7Fmys8?fbclid=IwAR1AigbSMxxNhOP6_lwHWx1fXonOsEwL3tvpGo2Z-oDC7YVhf1iigwA6vYk">https://forms.gle/oz199YkrBsg7Fmys8</a> the access is granted to the company not to the developer. This means that for each brand you want to create filters for you must send a different form.</p><p>The business must be under 100k followers, and you can publish an effect for them in the next 7 days. Don’t be sad if your filter is not approved. Go ahead and ask in the groups I shared before for feedback or reasons for rejection.<br><strong>Check on this link the Guidelines for publishing: </strong><a href="https://bit.ly/2Q2pcp4?fbclid=IwAR2L0CD7Yu7404hWmFgXvyVKr7InBFmcLeFDRgAUXDeX-kvNwRzjSzYynyU"><strong>https://bit.ly/2Q2pcp4</strong></a></p><p>Additionally, if you want to publish the filter you will have to create an icon, start thinking about how would you like your icon to look like before creating. Check those filters that are popular and see their icons. Mostly they are simple but quite illustrative.</p><p>Last Advice: <strong>Keep it simple</strong>. The most used filters are very simple and they get hundreds of views and downloads.</p><h3><strong>About the author</strong></h3><p>“ Diego Aguirre is a 26-year-old Latin American Software Developer, specialized in Augmented Reality, technological entrepreneur passionate about immersive technologies (AR, VR, MR).</p><p>He previously studied animation filmmaking and started in the IT world in 2016 with C# and a Unity3D project. Currently working as a Developer of Virtual Reality and Artificial Intelligence in FourPlayers”<em> </em><strong><em>-<br></em>Reachable</strong> at @GeekyDiego in Instagram</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=baad07b2a293" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>