Radiosity Project for CG2

Goal:
For my quarter-long independent project for CG2, I chose to build a radiosity lighting program. Images will continue to be posted as progress is made!

Generation 2:


This video shows the smoothed results of the lighting calculations, without extra bounces. Here, color is accounted for in the formula, and the form factors undergo strong calibrating to remove distortion and add a lambertian falloff factor. The results are smoothed between patches by manually interpolating the shades at the corners of patches, and then letting OpenGL autmatically interpolate the rest of the surface.

Generation 1:



Above is the first very first result from my lighting system. Light comes from one patch on the roof, without bouncing. The falloff rate of the light here is strange because no correction is done at the hemicube level.

Raytracer for "Computer Graphics 2"


















For CG2, we are developing raytracers. I chose to try to make one that ran at real-time speeds while still meeting all of the class's requirements. You can see that it worked great! The system features Phong and Blinn-Phong lighting, reflections, bumpmapping, and also texturing with optional bilinear filtering.

This was written from scratch with no extra libraries. (Well, technically I use OpenGL to display the finished frames to the window, but that is it, and anything could be used in its place.)

Click here to see more photos from this project

Video of textured spheres with an animated fractal on the floor:

Projects from "Embedded Systems"










Left: Motorolla HC12 development board
Right: Embedded Intel Pentium board


In the fall of 2008, I took a course introducing me to Embedded and Real-Time Systems. We used two different platforms. First was a Motorola HC12, which was programmed on the assembly code & interrupt level. Later, we worked with an embedded Intel computer running QNX Neutrino, which we programmed using C with standard POSIX libraries.

Projects from this course:


Using ultrasound senors to detect object's position, speed, and acceleration.




Controlling a servo with integrated PWM on the HC12, and then implementing our own PWM using interrupts on the Intel board.


1-bit networks between the HC12 and the Intel Board, and resolving timing and synchronization across the different platforms.




Analog to Digital signal conversion.


Independent work:
Homemade oscilloscope using the HC12. Variable voltage was input into the HC12, the signal was processed to to find the frequency and amplitude, and an ASCII stream was sent to a desktop computer's terminal via a serial cable.

My Lecture on Cross-Platform SDL & OpenGL

I recently presented at a Thursday Night Tech Talk held by RIT's Society of Software Engineers. My chosen topic to share with the group was developing cross-platform 3d applications using SDL and OpenGL. I presented slides on the subject, and also built an example program that runs identically on OS X, Ubuntu, and Windows, using the 100% of the same code on each platform. The only difference is what each platform's c++ compiler produces with the code.

The 39 minute video of my presentation is available here on the SSE website.
Lecture slides are available as Powerpoint Format or as a PDF.

The source code for the example program is available here. Other than just setting up a graphics system, it might also contains simple functions for loading bitmaps as textures, and 3d .obj files.

Seadoo Game

For my final CG1 project, I chose to finally work on a concept I had been thinking about for quite a while, animated water. This water is reflective and the waves move via a summation of sin waves. The landscape, seadoo, and rider are loaded from 3d .obj files. This project uses OpenGL and GLUT.

Click here to download source code and OS X executable
Note: Please run from a terminal, and press spacebar to start user interaction.

Tesselation Assignment




















The source code and an OS X executable can be downloaded here.

Software Renderer for CG1



Above: Filled polygons rendered from scratch with edge-list algorithms.

Below: Polygon edges with clipped regions, and the test-screen for my implementation of a 'midpoint' line drawing algorithm.


Source code and prebuilt OSX executables available here.

Projects from "Intro to Animation"


This puppet uses two types of legs, and they switch between shots.

Other videos I produced from for this class:

Sleight of Hand: Drums

Dark Matter

Animated Skittles

Operation Ortho (CG1 Helicopter game)

For the first project in my Computer Graphics course, I created a little overhead shooting game. I called it Operation Ortho because the goal of the project was to show many types of OpenGL primitives in an orthographic projection. Notable features are animated water, and animated smoke trail effects.



Download:
This game can be downloaded here for OSX (Intel) You may need to chmod 777 to give it permission to run.

Controls: Clicking on window to starts the game, arrow keys to move, and spacebar to shoot. The enemies do not shoot back at you, so the gameplay is not too advanced!

The source code, documentation, and makefile can be downloaded here.