SketchUp to SMD Export plugin: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(adding tip: 3D warehouse link)
Line 32: Line 32:
# Have all edges smoothed 100%. This is critical for proper physics functionality in game.
# Have all edges smoothed 100%. This is critical for proper physics functionality in game.
# Be inside a Group or Component to ensure proper smoothing export. Collision meshes that are not grouped will not export with correct smoothing.
# Be inside a Group or Component to ensure proper smoothing export. Collision meshes that are not grouped will not export with correct smoothing.
* Search for models online at the [http://sketchup.google.com/3dwarehouse/ Google 3D warehouse].


== See also ==
== See also ==

Revision as of 19:08, 16 July 2009

The SketchUp SMD_export plugin, part of the SketchUp Source Tools, allows SketchUp users to export their models as .SMD files. These may then compiled into models or static props for your levels.

How it works

You start by creating 3D geometry in SketchUp. The plugin translates selected parts of your model to an .SMD file, which you may subsequently compile or "bake" into an .MDL(model) file. MDL files are used by the game engine directly, and are useful as props or parts of the environment to compliment brushes.

The types of geometry you can export to .SMD format are not as limited as they are with .VMF.

Installation

See the main SketchUp Source Tools page for detailed installation instructions.

SMD tips

  • SketchUp is very well suited to doing large-scale environmental props.
  • The .SMD export will only include what is selected. You can keep several models in one SketchUp file, and then export each individually. If you name your components with a prefix of "SMD_" or a suffix of "_SMD", the export dialog will use that as the default filename of the .SMD file.
  • If you want your component to export as an .SMD in a certain folder, you may include a full path.

For example:

\props_highway\bridge_beamheavy_smd

will export to:

<your_game_dir>\models\props_highway\bridge_beamheavy.smd


  • You can make physics collision models for your props in SketchUp as well. SMD files used for collision should:
  1. Conform to the size and shape of your prop. The collision mesh blocks player movement and projectiles, so it should wrap tightly.
  2. Should be composed of convex, water tight solid volumes. This is not unlike making brushes for VMF export. You can combine several solids to create an overall concave collision volume, but you should try to keep the number of hulls (solids) under 20 or so.
  3. Have a valid game material assigned to each face of the collision mesh.
  4. Have all edges smoothed 100%. This is critical for proper physics functionality in game.
  5. Be inside a Group or Component to ensure proper smoothing export. Collision meshes that are not grouped will not export with correct smoothing.


See also