S&box Wiki

Guide to Models

A beginners guide to models

This guide assumes you've already created a model or imported a model.

Materials

  1. If you want ModelDoc to use your material names, simply add a new type by right clicking on the left side of the interface and adding a DefaultMaterialGroup.

  2. Click on it and then simply clicking on the magnifying glass icon and looking for the material that we created earlier. It should look something like the picture below.

image.png

You can now compile your model and at this point you should be able to see it in the viewport with it's proper textures. You can fine-tune the materials through material editor and check the differences in real time.

Physics and Collisions

Adding physics to your model is covered on this page.

LODs

You can learn more about LODs on this page.

Prop Data

Prop data allows you to add different properties to your model, which can be used when your model gets spawned as a prop. This is covered on this page.

Attachments

Attachments allow you to specify positions on a model for use within code, which means that you can do things like spawn particle effects from them - which is great for making bullet casings fly out of a gun, for example. You can read about attachmens on this page.