ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.77k stars 2k forks source link

(Linux/Mac)Old Models Can Lead to Rendering Crashes #477

Open Spirrwell opened 5 years ago

Spirrwell commented 5 years ago

Hello!

I've noticed that on Linux/Mac, old models can lead to rendering crashes, namely the infamous "Failed to lock vertex buffer in CMeshDX8::LockVertexBuffer" Engine Error.

I'm not exactly sure if it's an error with the MDL format or the .vtx files, but I believe it's a backwards compatibility issue that's just not handled on Linux/Mac.

However, there was this map that was ported from "The Ship" to SDK2013, which was an old game and had models from like 2006. The map would repeatably crash with that engine error until I decided to decompile/recompile the models it used. The crash went away.

I've also noticed, the models in the Source SDK 2013 base on Steam in the HL2 VPKs contain very old models as well, as low as version 44 MDLs which I believe is 2006 era.

I know SDK2013 is probably a low priority, but it would be great if all the models could be re-compiled with the latest version of studiomdl for SDK2013.