Raymarching Distance Fields: Concepts and Implementation in Unity
Technical Writeup Posted on 01 October 2016 by Flafla2
Raymarching is a fairly new technique used to render realtime scenes. The technique is particularly interesting because it is entirely computed in a screen-space shader. In other words, no mesh data is provided to the renderer and the scene is drawn on a single quad that covers the camera’s field of vision. Objects in the scene are defined by an analytic equation that describes the shortest distance between a point and the surface of any object in the scene (hence the full name Raymarching Distance Fields). It turns out that with only this information you can compose some strikingly complicated and beautiful scenes. Further, because you aren’t using polygonal meshes (and are instead using mathematical equations) it is possible to define perfectly smooth surfaces, unlike in a traditional renderer.
This article will first discuss the fundamental concepts and theory of raymarching. Then it will show how to implement a basic raymarcher in the Unity game engine. Finally it will show how to integrate raymarching practically in a real Unity game by allowing raymarched objects to be occluded by normal Unity GameObjects.
Project Description: Ellis Island Virtual Reality Experience
Project Completed on 23 June 2016, Posted on 24 October 2016 by Flafla2
From September 2014 to June 2016 I was the Project Lead and Lead Programmer on a Virtual Reality project at the Bergen County Academies (my high school) in collaboration with the the National Park Service’s Ellis Island / Statue of Liberty National Monument. The idea of the project is to digitally recreate Ellis Island as it was between the years 1918-1924, to be viewed in a Virtual Reality headset. At the time of writing, the project supports Oculus Rift, Oculus DK2, and HTC Vive in both seated and roomscale paradigms. The project is still ongoing, and I passed it on to current students when I graduated in 2016.
In this writeup I detail some of the systems that I developed for the project. Please note that the content here is in-development and in-beta and is subject to change.
» read more
HTC Vive Teleportation System with Parabolic Pointer
Project Posted on 17 May 2016 by Flafla2
Here I present an easy-to-use teleportation system for the HTC Vive and the Unity game engine. The system is modelled after Valve's game for the Vive The Lab, a game where the player can traverse VR environments that are bigger than the play area. You can check out the project source code here on Github. The Github project is open source and licenced under the MIT licence.
Myself demoing the system in the HTC Vive
» read more
Project Posted on 16 May 2016 by Flafla2
Here is a short demo reel of my proudest work that I created for undergraduate university applications. It highlights all of my major Github projects up to October, 2015. You can check out the video below.
Wii Remote API for Unity and C#
Project Posted on 16 October 2015 by Flafla2
Within the past 10 years motion controls have become an integral part of gaming and console game development. The Wii Remote specifically has managed to capture a generation of casual gamers and has created a completely new genre of casual games. However, none of these controllers have managed to permeate the PC gaming market despite their potential. In response to this, I have created a cross-platform Wii Remote communication layer for Unity (and C# with minimal changes - primarily debug messages). The API allows Unity developers to integrate the Wiimote and popular extension controllers (such as the Nunchuck, Classic Controller, and Wii Motion Plus) into their games. It also supports the Wii U Pro controller (which behaves as a Wiimote with a special extension controller).
Here is a video of the some of the API's features:
1 | 2