Hey all, it’s me again. True to my word I’m updating the blog with recent SVN updates!
Anti-aliasing (again)
If you saw the last blog post you’ll see that anti-aliasing was hard to implement as a ConVar… well we cracked it! Anti-aliasing is now available in several modes (MSAA 2x through 16x and CSAA 8x through 16x):
Note: in the screenshot above you can only see MSAA modes, this is because the graphics card of whoever took the screenshot doesn’t support any CSAA modes.
But anti-aliasing isn’t totally fixed. DirectX is crying…
Direct3D9: (ERROR) :MultiSampleType between DepthStencil Buffer and RenderTarget must match.
when bloom or another screen-space effect is enabled (or render targets). I’ll post another blog entry when we completely fix this.
Screenshots
Whilst flicking through the issue tracker, I found a bug that Logan posted several months ago, which seemed very easy to fix (don’t know why I couldn’t do it earlier). Basically he wanted PNG or JPG screenshot support in the engine, which seems simple, right? Well it is. D3DXSaveSurfaceToFile does this for us, however the only slight issue was that this function requires an absolute path. Therefore I had to mess around with filesystem to get the absolute path to <launcher dir>/<mod>/screenshots. There are now 7 file formats to save screenshots in (woohoo!):
Model decompiler
We all know about CannonFodder’s MDLDecompiler, which is very useful for decompiling V44 models and using our studiomdl to compile them into V37, but decompiling V37 models is currently impossible. So I set about coding my own, which seemed very useful at first thanks to this brilliant VDC article. However, I’m currently failing to export triangles correctly (as well as the skeleton). Hopefully more updates on this soon.
Conclusion
Things which I don’t have time to write up:
- Ben is in the process of fixing the tracker;
- Not much more!
This has been a lot shorter than the previous article, but fear not, more updates Pat’s Steam clone, Soda soon! Peace out.


Sorry to burst your bubble bro, but decompiling version 37 models is possible.
I mean’t impossible without a V37 decompiler
We’ve got a version 37 decompiler hope this helps.
I’ve got a version 37 model hope this helps. On a side note, I’m pleased that ScarT actually reads our blog.
Speaking of blogs, are you going to update yours any time soon ScarT?
I’ve been meaning to update my blog, but I’ve been so busy working on Missing Information that I haven’t had the time to it tbh.
Hi there, I have a v37 model that I want to decompile, but as you know its not possible yet.
So are there any news about the v37 decompiler or has it been released?
Plz let me know it, if there are any news
The only people with model decompiler’s are us, MI, and (I think) the Project 9 team. I heard that ScarT’s decompiler is on the private tub, but I’m not really sure, you’d have to earn access to find out. We probably won’t release ours for a long while.
Yours aren’t really working yet, is it? Project 9 doesn’t have one.
is your decompiler working ScarT? if yes, could you send me it or could i send you the model to decompile? that would be great.
Yes, its fully working. Who are you?
im just a normal user who wants to decompile a model of the leaked hl2 (im not working on any project or mod or something)^^ now do you want it to decompile it for me or send me your decompiler? that would be nice
Sorry, I don’t work for strangers.
hm thats bad, even if it wont take longer than 5 minutes…well then i have to wait until this decompiler is released