Repository navigation
tf2: add interactive 3D Source model viewer and custom pack inspector - #306
Merged
Merged
Conversation
…iewer # Conflicts: # apps/desktop/src-tauri/src/lib.rs # apps/desktop/src/index.css # apps/desktop/src/lib/bridge.ts
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
Adds a local, read-only Source 1 3D model viewer and custom pack asset inspector decoded directly from the player's own TF2 VPKs and profile packs (zero Valve assets vendored, Three.js lazy-loaded on demand):
execs-core): Bounded, read-only.mdl(v44–49) +.vvd(v4) +.dx90.vtx(v7, trilist & tristrip) +.vmt(includingpatch { include ... }) +.vtfdecoder with automatic Y-up/Z-up axis detection, skin family switching, and hand/sleeve submesh tagging.ViewmodelPreviewStage): Switch between in-game captures and an interactive 3D weapon preview across all 9 TF2 classes (RED/BLUskins,All/Hands/Offparts,First-person/Orbitcamera) reacting live to Viewmodel FOV, Draw viewmodel, Min viewmodels, Left-handed, and Transparent viewmodels.ModInspectModal): Inspect action on every custom pack (folder or VPK, active or disabled) to orbit.mdlmodels (with Mod / Stock TF2 toggle whenever a model overrides a stock TF2 path, plus skin and wireframe toggles), inspect decoded.vtftextures on a checkerboard stage, and audition.wav/.mp3/.oggsounds.THIRD_PARTY.mdand regeneratedCREDITS.txtandDEPENDENCIES.txt, plus updates toCHANGELOG.md,docs/ARCHITECTURE.md, anddocs/guide/{viewmodels,mods}.md.Checks
cargo fmt --all --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspace --lockedload_stock_tf2_modeldirectly against all 21 stock TF2 viewmodels plussoldier.mdlandcow001_reference.mdlfrom a local TF2 install (100% textures decoded, zero errors)node scripts/third-party-notices.mjs --check,pnpm check,pnpm test,pnpm --filter @execs/desktop build