Editing and Customization > Resources, Tools, Tips & Workarounds
[TIP] When compiling, a complex collision mesh is reduced to a single piece.
(1/1)
Konrad Beerbaum:
- From the Valve Dev Wiki
By default, studiomdl simplifies a collision model with more than 20 convex parts into a single hull, for performance reasons.
WARNING: COSTLY COLLISION MODEL!!!! (<xx> parts)
Truncating model!!!!
Model has 1 convex sub-parts
In some instances, though, it's necessary to have a collision model that is more complex or detailed than what can be achieved with 20 seperate pieces. To disable this behavior pass the argument -fullcollide to studiomdl.exe when compiling your model. This can be done in the command prompt, as
studiomdl -fullcollide "path/to/model.qc"
with a drag-and-drop DOS batch file, as
@echo on
cd "%sourcesdk%/bin"
studiomdl.exe -fullcollide %1
@pause
or with a tool like GUIStudioMDL or Studiocompiler.
Using any of these methods on a collision model that would normally be truncated should return:
WARNING: COSTLY COLLISION MODEL!!!!
Truncation DISABLED!!!!
Model has <xx> convex sub-parts
Collision model completed.
Navigation
[0] Message Index
Go to full version