Ship real first-person Deagle viewmodel + site favicon - #38
Merged
Conversation
The downloaded Sketchfab Deagle ('Desert Eagle | First Person Animations'
by 1Matzh) is a broken skinned export: its gun meshes are authored ~15000
units from the hands at an incompatible scale, so their skinning renders
them off-screen — which is why only arms showed before. The arms + Weapon
bone, however, are fine.
Fix: extract the two clean gun parts (body + slide), drop the broken
skinning, and rigidly bolt them to the animated Weapon bone. A per-frame
camera-space orientation lock keeps the barrel pointing cleanly forward
while the gun still rides the bone's idle sway + fire recoil. The bulky/
broken arm meshes are hidden for a clean gun-only viewmodel that still
plays the authored equip/idle/fire/reload clips.
WeaponViewmodels: replace the procedural Deagle with the real GLB via a
new GunAttach path (mesh extraction, hideOthers, lockOrient/camRot). GLB
recompressed to 12MB (gltf-transform resample + webp). AWP unchanged.
Also add an orange/black crosshair favicon (replacing the default Vite
icon) and set the document title.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
What & why
Two things the game was missing:
1. The real downloaded Deagle now shows in first person
The Sketchfab model ("Desert Eagle | First Person Animations" by 1Matzh) is a broken skinned export: its gun meshes are authored ~15,000 units away from the hands at an incompatible scale, so their skinning renders them off-screen — which is exactly why only the arms showed before. The arms and the
Weaponbone, though, are perfectly fine.Fix: extract the two clean gun parts (body + slide), drop the broken skinning, and rigidly bolt them to the animated
Weaponbone. A per-frame camera-space orientation lock keeps the barrel pointing cleanly forward while the gun still rides the bone's idle sway + fire recoil. The bulky/broken arm meshes are hidden for a clean gun-only viewmodel that still plays the authoredequip/idle/fire/reloadclips.WeaponViewmodels.ts: replaced the procedural Deagle with the real GLB via a newGunAttachpath (mesh extraction,hideOthers,lockOrient/camRot). The AWP path is unchanged and still renders correctly.resample+ webp textures), down from the raw 211 MB download.README.2. Site favicon
Replaced the default Vite icon with an orange/black crosshair
favicon.svgmatching the menu theme, and set the document title toWebStrafe — Surf · Bhop · Frag.Verification
ViewmodelRenderer(same FOV/lights/camera mount as in-game): the Deagle reads clearly as a Desert Eagle, sits in the lower-right, barrel forward.npm run cigreen: typecheck + 132 tests + production build all pass.200 image/svg+xml; game boots with 0 console errors.