I use SketchUp to create maps and models for Source-based games. The plug-ins available for exporting to the required formats all work well. There’s just one problem. Level design and collision meshes are required to be built up using only convex shapes (ref: https://developer.valvesoftware.com/wiki/SketchUp_to_Hammer_Export_plugin#Modeling_tips). I’ve taken a screenshot to illustrate the issue:
The model to the far left is a concave shape. It will not export properly.
The second model is an attempt at dividing the shape into smaller convex shapes. To do this, I copied the original model, mate if flat, drew the necessarily lines, made each segment a group, and finally used the push/pull tool to make each segment 3d again.
The third model was made with the same process as the second one, but defining the segments differently (also convex).
This is tedious work. Even so, it can be done without too much fuzz. It becomes a big problem when more complex shapes like the last model are introduced though.
I basically need a way to have this done automatically. Valve (the creator of the Source engine) is unlikely to do anything about this, I’m afraid. Is this feature something we could see in SketchUp? Alternatively, through an extension? I’ve seen other people asking similar questions, but there doesn’t seem to be any good solution. Some have mentioned some ruby scripts, but I have no idea how to use them.
Any useful tips would be welcome!