Made by Andrew Chen for Mrs. Martin's Pd3 "English 12 AP" class.
I was inspired by the Brain Games intro to automate the process of creating a 3D work of art that looks completely different depending on the viewing angle.
There are two main components to the project
- Grid editor
- Grid plotter
The grid editor is accessed by running the "main_editor" file. It looks like this:
The concept is that you get to draw on each of the 18x18 canvases what you want the final product to look like from a certain angle
There are 2 buttons for each canvas:
- Clear (clears the canvas)
- Fill (fills the entire canvas)
There are also two buttons at the bottom of the entire window:
- Pixelate (The final object is rendered by a bunch of cubes; this button pixelates your drawing so you can see exactly what to expect in the final product.
- Save (Saves your drawings and closes the grid editor)
Each of the 3 views (XZ, YZ, XY) represent what it will look like if you view the 3D object from a location perpendicular to that plane.
The grid plotter is accessed by running the "main_plotter" file. It looks like this:
This is a menu to choose which grid you want to plot. You should see 4 grids in the menu (the first three are built-in, the last one is the grid you made using the editor):
- Faces (happy face, sad face, and surprised face)
- Shapes (circle, rectangle, and triangle)
- Brain Games (One view is BRAIN, one view is GAMES, and there is no XY view)
- Most Recent Save (Your most recently saved grid using the grid editor)
Clicking on any of the options and then the "Display Plot" button will close the menu and open up a 3D plotly plot in a browser window. It should look something like this:
You can click and drag to rotate the figure to view it from all 3 angles (see the gif below!)