Simple source engine metaballs implementation. Its in beta.
Based on Paul Baker's project from 2002.
THIS IS FOR SOURCE CODE!
You can make pull requests or issues to give me some feedback about problems and their fixes.
- Copy
src/game
folder to thesrc
folder of your mod/game. - (OPTIONAL) Copy
game/mod_hl2/materials
in your mod. - Copy
game/mod_hl2/fgd/blobs.fgd
in your mod. - Go to
src/game/client
of your mod/game 's source code, openclient_base.vpc
and add$include "metaballs\metaballs.vpc"
somewhere. - Go to
src/game/server
of your mod/game 's source code, openserver_base.vpc
and add$include "metaballs\metaballs.vpc"
somewhere. - Compile the code.
Basically thats it.
- Open Options of the hammer. Add
blobs.fgd
to theGame Data Files
- Use
point_blob_container
andpoint_blob_element
in hammer.
- Do not set Grid size bigger then 20.
CMeshBuilder
cant make more then 32k verticies. - Its ok to have issues with lighting with this implementation.
CMeshBuilder
is peace of shit.
I wanted to make it work on SDK 2013 as well as on any other source game. SDK 2013 dont have particles source code. I whould like to make it to be a particle, but then wont make it for SDK 2013 and even wont be able to make it opensource.