Skip to content

Commit

Permalink
report
Browse files Browse the repository at this point in the history
  • Loading branch information
nical committed Dec 5, 2011
1 parent 9818a4f commit 47276e2
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Exercises/Week04/BUILD.sh
Expand Up @@ -3,8 +3,8 @@ if [ ! -d "bin" ]; then
mkdir bin
fi
echo "compiling Week 3 exercises..."
gcc Transistors.cpp -lglut -lGLU -lGL -g -o bin/Transistors && echo "--Transistors" && ./bin/Transistors
exit
gcc Transistors.cpp -lglut -lGLU -lGL -g -o bin/Transistors && echo "--Transistors"
gcc code/newpaint.c -lglut -lGLU -lGL -o bin/newpaint && echo "--newpaint"
gcc code/line.c -lglut -lGLU -lGL -o bin/line && echo "--line"
gcc code/pick.c -lglut -lGLU -lGL -o bin/pick && echo "--pick"
gcc code/PICKDEPT.C -lglut -lGLU -lGL -o bin/pickdept && echo "--pickdept"
Expand Down
2 changes: 1 addition & 1 deletion Reports/Week01/Week01.tex
@@ -1,4 +1,4 @@
\chapter{Week 1}
\chapter{Week 1 - Primitives and attributes}

\section{Part 1}
The purpose of the lines that have been commented out in the appendix 1 is to
Expand Down
2 changes: 1 addition & 1 deletion Reports/Week02/Week02.tex
@@ -1,4 +1,4 @@
\chapter{Week 2}
\chapter{Week 2 - Projections}

\section{Part 1}

Expand Down
2 changes: 1 addition & 1 deletion Reports/Week03/Week03.tex
@@ -1,4 +1,4 @@
\chapter{Week 3}
\chapter{Week 3 - Local illumination}

\section{Part 1}

Expand Down
17 changes: 16 additions & 1 deletion Reports/Week04/Week04.tex
@@ -1,4 +1,19 @@
\chapter{Week 3 - Transistors}
\chapter{Week 4 - Transistors}

\section{Part 1}
The pick function in newpaint returns the id of the button clicked based on the position of the mouse and the dimensions of the buttons.

\section{Part 2}

Selection is a special mode in legacy OpenGL that allows to render the ids of objects in a buffer, instead of their color. This buffer can then be read on the cpu to see, for instance, if particular objects are occluded from a given point of view, or just to get the id of the nearest object for a given fragment. The depth for each fragment can also be retrieved.

Picking is a technique that uses OpenGL's selection mechanism to generate a projection matrix that limit the view to a small area, in order to quickly render this area on a small buffer and retrieve the ids of the objects in this area. This is used in particular to sample the ids in a small region around the mouse.

\section{Part 3}

There is no observable differences between single and double buffering on our computers (Running Ubuntu 10.10), which may be because the window compositor enforces double buffering. On some configurations however, single buffering shows some shearing effect, with part of the sceen corresponding to a frame, and some other parts corresponding to the next frame.

\section{Part 4}

We implemented a simplific interface for the transistor exercise. All controls are operated through a right click menu, except for the \textit{drag and drop} function to move the circuits (which is done by moving the mouse while the left click is pressed).

Expand Down
2 changes: 1 addition & 1 deletion Reports/Week08-09/Week0809.tex
@@ -1,4 +1,4 @@
\chapter{Weeks 8 and 9}
\chapter{Weeks 8 and 9 - GLSL shading}

\section{Week 08}

Expand Down
Binary file added Reports/Week10/EnvMap100Fresnel.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Reports/Week10/EnvMapFresnel.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Reports/Week10/EnvMapOnlySkybox.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Reports/Week10/both.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Reports/Week10/reflected1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Reports/Week10/refracted2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 47276e2

Please sign in to comment.