Polytech ET3 IT - Computer Graphics noted project for S6 (2020)
Implement the different topics seen in class/TPs :
- Scan conversion (lines, circles)
- 2D/3D transformations, 3D object representations
- Viewing/projections, hidden surface removal
- Illumination, shading, texture mapping
- Texture mapping continued, color and color models
- Clipping/filling
These instructions will get you a copy of the project up and running on your local machine for development purpose.
Things you need to install the project :
- cmake - portable version is enough
- Visual Studio 15 - only 2017 edition works
Here are some instructions on how to get the development env running.
First, clone this repository with the following command :
git clone https://github.com/adepreis/ComputerGraphicProject
Then, using cmake-gui :
You have to give cmake where the source code is, for example :
D:\...\ProjectFolder\ComputerGraphicProject
Then where to build the binaries, here in the corresponding path :
D:\...\ProjectFolder\ComputerGraphicProject\build
Then click 'Configure' twice : the first time you'll have to specify the 2017 version of Visual Studio.
Once the configuration is done, click on the 'Generate' button.
You will now find the /build
folder in your project. Just execute the ComputerGraphicProject.sln
in it in order to open the Visual Studio environment.
Get a coffee.
In Solution Explorer, choose the solution node's context (right-click on ComputerGraphicProject) menu and then choose 'Set as StartUp Project'.
For first time use, you will have to make sure that in 'Debug' tab > 'Properties' > 'Debugging', the 'Working Directory' is currently $(ProjectDir)/bin
.
Now you could run the project after clicking the 'Start' button. (No additional parameters if you use the command line)
There you are!
No controller needed, only a keyboard and a mouse.
To interact with our project, the keys to use are :
z
: move forwards
: move backwardq
: move sideways to the leftd
: move sideways to the rightLeft Click
on the mouse to turn on/off the flashlight- You control the arm with your mouse cursor
- cmake - Open-source cross-platform tool designed to build, test and package software.
- VisualStudio 2017 - IDE used
- OpenGL (version 3.0) - 2D and 3D graphics API
- B Lucas - Debugging, FPS view attempt - @0xWryth
- D Antonin - Flashlight model import, controls, walls, texturing - @adepreis
- Tobias isenberg - computer graphics instructor
- Mickaël Sereno - PhD student in charge of computer graphics TPs
- SDL 2.0 Library wiki
- [FR] Tutoriel : Charger un modèle 3D
- thebookofshaders