Repository navigation
Tachi animations for reload from empty with the slide locked open - #170
Conversation
|
I'm expecting critical feedback on where to actually put the pre-compilation animation files. Probably don't want to commit every file as is in this initial commit to neoAssets. Edit: Initial discussion seems to point to neoAssets being the right repo, but I need to prepare the project files in modelsrc/ to be more easily auditable by a Blender user. |
|
Added a blender project for hand posing the animations. |
I'm wondering if it would be better for the camera preview to be positioned at 0,0,0, facing the negative Y direction, so one can open the preview to see the viewmodel exactly as what one would see in game. Also interesting to note that inputting the offset values in meters seems to transform the model exactly as it would be transformed in-game. I don't see any conversion from meters to hammer units, there must be something I'm missing 🤔. https://developer.valvesoftware.com/wiki/Viewmodels_in_Blender (edit) It makes perfect sense actually |
Oh yeah, also I'm not sure about the python scripts, I think it might be better to include instructions detailing how to edit gameinfo.txt so that it works with crowbar. In fact I'm gonna remove my approval while I explore this topic further too
AdamTadeusz
left a comment
There was a problem hiding this comment.
Ok the README explains that these are optional
The Tachi viewmodels had no reload for an empty gun, so a reload from empty played the normal reload, whose slide is forward from its first frame, and the slide closed as the reload began. Add reloadempty (ACT_VM_RELOAD_EMPTY) to the Jinrai and NSF Tachi, built the way the Milso's shipped one is: the normal reload with only the slide changed, held back and released over frames 54-62 after the magazine is seated. Every other sequence is the shipped one, recompiled. Add Blender sources for Tachi animations Make both Tachi animation sets editable in Blender with relative preview textures and repeatable SMD export and model compilation. Include the original reference mesh and all animation inputs for a complete rebuild. Keep reference mesh export disabled to preserve original split normals. Document the animator workflow and CMake-installed asset layout. Verify both Blender exports, SDK compiles, and relocated project exports. Preserve all 54 bones, 16 clips, sequence metadata and mesh attributes. Update comments in compile_tachi.py Update README.md to remove timing details Removed redundant timing information for model export and compilation.
57a8447 to
366984f
Compare
|
Based on @sunmachine's offline feedback, reorganized and rewrote the documentation: 366984f |
Rename compile_tachi.py and export_tachi.py to compile_viewmodels.py and export_viewmodels.py. Both now take the source folders to work on, so models that do not come as a Jinrai and NSF pair are also supported. Describe the Tachi as the first weapon under these conventions, which are expected to change, and correct the Python and bpy tool requirement. Remove the segments.csv files, which nothing reads. Tested the export in Blender 5.2.2 with Blender Source Tools 3.4.3.
|
I'm pushing some changes to both the assets and the PR description that will warrant a brief re-read of this stuff @AdamTadeusz. I'm primarily focusing on the fact these are likely becoming conventional assets, and I am making sure we treat the docs with a broad-enough writing to cover the fact we intend to build and iterate on art source files. |
Move the preview camera to the Tachi's hip-fire offset, facing -Y, and use perspective with the effective viewmodel FOV of 60 and a near clip of 1. Show the camera in the Animation workspace's left viewport. The rig stays at the origin, so exported SMDs do not change.
|
Maybe some settings are a bit off, but ended up figuring this out, as well as consolidating the .blend files into one in:
|



Description
This PR adds the missing empty reload animation (
reloadempty) to the Tachi viewmodel models (v_jinrai_tachiandv_nsf_tachi).While the Milso pistol shipped with a dedicated empty reload sequence (
ACT_VM_RELOAD_EMPTY), the original Tachi model lacked one, causing its slide to snap forward as soon as a reload started rather than staying locked back until the new magazine was inserted. This asset update supplies the missing sequence so the slide remains locked open throughout the reload process, establishing full feature parity across both pistols.Overview of Changes
reloadempty(ACT_VM_RELOAD_EMPTY) to bothv_jinrai_tachiandv_nsf_tachi.reloadsequence (64 frames, 2.1 s). The slide bone is held locked back at itsidle01emptyposition and eased forward near the end of the animation (frames 54 to 62, 1.80 to 2.07 s) right after the new magazine is seated.reloadwithin 0.14 u / 0.44 deg). Muzzle flash events on fire sequences remain preserved. Reload duration and timing remain strictly identical to master.neo/modelsrc/weapons/: Blender projects, QCs and SMDs for each Tachi model, shared preview textures, and theexport_viewmodels.pyandcompile_viewmodels.pyhelper scripts. Models are compiled usingstudiomdlfrom the Source SDK Base 2013 MP toolset (MDL v48).README.mdto cover how neo installs these assets and how to use a local checkout. Addedneo/modelsrc/README.mdfor tools and Blender export settings, andneo/modelsrc/weapons/README.mdfor the export and compile steps. The Tachi is the first weapon under these conventions, which are expected to change as more weapons are added.How to Test
NeotokyoRebuild/neo#2259orNeotokyoRebuild/neo#2248).cl_autoreload_when_empty 0).reloadanimation plays instead, with normal slide behavior.Related