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… -
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…