/arkit-graffiti

A demo that shows painting on walls with ARKit+SceneKit

Primary LanguageSwiftApache License 2.0Apache-2.0

arkit-graffity-demo

Bjarne Lundgren / bjarne@sent.com / @bjarnel

UPDATE Feb-2018: Added ARkit camera tracking state on screen.

This is a quick demo with vertical planes "tracking" derived from my other demo (arkit-occlusion-demo). It allows you to draw graffity on the walls/vertical planes. Features:

  • map walls (so they are tracked relative to floor)
  • draw simple decals on each tracked walls (using SpriteKit!)
  • vary decal size by distance to walls
  • allow you to pick from different colors to paint in

This requires, Xcode 9, iOS 11 and a relatively recent iOS device.

You can pretty much do want you want with the code, but please provide attribution, also if you use it to create a video.

License

Copyright 2017 Bjarne Lundgren

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.