WUT_Computer_Science/Programming/TRAK
Krzysztof kuhy Rudnicki d407527863 Untrack 189 regenerable artifacts and close the silent-ignore trap
Untracked (--cached, so they stay on disk): 76 LaTeX artifacts, 7 .xdv XeTeX
intermediates, 18 -eps-converted-to.pdf from epstopdf, 32 files of .NET
obj/Debug/net6.0 output including three copies of lab2.dll, 16 .class/.o, the
9 MB Nx cache with its native .node, and an entire committed Python
virtualenv at ECOTE/program/ecote (python 3.10.10, 18 files).

The existing 407-line LaTeX .gitignore was NOT unused as I first assumed --
it already covered *.aux and *.class, and the artifacts simply predate it. So
this appends the categories it missed (*.o, obj/, .venv/, .nx/, target/)
rather than rewriting something that was working.

The second half is the more interesting bug. Auditing with

    git ls-files | git check-ignore --stdin --no-index

found 130 files that were tracked AND ignored. That combination fails
silently: `git add` on such a file is not an error, the edit just never
lands. Causes were dist/ swallowing the vendored jQuery/Bootstrap bundle,
.vscode/ and .idea/, and -- the good one -- the LaTeX template's man-page
patterns *.[1-9] and *.[1-9][0-9] matching EPFU's date-named report
directories, so doc/21.11/ read as a man page section and took report.pdf
and seven screenshots with it.

32 of those 130 turned out to be more build output and were untracked too;
the rest got targeted ! overrides. The first attempt used a blanket
!NotProgramming/EMISY/** which re-enabled that course's own LaTeX artifacts,
so it is narrowed to the *.1 schematic exports that actually needed it.
TRAK's nested .gitignore excluded the .vscode DIRECTORY, which stops git
descending, so no root-level ! can reach inside -- that one had to be fixed
at its source.

Both invariants now verified: 0 tracked files ignored, and 0 of the 189
untracked artifacts leaked back into view.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172dj34FDpao6wsix8ZuCzE
2026-08-28 17:35:38 +02:00
..
.idea Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
.vscode Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
code Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
docs Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
environments Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
outputs Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
scenes Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
sightpy Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
.gitignore Untrack 189 regenerable artifacts and close the silent-ignore trap 2026-08-28 17:35:38 +02:00
.python-version Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
config.ini Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
init.sh Restore original local content into merged PSD, TRAK, STUP directories 2026-02-06 22:15:53 +01:00
lab6.py Restore original local content into merged PSD, TRAK, STUP directories 2026-02-06 22:15:53 +01:00
main.py Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
output_ray_traced.png Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
photon_mapping.py Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
ray tracing testy.pdf Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
README.md Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
rendering.py Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
requirements.txt Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00
utils.py Add 'Programming/TRAK/' from commit '777937fb9ee618a73e357f5b25abe00744a4ab99' 2026-02-06 22:15:36 +01:00

Wywoływanie z terminala

# Wywołanie algorytmu ray tracing z domyślnymi parametrami i sceną
python main.py --algorithm ray_tracing
# Wywołanie algorytmu ray tracing ze specyfikacją sceny z folderu scenes, liczbą sampli na pixek, rozdzielczością, środowiskiem i rozmyciem środowiska
python main.py --scene three_spheres --samples_per_pixel 100 --resolution 100x100 --environment lake.png --env_blur 10
# Wywołanie algorytmu *photon mapping* ze specyfikacją liczby fotonów i maksymalnej głębokości
python main.py --algorithm photon_mapping --max_depth 4 --num_photons 1000
# Wywołanie algorytmu *photon mapping* wykonanego w c++
cd photonmappnig/cpp
./compile.sh
./photon_mapping