Skip to content

Instantly share code, notes, and snippets.

View jungchris's full-sized avatar
🏠
Working from home

Chris Jungmann jungchris

🏠
Working from home
View GitHub Profile
@jungchris
jungchris / ViewController.swift
Created November 20, 2020 17:35
Detected Objects with Video Overlay
//
// ViewController.swift
// helloVideoOnObjectDetected
//
// Created by Chris Jungmann on 11/20/20.
//
import UIKit
import SceneKit
import ARKit
@jungchris
jungchris / ViewController.swift
Created November 20, 2020 15:19
Swift code to detect objects in a scene and overlay a spriteKit Scene text object
//
// ViewController.swift
// Object Recognition
//
// Based on code created by Brian Advent on 14.06.18.
//
import UIKit
import SceneKit
import ARKit
@jungchris
jungchris / ViewController.swift
Created September 18, 2020 16:07
Simplest Video Add to SceneKit - Lesson 1
import UIKit
import SceneKit
import ARKit
class ViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet var sceneView: ARSCNView!
var player : AVPlayer?
@jungchris
jungchris / ViewController.swift
Created September 18, 2020 00:18
Detect a vertical plane and project a video on it. An image is loaded as a placeholder and replaced by the video when 'play' button is pressed
// this code requires two assets, an image "ocean" and an mp4 "team-walking"
import UIKit
import ARKit
import SceneKit
class ViewController: UIViewController, ARSCNViewDelegate {
// connections to storyboard
@jungchris
jungchris / ViewController.swift
Last active September 17, 2020 21:47
Create a horizontal plane detector and replace the surface with an image
import UIKit
import ARKit
import SceneKit
class ViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet weak var sceneView: ARSCNView!
let configuration = ARWorldTrackingConfiguration()
@jungchris
jungchris / ViewController.swift
Created August 21, 2020 18:06
Animations and Interactions of "Solar System" in ARKIt
import UIKit
import SceneKit
import ARKit
class ViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet var sceneView: ARSCNView!
override func viewDidLoad() {
super.viewDidLoad()
@jungchris
jungchris / ViewController.swift
Last active August 7, 2020 19:11
View an ARKit Solar System In Your Room
import UIKit
import SceneKit
import ARKit
class ViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet var sceneView: ARSCNView!
override func viewDidLoad() {
super.viewDidLoad()
@jungchris
jungchris / ViewController.swift
Last active July 10, 2020 16:04
ARKit iOS Workshop 4 - Hit Testing and Basic Anmiations
import UIKit
import SceneKit
import ARKit
class ViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet var sceneView: ARSCNView!
let configuration = ARWorldTrackingConfiguration()
@jungchris
jungchris / VieController.swift
Created June 19, 2020 18:14
ARWorkshop 3 Grafitti in 3D
//
// ViewController.swift
// helloARAppWorkshop2
//
// Created by Chris Jungmann on 6/17/20.
// Copyright © 2020 Chris Jungmann. All rights reserved.
//
import UIKit
import SceneKit
@jungchris
jungchris / ARKitWorkshop2.swift
Last active June 17, 2020 20:42
Functions to Add Simple Shapes in ARKit for iOS Workshop
class ViewController: UIViewController {
@IBOutlet weak var sceneView: ARSCNView!
// declare world tracker
let configuration = ARWorldTrackingConfiguration()
override func viewDidLoad() {
super.viewDidLoad()