Group 15: Cátia Eira (a107382), Filipa Cosquete (a106837), Lucas Robertson (a89467), Luís Rodrigues (a106885)
In CMake, set CG/ as the source directory, and CG/build/ as the directory where to build the binaries.
Configure, then generate.
In a console window, navigate to CG/build/ and run make.
To run the generator:
./generator → will show the available shapes and respective parameters
./generator <shape> → will give more info on what each shape needs to be generated
ex.: ./generator box 2 3 box.3d
There are also some scripts available:
./deleteModels.sh → delete all .3d files existent in the build directory.
./scenesModels.sh → generate the models used by the scenes we created.
./testFiles.sh → generate the models used by the test scenes given by the professors.
./solarSystem.sh g → generate the models used by the solar system demos.
To run the engine:
./engine <scene>.xml
ex.: ./engine ../scenes/sceneBox.xml
Or use one of the available scripts to run the solar system demo:
./solarSystem.sh s → load the static solar system demo (phase 2)
./solarSystem.sh d → load the dynamic solar system demo (phase 3)
H - Hide help text.
F - Alternate between Explorer and FPS modes.
Z - Go back to the last saved camera position and direction.
C - Replace the saved camera position and direction with the current one.
P - Play/Pause the animation, if applicable.
R - Toggle the rendering state (on/off) of the Catmull-Rom curves.
X - Toggle the rendering state (on/off) of the xyz axis.
N - Toggle the rendering state of the normal vectors.
G - Activate God camera, which sees the scene from above, shows the Frustum panels of the camera and hitboxes of the objects.
1,2,3 - Switch between seeing the models fully, just their lines or just their points, respectively.
Explorer Mode:
A,W,S,D - Moving around a certain point.
Q,E - Zoom in and zoom out, respectively (you can zoom too much and flip yourself!).
I,K - Look higher and lower, respectively (changes the point you're looking at).
←,→,↑,↓ - Change the focal point within the scene.
FPS Mode:
←,→,↑,↓ - Move the camera position within the scene at "ground level"
A,D - Look around 360º