• SabreCSG - VMF Importer for Unity!
    6 replies, posted
Dear Facepunch Community, I have created a VMF (Hammer save file) importer for SabreCSG. You can import any map you want into Unity Engine. Here are some examples (I didn't bother with all the materials): https://files.facepunch.com/forum/upload/241913/8de2f329-7eaa-4de6-8f14-4efe85b07583/image.png https://files.facepunch.com/forum/upload/241913/ca3ea014-187a-414d-8880-bd803bab452a/image.png https://files.facepunch.com/forum/upload/241913/45766985-d6f0-4cf9-9935-bcb61ef5d3eb/image.png I transform all of Hammer's Solids into SabreCSG brushes so you can freely edit the levels: https://files.facepunch.com/forum/upload/241913/8d06edeb-5ca3-452a-ab96-ff16ebf3e87e/SabreCSG.gif Join our new SabreCSG discord channel if you'd like to chat! https://discord.gg/pFAS5rK
Does what does it do with areaportals, triggerbrushes etc?
OH boyyyyyyy. How does it handle materials?
Unity doesn't support any Source Engine material format. You can use VTFEdit to batch export VTF files into PNG. SabreCSG provides a menu option to batch create materials for textures. From there the VMF Importer automagically finds them and assigns it to all the surfaces in the level. So it's really just a bit of waiting and not much work if you want to import existing levels with all materials applied. This is naturally less of a problem for completely custom maps where you already have your textures in a compatible format. As for area portals, trigger brushes and a lot of others, it's smart and strips those away. Some brushes it does understand like invisible clipping brushes, it will add those as collision brushes, or NODRAW surfaces, it will use SabreCSG's version of it called "Exclude". It was all designed to be used by people with little to no game development experience. If you need help feel free to join the Discord group anytime.
Fascinating! Good work
This is remarkable work! I was working on something very similar to this a few months ago as a standalone Unity plugin that could work in runtime, but it was in the original Quake format, and I couldn't get UVs to be calculated in object space correctly for some reason, and I ended up taking a break from it. I'll give this a shot when I get home! I'm on Linux though so I can't run Hammer well, and there's no good Linux alternative that's compatible for it. Thank you again for your hard work!
https://twitter.com/Henry00IS/status/1039489585292759041 Saw this a few days ago where now you can import Quake 1 levels as well. This is really neat.
Sorry, you need to Log In to post a reply to this thread.