To run this project you will need to have Java 13.0.2 or higher, as well as Maven 3.8.6 or higher.
You can run any:
- Scene in the package:
graphy.main.scene
- Drawing in the package:
graphy.main.drawing
The project can be run from an IDE or by using the scripts in the project directory.
Depending on your operating system use either the .bat scripts (Windows) or the .sh scripts (Linux).
- On Windows:
- The syntax is: graphy.bat (scene|drawing) <Class>
- Examples:
- Run the Polyhedra Explosion Scene:
graphy.bat scene PolyhedraExplosion
- Run a Mandelbrot Drawing:
graphy.bat drawing Mandelbrot
- Run the Polyhedra Explosion Scene:
- On Linux:
- The syntax is: graphy.sh (scene|drawing) <Class>
- Examples:
- Run the Polyhedra Explosion Scene:
./graphy.sh scene PolyhedraExplosion
- Run a Mandelbrot Drawing:
./graphy.sh drawing Mandelbrot
- Run the Polyhedra Explosion Scene:
Alternatively you can run it with Maven directly from the command line:
mvn compile && mvn exec:java -Dexec.mainClass="graphy.main.scene.PolyhedraExplosion"
While the controls may vary between different Scenes and Drawings, the default hotkeys are as follows:
HOTKEY | EFFECT |
---|---|
Click + Drag |
Rotate Camera |
W , A , S , D |
Rotate Camera |
Scroll |
Zoom In / Out |
Q , Z |
Zoom In / Out |
Up , Left , Down , Right |
Move Camera |
E |
Toggle Perspective |
1 |
View + Control: Camera 1 |
2 |
View + Control: Camera 2 |
3 |
View + Control: Camera 3 |
4 |
View: Camera 1 |
5 |
View: Camera 2 |
6 |
View: Camera 3 |
7 |
Control: Camera 1 |
8 |
Control: Camera 2 |
9 |
Control: Camera 3 |
/ |
Display Mode: Edge |
* |
Display Mode: Vertex |
- |
Display Mode: Face |
C |
Take Screenshot |
Ctrl + C |
Take Screenshot to Clipboard |
V |
Start / Stop Recording |
B |
Open Capture Directory |