RSS Feed
Blog
-
Physics in RealityKit
31.05.2022To have a model entity to take part in physics you need to add a collision shape and a physics body: -
Procedural Mesh in RealityKit
31.05.2022Sometimes you need to create a mesh at runtime. You might want to allow the user to create custom geometry or you're creating geometry based on information you only have at runtime like the size of the detected plane. Meshes consist of triangle… -
Interactivity in RealityKit
31.05.2022For mobile AR you need to translate interactions on a 2D screen to the 3D scene. This is done with raycasting which involves shooting a ray from the camera and checking what objects the ray hits. ARView provides two main raycasting methods, one is f… -
Setting up Unity for VR and AR
09.05.2022The VR and AR templates in Unity use the built-in renderer so if you want to use URP renderer you will need to set things up manually. It's presumed you have downloaded Unity Hub and have installed a version of Unity. This tutorial uses Unity v… -
WebXR with Babylon.js
31.12.2021In a previous blog post I introduced WebXR using Three.js. Three.js is the most used 3D web library but in second place is Babylon.js. Babylon.js is more "batteries included" and includes things like physics which makes the bundle size lar… -
Getting started with WebXR and Three.js
23.12.2021WebXR is VR and AR for the web. It started off as WebVR but when AR started to be implemented natively on smartphones they scraped the draft standard and started from scratch on WebXR. WebXR is supported on Android devices with Chrome 79 or above. T… -
Shaders in RealityKit
13.12.2021In RealityKit 2 Apple now allows you to create vertex and fragment shaders for materials. You specify the shaders using CustomMaterial, similar to how you add shaders to ShaderMaterial in Three.js. But one major difference with RealityKit's app…