ynagatomo / ARSimpleSea

A minimal iOS AR app that displays a wave animation using RealityKit2 Geometry Modifier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AR Simple Sea

AppIcon

A minimal iOS AR app that displays a wave animation using RealityKit2 Geometry Modifier.

  • Xcode 13.3
  • Target: iOS / iPadOS 15.0+
  • SwiftUI, ARKit, RealityKit 2, Metal

In iOS 15.0+, you can use RealityKit 2 Geometry Modifier to modify vertices of 3d models with Metal code. This project shows a sample code that displays a wave animation using a Geometry Modifier. After some seconds, the image texture of the 3d model will be changed. This is also RealityKit 2's feature. Please check the code.

The project includes a USDZ file that has sphere object and plane object. I made it with Blender. The plane is for the surface and has a lot of vertices. With the Geometry Modifier of RealityKit 2, you can move the vertices and make a wave animation. Please check the Metal code and modify as you like.

Image

This is a minimal implementation. Please modify anything you want, and create your own apps.

Image Image GIF

MIT License

About

A minimal iOS AR app that displays a wave animation using RealityKit2 Geometry Modifier.


Languages

Language:Swift 89.0%Language:Metal 11.0%