feat: add triangle mesh ray tracing + terminal viewer tool#9
Open
mtao wants to merge 2 commits into
Open
Conversation
Major additions: - Image class: PBRT Film-style pixel buffer with sample accumulation, tone mapping (to_rgba8), progress tracking, dirty notification - Image I/O: PPM (always), EXR (optional -Dexr=true), PNG (-Dpng=true) with stub fallbacks when optional deps are disabled - TriangleMesh geometry: Moller-Trumbore intersection, precomputed face normals, AABB bounding box (linear scan, no BVH yet) - Camera headlight shading: abs(N.dot(view_dir)) diffuse look - art_term CLI tool: loads mesh via quiver, ray-traces with auto-framed camera, outputs to terminal via balsa::terminal (Kitty/half-block) Build system changes: - quiver is now a required dependency (mesh I/O and topology) - balsa is an optional dependency gated behind -Dviewer=true - Fixed zipper transform umbrella header include (transform.hpp -> all.hpp) - Fixed spdlog/fmt define conflict by building spdlog as static - exr.cpp/png.cpp always compiled (stubs when deps absent)
Meson creates wrap-redirect files in subprojects/ when resolving transitive dependencies (quiver->fmt/mshio/sol2/lua, balsa->eigen/ cli11/nlohmann_json, zipper->mdspan). These are build artifacts that should not be committed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
-Dexr=true/-Dpng=true)art_termCLI tool: loads mesh via quiver, ray-traces with auto-framed camera, outputs to terminalDependencies
-Dviewer=true(terminal output)balsa::terminal::emit_auto()Build
Fixes included
zipper/transform/transform.hpp->zipper/transform/all.hpp(renamed upstream)exr.cpp/png.cppalways compiled with stub fallbacks when optional deps are absentKnown limitations