diff --git a/data/levels/Compositions.xml b/data/levels/Compositions.xml
index 252cbbc..19ba5ca 100644
--- a/data/levels/Compositions.xml
+++ b/data/levels/Compositions.xml
@@ -629,7 +629,7 @@
0.13
0.6
0.4
- 2.0
+ 1.0
None
true
@@ -641,7 +641,7 @@
0.13
0.6
0.4
- 2.0
+ 1.0
Box
1.2
6
@@ -702,7 +702,7 @@
0.13
0.6
0.4
- 2.0
+ 1.0
TriangleMesh
0.555
0.5
@@ -715,7 +715,7 @@
0.13
0.6
0.4
- 2.0
+ 1.0
TriangleMesh
0.555
0.5
diff --git a/data/levels/Level1.xml b/data/levels/Level1.xml
index 8d70bd0..8ea1cc9 100644
--- a/data/levels/Level1.xml
+++ b/data/levels/Level1.xml
@@ -13089,10 +13089,10 @@
seamlessTerrain.png
- 0.13
+ 0.14
0.8
0.2
- 3.0
+ 1.0
diff --git a/data/levels/scripts/openSecondDoor1.lua b/data/levels/scripts/openSecondDoor1.lua
index 85f1958..e7bd2d3 100644
--- a/data/levels/scripts/openSecondDoor1.lua
+++ b/data/levels/scripts/openSecondDoor1.lua
@@ -29,7 +29,7 @@ function trigger(objectToChange)
local yPos = 25.0
local zPos = 54.5
level:preloadLightPosition(xPos, yPos, zPos)
- level:addLightByParameters(0.2, 0.9, 0.0, 4.0, -2.5, 1.3, 2.3)
+ level:addLightByParameters(0.2, 0.9, 0.0, 4.0, -2.0, 1.3, 2.0)
print("openSecondDoor1")
end
end
diff --git a/data/levels/scripts/openSecondDoor2.lua b/data/levels/scripts/openSecondDoor2.lua
index b680df7..c7c0407 100644
--- a/data/levels/scripts/openSecondDoor2.lua
+++ b/data/levels/scripts/openSecondDoor2.lua
@@ -29,7 +29,7 @@ function trigger(objectToChange)
local yPos = 25.0
local zPos = 26.5
level:preloadLightPosition(xPos, yPos, zPos)
- level:addLightByParameters(0.2, 0.9, 0.0, 4.0, -2.5, 1.3, 2.3)
+ level:addLightByParameters(0.2, 0.9, 0.0, 4.0, -2.0, 1.3, 2.0)
print("openSecondDoor2")
end
end
diff --git a/data/levels/scripts/openSecondDoor3.lua b/data/levels/scripts/openSecondDoor3.lua
index 9a5faf5..845d578 100644
--- a/data/levels/scripts/openSecondDoor3.lua
+++ b/data/levels/scripts/openSecondDoor3.lua
@@ -29,7 +29,7 @@ function trigger(objectToChange)
local yPos = 25.0
local zPos = 26.5
level:preloadLightPosition(xPos, yPos, zPos)
- level:addLightByParameters(0.2, 0.9, 0.0, 4.0, -2.5, 1.3, 2.3)
+ level:addLightByParameters(0.2, 0.9, 0.0, 4.0, -2.0, 1.3, 2.0)
print("openSecondDoor3")
end
end
diff --git a/data/levels/scripts/openSecondDoor4.lua b/data/levels/scripts/openSecondDoor4.lua
index fe9ed6c..1b6c287 100644
--- a/data/levels/scripts/openSecondDoor4.lua
+++ b/data/levels/scripts/openSecondDoor4.lua
@@ -38,7 +38,7 @@ function trigger(objectToChange)
local yPos = 25.0
local zPos = 54.5
level:preloadLightPosition(xPos, yPos, zPos)
- level:addLightByParameters(0.2, 0.9, 0.0, 4.0, -2.5, 1.3, 2.3)
+ level:addLightByParameters(0.2, 0.9, 0.0, 4.0, -2.0, 1.3, 2.0)
print("openSecondDoor4")
end
end
diff --git a/data/shader/phong.fsh b/data/shader/phong.fsh
index 7562e38..fe25761 100644
--- a/data/shader/phong.fsh
+++ b/data/shader/phong.fsh
@@ -132,8 +132,8 @@ float samplePointShadow(samplerCubeShadow shadowMap, vec3 lightDirection) {
float A = -(farPlane+nearPlane)/(farPlane-nearPlane);
float B = -2*(farPlane*nearPlane)/(farPlane - nearPlane);
float compValue = 0.5*(-A*length(lightDirection) + B)/length(lightDirection) + 0.5;
- float bias = 0.001*tan(acos(clamp(dot(vNormal, -directionalLightVector), 0.0, 1.0)));
- bias = clamp(bias, 0.0, 0.01);
+ float bias = 0.001*tan(acos(clamp(dot(vNormal, lightDirection), 0.0, 1.0)));
+ bias = clamp(bias, 0.0, 0.001);
return texture(shadowMap, vec4(lightDirection , compValue - bias));
}
diff --git a/loader.cc b/loader.cc
index e2a3bf6..4a8ee97 100644
--- a/loader.cc
+++ b/loader.cc
@@ -145,7 +145,7 @@ void Loader::load(std::string filePath, Level* level, std::string compositionsPa
water_vao->bind();
water_vao->setMode(GL_TRIANGLES);
water_vao->attachAllAttributes(water_ab);
- Material water_material = Material(waterTexture, 0.1f, 0.2f, 0.8f, 5.0f, true);
+ Material water_material = Material(waterTexture, 0.13f, 0.5f, 0.5f, 10.0f, true);
Object* water_object = new Object(water_vao, water_material, glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f), true);
level->setWaterPlane(water_object);
}
diff --git a/physics.cc b/physics.cc
index 0b8cfa3..ade143b 100644
--- a/physics.cc
+++ b/physics.cc
@@ -85,7 +85,7 @@ void Physics::takeUpdateStep(float timeDiff)
if(sinking)
{
btVector3 currentPos = playerBall->getCenterOfMassPosition();
- currentPos -= btVector3(0,0.35f*timeDiff,0);
+ currentPos -= btVector3(0,0.8f*timeDiff,0);
float damp = playerBall->getAngularDamping();
playerBall->setDamping(playerBall->getLinearDamping(),0.9);
world->stepSimulation(timeDiff);
@@ -106,7 +106,7 @@ void Physics::takeUpdateStep(float timeDiff)
else
{
btVector3 currentPos = playerBall->getCenterOfMassPosition();
- currentPos += btVector3(0,0.9f*timeDiff,0);
+ currentPos += btVector3(0,3.0f*timeDiff,0);
world->stepSimulation(timeDiff);
playerBall->setCenterOfMassTransform(btTransform(playerBall->getOrientation(),currentPos));
cameraBody->setCenterOfMassTransform(btTransform(btQuaternion(0,0,0,1),camPos));
diff --git a/slides/final_slides.pdf b/slides/final_slides.pdf
new file mode 100644
index 0000000..f1679d4
Binary files /dev/null and b/slides/final_slides.pdf differ
diff --git a/slides/final_slides.tex b/slides/final_slides.tex
new file mode 100644
index 0000000..f1b7abb
--- /dev/null
+++ b/slides/final_slides.tex
@@ -0,0 +1,100 @@
+%*****************************************************************************%
+% This LaTeX-Template is based on the beamer package: %
+% http://latex-beamer.sourceforge.net %
+% %
+% For further details on how to create beamer slides you can check their %
+% documentation: %
+% http://mirror.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf %
+% %
+% The layout fits the current standard of the acg color scheme. %
+% Version: 1.0 %
+% Authors: Lars Krecklau %
+%*****************************************************************************%
+\documentclass{beamer}
+
+\usepackage{graphicx}
+\usepackage[german]{babel}
+
+% Place in these lines your title and the author's names:
+\newcommand{\myTitle}{\includegraphics[width=9cm]{saxum_logo.png}}
+\newcommand{\myAutors}{Fabian Klemp, Steffen F\"undgens, Simon Froitzheim, Jasper Manousek}
+\newcommand{\myAutorsFoot}{\myAutors}
+
+% If you want to draw images by latex:
+% http://www.texample.net/tikz/
+\usepackage{tikz}
+\usetikzlibrary{arrows,shapes}
+
+% Apply the acg layout
+\include{layoutacg}
+
+% Setup the title page
+\title{\myTitle}
+\author{\myAutors}
+\institute{RWTH Aachen University}
+\date{\today}
+\subject{\myTitle}
+
+\begin{document}
+
+\begin{frame}
+ \titlepage
+\end{frame}
+
+\section{\myTitle}
+
+\subsection{Overview}
+
+\begin{frame}
+ \begin{itemize}
+ \item Puzzle/Exploration marble game in a desert-ruins setting
+ \item Player is in search for the missing sun
+ \item Pseudo-realistic graphics style
+ \item Focus on physics-based gameplay
+ \end{itemize}
+\end{frame}
+
+
+
+\subsection{Fabian - Graphics}
+\begin{frame}
+ \begin{itemize}
+ \item Phong Shading
+ \item Shadow Mapping
+ \item Simple flame simulation with geometry shader
+ \item Blurring of flames
+ \end{itemize}
+\end{frame}
+
+\subsection{Simon - Content Creation}
+\begin{frame}
+ \begin{itemize}
+ \item Modeling
+ \item Texturing
+ \item Level design
+ \end{itemize}
+\end{frame}
+
+\subsection{Steffen - General Programming}
+\begin{frame}
+ \begin{itemize}
+ \item Converter
+ \item Loading
+ \item Triggers and Lua scripts
+ \end{itemize}
+\end{frame}
+
+\subsection{Jasper - Game Logic}
+\begin{frame}
+ \begin{itemize}
+ \item Bullet integration
+ \item Custom constraints
+ \item Camera
+ \item Simple animations
+ \end{itemize}
+\end{frame}
+
+
+
+
+\end{document}
diff --git a/slides/saxum_logo.png b/slides/saxum_logo.png
new file mode 100644
index 0000000..a81decb
Binary files /dev/null and b/slides/saxum_logo.png differ