GoldenEye: Source Forums

  • March 28, 2024, 11:55:29 pm
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: [TIP] When compiling, a complex collision mesh is reduced to a single piece.  (Read 6976 times)

0 Members and 1 Guest are viewing this topic.

Konrad Beerbaum

  • Retired Lead Developer
  • 007
  • *
  • Posts: 1,343
  • Reputation Power: 1
  • Konrad Beerbaum has no influence.
  • Offline Offline
    • Konrad Beerbaum Online Portfolio

- 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.

« Last Edit: February 09, 2009, 07:17:16 am by Sean [Baron] »
Logged
Konrad Beerbaum: Environment Artist
http://www.konradbeerbaum.com
Pages: [1]   Go Up