Tuesday, January 25, 2022

Show HN: Run NPM Scripts with .envs https://ift.tt/3nXtFfa

Show HN: Run NPM Scripts with .envs https://ift.tt/385BtDS January 26, 2022 at 12:49AM

Show HN: A full AR helicopter action game built as a Snap lens https://ift.tt/3tYNAOp

Show HN: A full AR helicopter action game built as a Snap lens I built a complete game using Snap's AR platform in about 6 weeks. I'd been intrigued by Snap's AR ambitions and wanted to kick the tires on their platform. The YouTube video description contains a link to the Lens: https://ift.tt/3nYHo5b... How to play: - Joypad y axis moves the helicopter along the ray pointing from the camera. You can therefore tilt the phone up to fly "up". - Altitude is also controlled by aiming the phone. The helicopter tries to match the altitude of a point that is fixed in front of the camera. So you can move up by aiming up or by actually lifting the phone higher. - Joypad x axis strafes. - If you lose track of the helicopter, a blue arrow will appear after about 5 seconds. - Blow up enemies and try to stay alive :) How it works under the hood: - Loads of JavaScript. Lenses are surprisingly programmer-friendly. As a non-artist, this is great. Almost everything can be driven completely by code, although most creators opt to use pre-made components with minimal scripting. - The game uses a custom physics engine with OBB-based collision detections that I wrote from scratch. Snap now has integrated physics that seem to be based on PhysX (i.e., the same as Unity's) but this was released well into my development process after I had already rolled my own. - I opted not to use environmental mesh reconstruction because it is performance intensive and gives dubious results on lower-end phones. When I started development, it was only enabled for Lidar-based phones but is since available everywhere. - I instead detect horizontal planes using an API that Snap hasn't really documented. I found a snippet of code in their API docs and opened up the Lens Studio .exe to find the names of the other plane events I needed. - Planes are used to create collision boxes that extend to the floor so the helicopter can bump into furniture. - AI-controlled enemy helicopters plot routes using a heightmap generated from the plane data to avoid colliding with obstacles when possible. Takeaways: - This has arguably become my favorite AR prototyping platform. Much faster idea-to-PoC iteration time than anything else out there. - The platform is surprisingly full-featured. - The Lens Studio Editor is remarkably polished and, despite some bugs here and there, is very stable. - The deployment story is second to none. Deploying to the phone involves a single click and is done over the Internet (no need for any tethering or wireless pairing). - Debugging on-device is still challenging (all you can do is log a few lines) but I was assured that an actual debugger is coming soon. - Economic viability: unfortunately, it is not really possible to directly monetize lenses. Most creators contract with brands to create branded lenses. Future plans: - I'll definitely be keeping an eye on Snap's ecosystem. - No plans for any more full-fledged lenses but I do have some ideas for prototypes I'd like to try in anticipation of commercially viable mixed reality HMDs hitting the market soon (e.g., Meta's Project Cambria). - I may update the game with a tutorial mode and a co-located multiplayer mode (co-op play or PvP) provided I get the necessary support from the Snap dev team. Hope you enjoy and are inspired to dive into AR if you haven't already :D https://www.youtube.com/watch?v=O_1dJ_x7vXw January 26, 2022 at 12:57AM

Show HN: Moderator,lightweight peer4peer anon forum https://ift.tt/3fZSDGl

Show HN: Moderator,lightweight peer4peer anon forum hello all! here's a link to my little pinteresting like forum that stores no data on the server and uses IPFS for image storage. The design aesthetic is that everything would in 64kb of memory so we're going for a collapse-proof low bandwidth experience. this makes moderator really fast. https://moderator.rocks is the web preview, a flutter client is in the works at https://ift.tt/32wqdRb take a look, post something fun, ask questions. I'm also on twitter @moderatorium in case interested. Have fun! January 25, 2022 at 11:53PM

Show HN: My new platform. Check it out https://ift.tt/3AvRHTq

Show HN: My new platform. Check it out This platform is an experimental social network solely based on soundclips. SONAR is meant to encourage genuine conversation and entertainment. I believe audio culture in the form of this app could create a community that is safe, smart, and more human than many of the current social media platforms. https://ift.tt/3H3weUf January 25, 2022 at 10:25PM

MP समेत 8 राज्यों में 5 डिग्री तक गिरेगा पारा:दिल्ली में 9 साल बाद सीजन का सबसे ठंडा दिन, 26 जनवरी के बाद शीतलहर और तेज होगी


via देश | दैनिक भास्कर https://ift.tt/3Av7e61

Sunday, January 23, 2022

सीता की खोज में राक्षसी के जाल में फंसे हनुमान:जब मच्छर जितना आकार करने पर भी नहीं बचे रामभक्त, मुक्का मारकर किया लंका में


via देश | दैनिक भास्कर https://ift.tt/3nRjOYc

Show HN: Grams.io – calculate how long drug(s) stay in body https://ift.tt/3FUnM8C

Show HN: Grams.io – calculate how long drug(s) stay in body https://ift.tt/3g7B0od January 24, 2022 at 05:40AM

Show HN: Insta – an enjoyable snapshot testing tool for Rust https://ift.tt/3rGKCvn

Show HN: Insta – an enjoyable snapshot testing tool for Rust https://insta.rs/ January 24, 2022 at 03:50AM

अरुणाचल से लापता लड़के की हाेगी वापसी:चीनी सेना ने कहा- हमारी सीमा के भीतर मिला; सांसद तापिर गाओ ने चीनी सेना पर अगवा करने का आराेप लगाया था


via देश | दैनिक भास्कर https://ift.tt/3ItqALB

Show HN: Shoot the neural network before it shoots you https://ift.tt/3nQUOjX

Show HN: Shoot the neural network before it shoots you https://ift.tt/3FuyoeT January 24, 2022 at 05:14AM

भास्कर Explainer:ओमिक्रॉन का स्टेल्थ वर्जन क्या है, नए वर्जन की पहचान टेस्ट किट से भी नहीं हो पा रही


via देश | दैनिक भास्कर https://ift.tt/3rMiqY3

Show HN: Maroofy – Search for songs that sound similar https://ift.tt/341wsN2

Show HN: Maroofy – Search for songs that sound similar https://maroofy.com/ January 24, 2022 at 05:14AM

Saturday, January 22, 2022

कोरोना देश में LIVE:लगातार तीसरे दिन घटे नए केस; 24 घंटे में 3.31 लाख मामले सामने आए, 520 लोगों की मौत


via देश | दैनिक भास्कर https://ift.tt/3Amnczr

Show HN: A desktop HN reader client in Rust/egui https://ift.tt/3KAy9BZ

Show HN: A desktop HN reader client in Rust/egui A little toy HN client for the desktop that I've been playing around with this week. https://ift.tt/3qNXS1X January 23, 2022 at 04:06AM

Show HN: Monitor for displaying process traffic on Mac Status bar https://ift.tt/3tQ4nmJ

Show HN: Monitor for displaying process traffic on Mac Status bar 1. The tool show network speed by process 2. Adapt dark mode 3. Use nettop's delta mode to make statistics more accurate https://ift.tt/3x0xToa January 22, 2022 at 09:19PM

Show HN: Perspec – Scriptable desktop app to correct the perspective of images https://ift.tt/3GSpTv2

Show HN: Perspec – Scriptable desktop app to correct the perspective of images https://ift.tt/34axR3X January 23, 2022 at 03:27AM

Show HN: Simple Wordle solver in command line in Python https://ift.tt/3GVKzSH

Show HN: Simple Wordle solver in command line in Python https://ift.tt/3qSd525 January 23, 2022 at 02:25AM

Show HN: Create flashcards with Space CLI https://ift.tt/TqYs4ea

Show HN: Create flashcards with Space CLI Hey, I created seven years ago a flashcard app with a main focus on UX. In the last months I added...