began raytracing animation

This commit is contained in:
CDaut 2023-06-15 19:03:58 +02:00
parent 4e614b5a3d
commit 3eebd90a22
4 changed files with 1084 additions and 224 deletions

View file

@ -1,51 +1,51 @@
\begin{center}
\begin{center}
\begin{minipage}{0.4\linewidth}
\begin{figure}
\centering
\begin{minipage}{0.5\linewidth}
\begin{tikzpicture}[domain=-0.5:2]
\draw[very thin,color=gray] (-0.1,-0.6) grid (2.1,2.1);
\draw[->] (-0.2,-0.5) -- (2.2,-0.5) node[right] {$\omega$};
\draw[->] (0,-0.7) -- (0,2.2) node[above] {$V(x,\omega)$};
\draw (0,0) -- (1,0) plot coordinates {(0,0) (1,0)}[color=red];
\draw (1,1) -- (2,1) plot coordinates {(1,1) (2,1)}[color=red];
\draw (0,0) node[left] {$0$};
\draw (0,1) node[left] {$1$};
\draw (1,-0.7) node[below] {$\omega_0$};
\end{tikzpicture}
\end{minipage}
\hspace{3mm}
\begin{minipage}{0.4\linewidth}
\caption{Visibility of a point $x$ with respect to $\omega$.}
\label{fig:visibility}
\end{minipage}
\end{figure}
\begin{figure}
\centering
\begin{minipage}{0.5\linewidth}
\begin{tikzpicture}[domain=-0.5:2]
\draw[very thin,color=gray] (-0.1,-0.6) grid (2.1,2.1);
\draw[->] (-0.2,-0.5) -- (2.2,-0.5) node[right] {$\omega$};
\draw[->] (0,-0.7) -- (0,2.2) node[above] {$V(x,\omega)$};
\draw (0,0) -- (1,0) plot coordinates {(0,0) (1,0)}[color=red];
\draw (1,1) -- (2,1) plot coordinates {(1,1) (2,1)}[color=red];
\draw (0,0) node[left] {$0$};
\draw (0,1) node[left] {$1$};
\draw (1,-0.7) node[below] {$\omega_0$};
\end{tikzpicture}
\end{minipage}
\hspace{3mm}
\begin{minipage}{0.4\linewidth}
\caption{Visibility of a point $x$ with respect to $\omega$.}
\label{fig:visibility}
\end{minipage}
\end{figure}
\end{minipage}
% second diagram
\begin{minipage}{0.5\linewidth}
\begin{figure}
\centering
\begin{minipage}{0.5\linewidth}
\begin{tikzpicture}[domain=-0.5:2]
\draw[very thin,color=gray] (-0.1,-0.6) grid (2.1,2.1);
\draw[->] (-0.2,-0.5) -- (2.2,-0.5) node[right] {$\omega$};
\draw[->] (0,-0.7) -- (0,2.2) node[above] {$\frac{\partial}{\partial\omega}V(x,\omega)$};
\draw (0,0) -- (2,0) plot coordinates {(0,0) (2,0)}[color=red];
\draw (0,0) node[left] {$0$};
\draw (0,1) node[left] {$1$};
\draw (0,2) node[left] {$\infty$};
\draw (1,2) node[color=red] {$\bullet$};
\draw (1,-0.7) node[below] {$\omega_0$};
\end{tikzpicture}
\end{minipage}
\begin{minipage}{0.4\linewidth}
\caption{Differentiation of the left graph with respect to $\omega$.}
\label{fig:dirac-delta-spike}
\end{minipage}
\end{figure}
\begin{figure}
\centering
\begin{minipage}{0.5\linewidth}
\begin{tikzpicture}[domain=-0.5:2]
\draw[very thin,color=gray] (-0.1,-0.6) grid (2.1,2.1);
\draw[->] (-0.2,-0.5) -- (2.2,-0.5) node[right] {$\omega$};
\draw[->] (0,-0.7) -- (0,2.2) node[above] {$\frac{\partial}{\partial\omega}V(x,\omega)$};
\draw (0,0) -- (2,0) plot coordinates {(0,0) (2,0)}[color=red];
\draw (0,0) node[left] {$0$};
\draw (0,1) node[left] {$1$};
\draw (0,2) node[left] {$\infty$};
\draw (1,2) node[color=red] {$\bullet$};
\draw (1,-0.7) node[below] {$\omega_0$};
\end{tikzpicture}
\end{minipage}
\begin{minipage}{0.4\linewidth}
\caption{Differentiation of the left graph with respect to $\omega$.}
\label{fig:dirac-delta-spike}
\end{minipage}
\end{figure}
\end{minipage}
\end{center}
\end{center}

View file

@ -0,0 +1,81 @@
\begin{frame}{}
\begin{center}
\begin{minipage}{0.3\linewidth}
\begin{tikzpicture}
% scene draufsicht
\node[above] at (2,4.3) {top view};
\fill[
kit-blue100
](0,0) -- (0,4) -- (4,4) -- (4,0) -- cycle;
\fill[
kit-green100
](0.5,0.5) -- (0.5,3.5) -- (3.5,3.5) -- (3.5,0.5) -- cycle;
\node[below] at (2,-0.3) {$\uparrow$Sun$\uparrow$};
\foreach \x in {0.25,0.5,...,3.75}{
\node[
circle,
draw,
red,
visible on = < 2->
] (marker) at (\x,3.8){};
}
\end{tikzpicture}
\end{minipage}
\hspace{5mm}
\begin{minipage}{0.4\linewidth}
\begin{tikzpicture}
% scene seite
\node[above] at (2,2) {side view};
\draw[
kit-green100
](0.5,0.5) -- (3.5,0.5);
\draw[
kit-blue100
] (0,0) -- (4,0);
\draw[
red,
visible on = <2->
] node[left] at (0.2,1) {primary ray} (0.2,0) -- (1,2);
\draw[
kit-red40,
visible on = <2->
] node[right] at (1,1) {secondary ray} (0.2,0) -- (4,2);
\node[
circle,
draw,
kit-yellow100,
] (sun) at (4,2) {};
\end{tikzpicture}
\end{minipage}
\hspace{5mm}
\begin{minipage}{0.2\linewidth}
\begin{tikzpicture}
\node[above] at (1,2.5) {output image};
\draw (0,0) -- (2,0) -- (2,2) -- (0,2) -- cycle;
\draw[very thin,color=kit-gray30, step=0.1] (0,0) grid (2,2);
\fill[
kit-blue100,
visible on = <2->
](0,2) -- (2,2) -- (2,1.9) -- (0,1.9) -- cycle;
\fill[
kit-gray70,
visible on = <2->
](0.2,2) -- (1.8,2) -- (1.8,1.9) -- (0.2,1.9) -- cycle;
\end{tikzpicture}
\end{minipage}
\end{center}
\end{frame}