Computergrafik

June 5th, 2017

ACHTUNG!

Die Prüfungen finden am 12 und 13.9 statt in Raum C119!

 

Vorlesungen

31.3 /   1. Intro

7.4 /   2. Mathe racap: Vektoren und Matrizen

14.4 /   3. Opengl, Szenengraphen

21.4 /   4. Kurven

28.4 /   5. Rendering pipeline, transformations, clipping

5.5 /   Himmelfahrt

12.5 /   6. Triangulierung

19.5 /   7. Rasterisierung

26.5 /   Fronleichmam

2.6 /   8. Volumenvisualisierung und Marching cubes

9.6 /   9. Shading und Texturierung

16.6/   10. Ray tracing (Gastvortrag)

23.6 /   11. Farbmodelle

30.6 /   12. 3D modelling and animation

 

Hintergrundmaterial

OpenGL Programming Guide (PDF)

Übungen / Resultate

OpenGL/SFML package (contrib. zip)

03. Draw und rotate tutorial03 Lösung: 03_main.cpp
04. Bezier Kurven tutorial04 Lösung: übung_04
05. Kamera Steuerung tutorial05 Lösung: übung_05
06. Triangulation of Point Clouds Meshlab tutorial06
07. Rasterisieren von Linie mit Bresenham tutorial07 Lösung: loesung07
08. – 09. Marching Cubes tutorial08
10. – 12. Beleuchtung und Texturen

Video

Farbmodelle Link youtube

Anleitung

CG Tutorial files

Setting up the tutorials

– Create a folder called cg_tutorial
– Extract contrib.zip to that folder. The folder should not contain two subfolders cmake and contrib
– Extract the tutorial*.zip to that folder as well
– It should now contain another folder called u*

Building the tutorials
The tutorials use the cmake build system. By using cmake you are able to create make and project files for various IDEs and platforms.
Please keep in mind that you’ll need to have SFML (http://www.sfml-dev.org/) and GLEW (http://glew.sourceforge.net/) installed.
To get you started here is a short tutorial for Linux and Windows:

#Linux
– Install SFML (minimum 2.0) and GLEW
– cd to the tutorial’s directory
– create a build folder
– cd to that folder
– execute
cmake ..
it will generate a makefile. In case it gives you errors try to fix missing dependecies
– execute
make
– wait for the program to compile
– execute the executable

#Windows
– install cmake https://cmake.org/
– open a command line
– cd to the directory of the tutorial
– create a new folder called build
– cd to that build folder
– execute cmake with -G to show a list of generators
– select the generator of the IDE of you choice and use the path to the upper directory as second parameter
e.g. cmake -G “Visual Studio 12 2013 Win64” ..
creates a Project file for “Visual Studio 2013” and sets the architecture to 64 bit
– Open the newly generated projecte file (e.g. .sln for Visual Studio in you IDE)
– Try to compile it
– In order to launch the application from within Visual Studio you need to set the Startup-Project:
– In the solutions explorer (Window on the left/right containing ALL_BUILD, U0<NUMBER> and ZERO_CHECK) right click on U0<NUMBER> and select “Set as StartUp Project”
– When you try to execute you code it might complain about missing dlls. The dlls are provided in the contrib directory
Copy the DLLs of the architecture of your choice to compilers output directory (where the exe lives)
e.g. …./build/Debug
– Try launching the programm again
– If this should fail. Copy the dlls to your c:\windows\system32 folder

 

Comments are closed.