OpenCAGE icon indicating copy to clipboard operation
OpenCAGE copied to clipboard

Parse CS2 Models in CATHODELib itself and not pass the responsibility of parsing CS2 models to the application.

Open ProjectHSI opened this issue 10 months ago • 2 comments

Currently - you have to parse the binary data for CS2 models via Submesh.Content, you get helper information, but not too much.

ProjectHSI avatar Mar 15 '25 01:03 ProjectHSI

The CathodeLibExtensions class used in various OpenCAGE apps do this job as how you handle the mesh data is quite platform specific, but I'll look at documenting this better or exposing nicer methods

MattFiler avatar Mar 17 '25 20:03 MattFiler

I've updated CathodeLib now to contain a ModelUtility class, which adds extensions to the CS2 submesh to convert it to/from a nicer Mesh object, which contains parsed model data in a more easy to use format 👍

Shout if you run into any issues!

MattFiler avatar Nov 18 '25 21:11 MattFiler