text
stringlengths
0
1.36k
**Alex Sexton:** AR.js v15...
**Rachel White:** Okay, so AR.js is this really awesome library that you can use now that is augmented reality for the web using AR toolkit. It's built of a couple other different technologies. It's using three.js, it's using Mozzila's A-Frame, which is -- if you haven't messed around with A-Frame, what it does is it a...
What AR.js does is it blends all of these things together and allows you to use digital markers. They're using hero markers, which are these squares that have...
**Alex Sexton:** Little Greek burritos...
**Rachel White:** No! \[laughs\] They're like QR code. Basically, any kind of digital marker is just using image processing with nearest neighbor type of math-y things... I'm great at explaining things technically. Basically, what AR.js does is -- unfortunately, if you have an iOS phone it doesn't work, so I can't even...
Then it uses the AR toolkit, which was originally elaborated in C, and they've made it work with JavaScript. It does that nearest neighbor processing of the hero marker, and it assigns your 3D object so that when you use your phone in a WebGL supported browser and you point it at the marker, either on a computer screen...
It's really cool. A-Frame is really accessible for people that are just starting out in JavaScript. Their documentation is amazing, and pretty much what this AR.js library does is it allows you to take -- they basically took all of the difficult steps out of the equation. Everything is built together for you, the docum...
**Alex Sexton:** This is only a slight side check... So it runs at 60 FPS, and if you look at the pictures of it, it's like this blob that sits on a piece of paper, and you can look around and the blob stays on the piece of paper, which is pretty nifty. You can move it and animate it and things like that; you can spin ...
**Mikeal Rogers:** \[44:18\] It's because you're not using WebGL! \[laughs\]
**Alex Sexton:** I know... I'm just always so amazed that the difference -- everybody is almost hitting 60 FPS, but the place where we're starting out is always so different... It always blows my mind when these things work quickly, that's all I wanted to say.
**Rachel White:** I mean, obviously that just means that the future of web is that it's all gonna be holograms...
**Alex Sexton:** I'll buy it. \[laughter\]
**Rachel White:** Yeah... I'm into it. I actually would be really interested in finding out -- I know that there's a device called the Leap Motion. It's a USB device that lets you essentially use your hand -- I think it's like two cameras, so it's essentially scanning the space above the Leap Motion, and when you put y...
I'm just thinking of all the really weird and awesome stuff that people can build with this. This is the stuff that I get excited about.
**Alex Sexton:** Yes, and thanks in advance to Leap Motion for sponsoring the JS Party podcast, and also thanks in advance to the next company I'll give free advertising to, the Myo armband I backed on Kickstarter a long time ago. It's not quite positional, so it might not know exactly where your hand is (I feel like y...
**Rachel White:** Yeah, I remember seeing that.
**Alex Sexton:** I've actually given a few talks where you hook up the next slide and previous slide, and it's just like swipes in the air or behind your back, and then you can start animations or different things like that with squeezes... There's a whole set of default things for Keynote and stuff. It's pretty nifty,...
You could just put a marker on your hand to know a position; you can get an RFID tattoo -- or not an RFID, a QR code. Rachel, you have the RFID baked into your hand, right?
**Rachel White:** Yeah, I have an RFID chip in my hand.
**Alex Sexton:** Yeah, that's in solidarity with your pets.
**Rachel White:** Yeah, that's how much I love cats. I'm really dedicated.
**Alex Sexton:** But I think you could do some really cool stuff with not just the position of your hand, but the motion of your fingers and stuff like that, like picking it up versus pushing it, versus all that stuff. Maybe a Leap Motion plus a Myo... You just mix them all together and get a drone in there somehow...
**Rachel White:** Yeah, every single kind of crowdfunded device - put them all together and see what you can get.
**Mikeal Rogers:** This is a really cool project. This reminds me... When they first used M scripting to compile down Doom and these 3D games, when they were first doing 3D standards in the browser, and those demos that nobody really ever used were what ended up pushing the web's implementation of WebGL forward.
**Alex Sexton:** \[48:06\] Yeah, I mean... Brendan tore the conference circuit for like three years on those demos.
**Mikeal Rogers:** And he's so bad at playing it, too... It was so funny.
**Alex Sexton:** He eventually - after dying so quickly, so fast, so many times in front of 500 people - hacked the parameters to the game to where he can't die; he plays in god mode now when he does the demo.
**Rachel White:** Are you talking about the Sentry Chicken talk?
**Alex Sexton:** Yeah... The same version of that talk has different games.
**Rachel White:** Okay.
**Alex Sexton:** Actually, one thing mashup I'd love to see with this - just spitballing here - is some sort of like... If you use a piece of paper, and then you're able to kind of draw shapes, and then press some button on your keyboard and then it AR-ifies it to where you can pick up the shape... Does that make sense...
**Rachel White:** Well, there is something that exists like that. Not in the JavaScript world, but there is an application called Vuforia, that allows you to create those augmented experiences where you can interact with this. So maybe somebody should do that.
**Alex Sexton:** Yeah, I look forward to one of our listeners from this week presenting that on the show next week. It just takes one week, right?
**Mikeal Rogers:** Yeah, yeah. \[laughs\] So have you all done any WebGL programming at all, or played around with any of the raw stuff?
**Rachel White:** Yeah, I have. I have a bit. I'm learning A-Frame, I'm messing around with a bunch of other various three.js stuff, and I've done some WebGL video game things. This is something that I'm super interested in. Plus, it's happening so fast... People are making cool stuff with this, and I find that the peo...
**Alex Sexton:** I haven't done a ton of WebGL stuff. A little bit for some of the Stripe splash page stuff, but I have met Mr.doob, which I feel like it's pretty much the same thing.
**Mikeal Rogers:** Okay, there you go. I've tried to use three.js and I really couldn't get my head into it. It's one of those libraries that's just so massive. I could take a demo and kind of hack it up, but I couldn't really get my head around it.
**Rachel White:** So wait... Let me get this straight. You'll build an oven to bake your own bread, but you didn't wanna do a deep dive into three.js?
**Mikeal Rogers:** Well no, it's because to get at the low-level constructs that I actually wanna figure our in order to understand how everything is built, there was too much code in the way. What I eventually ended up finding though is Mikola Lysenko and Substack live on the big island in Hawaii now next to a volcano...
**Rachel White:** Wait, wait...
**Alex Sexton:** You've gotta skip over that kind of thing...
**Rachel White:** Wait, Substack lives on an island in Hawaii now?
**Mikeal Rogers:** Yeah, Substack and Mikola and Marino all moved to the big island in Hawaii, because it's cheap and because coconuts have 1,200 calories in them.
**Rachel White:** Okay...
**Mikeal Rogers:** \[laughs\] Yeah, it's amazing.
**Alex Sexton:** You have to eat the skin in order to get all 1,200.
**Mikeal Rogers:** \[51:59\] \[laughs\] No, but they are building this thing called Regl. Essentially, it's various substacks modules philosophy, and Mikola is just this amazing math dude, doing all these kinds of crazy algorithms. It essentially gives you WebGL, but then adds a bunch of features and kind of modules, a...
It's really well put together, and they've done a really amazing job with the tooling and the debugging side of it. I was actually able to build much cooler, quicker things with Regl than I could with three.js. Even though there's far less big demos and stuff written with it yet, I did find it easier to just kind of pi...
Anyway, I think we're nearly good. We're gonna do picks now... It's time for picks. I hope you all picked something that you like that you can link to, or you can just pull one of the many things that you've already mentioned in the podcast so far.
I'll go back and I'll just pick Regl, because it's an awesome library; I think they did a great job, and I love those guys. I hope they don't die in a volcano eruption. Oh, and I'll plug bits.coop. Mikola and Substack do consulting for any 3D programming stuff that you need - or really just any programming that you nee...