3D Pumpkin Designer

Code from pumpkin 3D designer

In one of my mechanical engineering classes, I spent 4 months working with GUI design and OpenGL 3D graphics in a Computer-Aided Engineering context. As a final project for the class, I created a program for making pumpkin “shadows” at Halloween. A “shadow” refers to carving a shape on the back of the pumpkin so that it casts an image on the wall behind it (see an example of a pumpkin shadow here).

While the 3D shadow pumpkin designer program never fulfilled my vision for it, it did achieve enough to get a decent grade in the class. The program involved a GUI made in Qt Creator’s WYSIWYG GUI designer, and one panel featured an interactive 3D model of a pumpkin, courtesy of my hand-coded OpenGL. The pumpkin rotated in response to clicking and dragging on its window, so users could examine it from various angles.

View Pumpkinwij.cpp for a sample of my OpenGL programming.
Download pumpkinwij.cpp (6 KB)