Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Chris Jungmann jungchris

🏠
Working from home
View GitHub Profile
@jungchris
jungchris / ViewController.swift
Created Nov 20, 2020
Detected Objects with Video Overlay
View ViewController.swift
//
// ViewController.swift
// helloVideoOnObjectDetected
//
// Created by Chris Jungmann on 11/20/20.
//
import UIKit
import SceneKit
import ARKit
@jungchris
jungchris / ViewController.swift
Created Nov 20, 2020
Swift code to detect objects in a scene and overlay a spriteKit Scene text object
View ViewController.swift
//
// 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 Sep 18, 2020
Simplest Video Add to SceneKit - Lesson 1
View ViewController.swift
import UIKit
import SceneKit
import ARKit
class ViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet var sceneView: ARSCNView!
var player : AVPlayer?
@jungchris
jungchris / ViewController.swift
Created Sep 18, 2020
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
View ViewController.swift
// 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 Sep 17, 2020
Create a horizontal plane detector and replace the surface with an image
View ViewController.swift
import UIKit
import ARKit
import SceneKit
class ViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet weak var sceneView: ARSCNView!
let configuration = ARWorldTrackingConfiguration()
@jungchris
jungchris / ViewController.swift
Created Aug 21, 2020
Animations and Interactions of "Solar System" in ARKIt
View ViewController.swift
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 Aug 7, 2020
View an ARKit Solar System In Your Room
View ViewController.swift
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 Jul 10, 2020
ARKit iOS Workshop 4 - Hit Testing and Basic Anmiations
View ViewController.swift
import UIKit
import SceneKit
import ARKit
class ViewController: UIViewController, ARSCNViewDelegate {
@IBOutlet var sceneView: ARSCNView!
let configuration = ARWorldTrackingConfiguration()
@jungchris
jungchris / VieController.swift
Created Jun 19, 2020
ARWorkshop 3 Grafitti in 3D
View VieController.swift
//
// 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 Jun 17, 2020
Functions to Add Simple Shapes in ARKit for iOS Workshop
View ARKitWorkshop2.swift
class ViewController: UIViewController {
@IBOutlet weak var sceneView: ARSCNView!
// declare world tracker
let configuration = ARWorldTrackingConfiguration()
override func viewDidLoad() {
super.viewDidLoad()