Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® Modtools / Valve Source (Half Life 2) / uncheck discontinuity
  RSS 2.0 ATOM  

uncheck discontinuity
Rate this thread
 
30318
 
Permlink of this thread  
avatar
  • Total Posts: 47
  • Joined: 23 December 2008 02:12 PM

I’m doing a tutorial where for exporting to the phys and idle a step is done that I didn’t do before.

selection>geometry approximation>polygon mesh> uncheck discontinuity (flag automatic off)

What is the point of doing this, cause if I dont do the step I’m still able to compile to a model?



Replies: 0
avatar
  • dwigfor
  • Posted: 28 December 2008 03:23 AM

Can you post a link to the tutorial?



Replies: 0
avatar

It’ll compile, just not the way you want. Double-check the phys box after compiling.

If you create a physbox that looks like:
phys1.jpg

And compile it as is, the resulting phys box isn’t going to correctly take on the shape of the object.

phys2.jpg
It’ll basically just still create the phys box automatically instead of using the custom one you’ve created. If that were a wall, the player is going to hit an invisible barrier which prevents them from going up to the corner.

Turn off the Discontinuity before exporting however:
phys3.jpg

And the resulting phys box is now better.
phys4.jpg



Replies: 0
avatar
  • dwigfor
  • Posted: 29 December 2008 03:37 AM

Thanks very much Michael!  Pics are most helpful!  I was wondering why my physbox’s were acting like bounding boxes.  Have to give this a shot on my model I’m just finishing up..

-Dave



Replies: 0
avatar

Cheers!
Be sure to build it with seperate primitives (I’m not sure if they have to be just cubes or not, but they’ve never done me wrong), merged back into a single object.

You’ll also need to tell the .qc file that it is concave. Mine looked like

$collisionmodel "L_phys.smd"
{
    
//Mass in kilograms
    
$mass 350.0
    $concave
}


Fair bit of warning (might only apply to Vista): if you tell the qc it is concave and you try to compile the model with discontinuity turned on for demonstration purposes...DO NOT WEAR HEADPHONES! It’ll hurt.



Replies: 0
avatar

why concave?

edit:

thx btw, this was really helpfull, specially the screens



Replies: 0
avatar

From Valve’s Dev. Wiki:

$concave:
The vphysics collision model is not a single convex hull. [B]If not set, it’ll make a single convex hull out of whatever geometry you give it.[/B]



Replies: 0