raycasting diagram
This commit is contained in:
parent
cd463f4a54
commit
2a00e92d0f
2 changed files with 43 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -12,3 +12,6 @@ presentation.run.xml
|
|||
presentation.snm
|
||||
presentation.synctex.gz
|
||||
presentation.toc
|
||||
|
||||
|
||||
presentation/build/
|
||||
40
presentation/diagrams/diagramm_occlusion.tex
Normal file
40
presentation/diagrams/diagramm_occlusion.tex
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
\documentclass[margin=5mm, tikz]{standalone}
|
||||
\usepackage{tikz, ifthen, calc}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\begin{tikzpicture}
|
||||
|
||||
\def\raynum{120}
|
||||
|
||||
\foreach \x in {0,...,\raynum} {
|
||||
\ifthenelse{\x < 20 \OR \x>100}
|
||||
{
|
||||
\draw[color = red] (\x /\raynum * 6 ,0) -- (3,4);
|
||||
}{
|
||||
\draw[color = green] (\x /\raynum * 6 ,0) -- (3,4);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
\fill[
|
||||
white
|
||||
] (1.49,1) -- (4.51,1) -- (5.01,0) -- (0.99,0) -- cycle;
|
||||
|
||||
|
||||
\draw [color=red] (0,0) -- node[below]{wall} (6,0) ; % wall
|
||||
\draw [color=green](1.5,1) -- node[below]{blocker} (4.5,1); %blocker
|
||||
|
||||
%cam
|
||||
\node[
|
||||
circle,
|
||||
fill = black,
|
||||
minimum width = 1mm,
|
||||
outer sep = 2mm
|
||||
] (camera) at (3,4) {};
|
||||
\node at (camera.north) {camera};
|
||||
|
||||
|
||||
\end{tikzpicture}
|
||||
|
||||
\end{document}
|
||||
Loading…
Add table
Add a link
Reference in a new issue