craftablescience / VPKEdit

A library and CLI/GUI tool to create, read, and write several pack file formats
https://developer.valvesoftware.com/wiki/VPKEdit
MIT License
162 stars 15 forks source link

Support for previewing model animations #158

Open BreakinBenny opened 4 days ago

BreakinBenny commented 4 days ago

Describe Your Suggestion

Currently, VPKEdit does not let us view model animations whereas HLMV++ does. This is best demonstrated when you load up a .MDL file without .VTX files, which gives us the Error placeholder instead of drawing a skeleton and a list of animations.

But maybe that's not really the point of this application…?

craftablescience commented 3 days ago

I haven't added animation parsing to the MDL parser yet, so when I do I'll add that functionality to VPKEdit. Interesting to see VTX files aren't required, I didn't know that was a thing

BreakinBenny commented 3 days ago

I haven't added animation parsing to the MDL parser yet, so when I do I'll add that functionality to VPKEdit. Interesting to see VTX files aren't required, I didn't know that was a thing

Yes, well for starters the stock HLMVs (including SFM's which I just tested, I'm sure it's the same with CS:GO's SDK) refuse to load models that lack vertices.

craftablescience commented 3 days ago

I think I am going to keep VTX files as a requirement, all Valve official models require them and I've never seen a use for a model without them

BreakinBenny commented 3 days ago

Kinda expected that, and HLMV++ already allows viewing models with skeleton animations, with or without vertices.