ACM Competition - Fall 2014

A simple virtual reality engine

February 8, 2015

What is ACM?

The real ACM is a society for people in the computing field. At Miami, it is an organization for students with an interest in programming and computer science.

Fall of 2014, the club decided to have a programming competition aptly named the "Do Something Awesome" competition. Our team submitted this project which ended up winning the competition.

The Project

The purpose of the project was to take 3D coordinates (x, y, and z) and convert them into two sets of 2D coordinates, one for each eye. By using Google Cardboard glasses and a smartphone, the left half and right half of a phone screen could be viewed by the two eyes separately, thus creating a 3D image.

How It Works

This was accomplished by creating a very simple model of how our eyes work in 3D and then converting it into JavaScript. See slides on how the model was built to view the different parts of the model and how it was made.

Model The model I created to convert 3D to 2D (x plane)

The demo we created to show this model in action can be seen below. It renders three objects that rotate around each other. You can also view the source code to see the html and javascript behind the demo.

The important part to remember is that the x, y, and z of the objects are moving in circles in a 3D plane and what you see on the screen is rendered from those x, y, and z points.

View Demo