Difference between revisions of "Mapping:Adding a model to your map"

From Custom Map Makers Wiki
Jump to: navigation, search
(Rotate the model)
(Rotate the model)
Line 69: Line 69:
 
|style="padding-right:5%;vertical-align:top"|
 
|style="padding-right:5%;vertical-align:top"|
  
 +
Complex model rotation can be achived using the angles key. The angles key accepts 3 values (0-359) which relate to degrees.
  
  

Revision as of 14:55, 29 August 2011

Download or create your model

A large number of resources exist where you can freely download models to enhance your maps.

Most versions of radiant can import the following model types

  • .ase
  • .md2
  • .md3
  • .obj
  • .3ds
  • .lwo

In the future md5 models may also be supported.

The most important part is to extract your downloaded model to the correct path. Generally, for models made for Urban Terror this will be the folder mapping/models/mapobjects

An example model (CMM lightbulb) can be downloaded here.

The model is packed in a single .zip file, extract the contents to the folder mapping/models/mapobjects/cmm_lightbulb

Add the model to your map

Adding the model is very simple. Models are simple entities.

Right click in the 2d window and select misc->misc_model from the entities menu.

If the model is correct and you placed the model (and its textures) in the correct folder your model will be placed at a point close to your mouse.

Initially the model may not be quite the right size for your map, this is sometimes the case.

Tut add model 9.png

Resize the model

Resizing the model is very simple, there is a special key that affects the scale of the model, modelscale.

Open the entities window with the model selected.

Enter a key/value pair of

name  : modelscale
value : 2

This will double the size of the model.

Values less than 1 reduce the size of the model.

name  : modelscale
value : .5

Halves the size of the model.

Tut add model 10.png

Rotate the model

Complex model rotation can be achived using the angles key. The angles key accepts 3 values (0-359) which relate to degrees.


Tut add model 5.png

Tut add model 6.png

Tut add model 7.png

More information

See the misc_model reference for exact information.