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… -
Introduction to RealityKit
25.05.2022RealityKit is the rendering and physics part of AR on iOS while ARKit is the sensing part. ARKit works out where the virtual camera is and detects things like planes for you to anchor 3D content to. When you create an AR app you will spend most of y… -
Unity's Scriptable Render Pipeline
15.05.2022Scriptable render pipeline is a way to customize the render engine in Unity using C#. It hooks into the C++ of the render engine. It's an advanced feature that beginners don't really need to worry about. Unity comes with two scriptable ren… -
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… -
Shaders in Three.js
02.01.2022Shaders are programmes that run on the GPU. The reason they're called shaders is that originally they just handled the shading of 3D objects but have since expanded beyond that. They require a different mindset than conventional programming bec… -
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…