--- title: Crypto Machines description: From the bitcoin change machine to arcade and vending machines, see how these blockchain powered components are exploring new business models with gaming. image: https://xrdevlog.com/img/cryptomachines.jpg robots: index, follow lang: en dir: ltr breaks: true disqus: xrdevlog --- # Crypto Machines {%hackmd theme-dark %} ###### tags: `devlog` `crypto` `janus` From the bitcoin change machine to arcade and vending machines, see how these blockchain powered components are exploring new business models with gaming. Originally published April 2019 ![Full row of machines that may involve tokens](https://i.imgur.com/HXEHdF6.jpg) ## Change Machine Typically when you're at an arcade there's a change machine to exchange bills for tokens or quarters. What happens when you're in someone elses world where the currency you're holding is useless? A proof of concept bitcoin change machine was created with custom js and a bitcore backend to exchange satoshi into tokens, but it can technically support any type of transaction. ![Change Machine](https://i.imgur.com/8myG1PF.jpg) The working prototype has a floating UI in front of the change machine when activated and currently runs on the bitcoin testnet. Even when a person walks away from the change machine the UI travels with you, displaying useful information about your transaction in process. ![Confirming transactions](https://i.imgur.com/FS6WRVG.jpg) Step by step screenshots in how a person interacts with the machine can be found in this album: <https://imgur.com/a/PDJ7whP> Recently I started looking into ways on how to reskin the change machine itself to look more like a crypto machine. ![Made the front panel more orange, not sure how I feel about the sticker for payment options](https://i.imgur.com/LF6xaXF.jpg) ## Vending Machine The US currently has the most vending machines in the world but Japan leads in density. Did you know that in Japan there is about 1 vending machine for every 30 people? The Japanese people have more variety to choose from as well; from electronics, hot food, cold beer, even umbrellas. ![Japanese vending machines](https://i.imgur.com/VQGGULn.jpg) The invention of a vending machine is genius because you don’t need to hire personnel to man a vending machine like you would in a store, and this keeps things in stock and available for the masses, 24/7. Sounds a lot like how e-commerce is except that these machines greatly depend on prime physical location to be profitable; a friction point that the metaverse efficiently reduces. <p align="center"><iframe width="800" height="400" src="https://vesta.janusvr.com/bepis/vending/embed" frameborder="0" allowfullscreen></iframe></p> We aimed to accomplish many building block components while building the initial prototype such as an object defining an amount of value, an insert coin slot with onscreen display, and buttons to select an object to spawn or play in the room. The main operation goes as follows: 1. Insert coins 2. Credit goes up 3. Input item code with keypad 4. Press OK to purchase Then usually the corresponding spiral spins, item gets pushed forwards and it falls behind the item door but in VR we can have it spawn into the world and your **inventory**. ![Janusweb Prototype](https://imgur.com/IVrF06z.jpg) An **insert coin** slot can be useful in many circumstances to initiate an event once certain requirements like payment or identity has been verified. Some ideas we're interested in exploring include playing an arcade machine, changing the song in a jukebox, tipping a person, buying event tickets, purchasing non-fungible tokens (NFTs) such as crypto collectibles and in some cases physical assets. ![Arcade cabinets](https://i.imgur.com/zZBm2UW.jpg) To reflect the wide range of possibilities a [collection of 3d assets](http://vendingkit.glitch.me/) was curated and optimized for prototyping experiments. ![Vending Machine Assets](https://imgur.com/CUUoobK.jpg) We see these components as a vehicle for users to support the creators while also getting something in return. It costs nothing to host and you get the benefit of knowing that some of the profit can be going to a good cause or somebody you care about. Cryptovoxels vending machine prototype from Oct 15 ![](https://i.imgur.com/gnVylZT.gif =100%x) Another form for displaying content already familiar in people's minds as being kept fresh are newspaper stands like these: ![Rendering of Newspaper stands by DigitalX](https://i.imgur.com/PoqVJxR.jpg) Here are a couple attempts at creating some Opensea stands ![Opensea Newsbox 1](https://i.imgur.com/9Zz55w3.jpg) ![Opensea Newsbox 2](https://i.imgur.com/bXrUIdu.jpg) These machines look and function excellently in WebVR and with some work, in native platforms like Anarchy Arcade, JanusVR, and High Fidelity. ![Play the game and purchase items in the same world in JanusWeb (WebVR)](https://i.imgur.com/ZmFKDqq.jpg) ![You can be watching twitch, building worlds, and listening to music while your friends are playing cryptovoxels](https://i.imgur.com/9OcI0un.jpg) ![](https://i.imgur.com/tmXd6x7.gif =100%x) High Fidelity version with working websurfaces allow interaction with game + marketplace. ![](https://i.imgur.com/ElTlAaO.gif =100%x) A cryptovoxels arcade cabinet next to the opensea branded vending machine in High Fidelity. ![](https://i.imgur.com/gnVylZT.gif =100%x) ![VRchat implementation is a work-in-progress, websurfaces are currently disabled](https://i.imgur.com/1RcsVfe.jpg) ### The Future Seeing the stacks in Ready Player One is inspiring because right now the metaverse feels like a giant desert and there's no place yet where we are all gathered. ![Viewing the stacks from a Balcony](http://www.artofvfx.com/ReadyPlayerOne/ReadyPlayerOne_DigitalDomain_ITW_04.jpg) Been thinking about this chill room as part of something bigger, exactly what lies outside of the garage door? In 2014 bai0 started making a webvr arcade project called Metacade. ![Metacade](https://i.imgur.com/mHQxvIg.jpg) Many of the cryptomachines like the vending, change, arcade, and ticket machines fit naturally inside. ![2014 render of inside Metacade](https://i.imgur.com/wdawfe4.jpg) In 2017 I started a prototype of a hacker arts district, populating the empty parcels around the center. ![Aerial view of the neighborhood with Metacade in the center](https://i.imgur.com/0w9dFic.jpg) ![Some vending machines can fit around various blocks here, similar to where we expect them in real life](https://i.imgur.com/FxWjtlf.jpg) The vending machine works in many virtual worlds, like the desert city of Lut Gholein. ![Decentraland Vending Machine](https://i.imgur.com/dIIRPKo.jpg) We've recently did some work converting the environment model to a GLTF file where the materials show up much better. ![GLTF version](https://i.imgur.com/mht1CON.jpg) There's other work to do from here as well, hopefully with a bigger team. ERC721 falls under VRBA's interests for objects that can be interoperable between virtual worlds. ![Three current main initiatives of VRBA](https://i.imgur.com/Y70f5kq.jpg) --- **UPDATE** April 2019 ![Arcade example 1](https://i.imgur.com/OpHXqPr.jpg) ![Stadia, physical delivery, youtube movie and twitch stream](https://i.imgur.com/qBLeEcE.jpg) ![Arcade and vending machines to blockchain games](https://i.imgur.com/wArbgnz.jpg) ![Near the exit](https://i.imgur.com/MrwxrcG.jpg) ![Exit to cryptovoxels](https://i.imgur.com/n0CZG69.jpg) ![Arcade in coworking space](https://i.imgur.com/jzCkN34.jpg) ![To be continued](https://i.imgur.com/7PgcLhE.jpg) ### To Do - Fix pointerlock issues with native clients (HiFi / JanusVR) - Test more vending machines and newsstands concepts with VRBA - HiFi component for Opensea vending machine in marketplace? - Add buttons and sound effects - Create a button or door handle to open the vending machine door - Write beautiful documentation and record epic videos # [JANUS EXPO](https://hackmd.io/@XR/conf) See the machines up close at the corner of the ballroom showfloor. ![Arcade cabinet, change machine, and vending machine](https://i.imgur.com/56QjjLQ.jpg) ### Resources Automating Trust <https://inthemesh.com/archive/automating-trust/> Brainstorm Document <https://pad.deskcloud.io/p/virtuavendor> Image Album (Blender) <https://imgur.com/a/blrFY> Test Site <https://vesta.janusvr.com/bepis/vending> Asset Kit <https://vendingkit.glitch.me/>