Compiling Models Into a Map (misc_model)

Mapping tutorials KleskBY 0 14
Author: Baker55
Source: https://www.moddb.com/tutorials/compiling-models-into-a-map-misc-model

Compiling Models Into a Map (misc_model)

Original tutorial by Baker55, first published June 27, 2023. Reproduced with the author's permission. The original article is linked above.

The Quake 3 map tools support compiling models (misc_model) into a map and they become part of the .bsp. These models collide and light according to their geometry.

A water tower with fog

Pictured: models/outdoors/watertower.md3 with fog 0.8 0.25 0.25 0.2 1.0 (density: 0.8 rgb: red 0.25 green 0.25 blue 0.2 alpha: 1.0 means sky obscuring).

Trees compiled into a Quake3_Quake1 map

Pictured: You can stand under the branches of these trees.

misc_model

The Quake 3 map tools support compiling models into a map and they become part of the .bsp. These models collide and light according to their geometry.

It increases the size of the .bsp and can make the map compile tools and the engine running the map do more work. Therefore, if the model geometry is not an important part of the map and is an uninteractive decoration, it may be better suited for misc_mdl_entity or misc_mdl_illusionary (similar to func_illusionary in Quake 1).

Note that it is possible to make a misc_model non-colliding like a func_illusionary with flags, removing the solid flag.

scale

To scale a misc_model up or down, set "modelscale" "0.25" to make a model 25% size or "modelscale" "2" to double the size.

misc_model scale example 1 misc_model scale example 2 misc_model scale example 3

Examinivg Collision

We will examine collision looking at the Quake3_Quake1 playable single player demo map hotel1 ("The Hotel").

In the rooms, there are bathrooms and sinks. These are compiled into the map.

Bathroom in The Hotel map

And yes we can stand in the bathtub. We fit. On the "The Hotel" occasionally there are items in a bathtub.

Player standing in the bathtub

Bottle model in a sink

And this bottle fits into the sink. The bottle of pills is a Quake healthbox with the model property set to "model" "models/props/bottle_02.md3".

Machine and rails compiled into the map

The machine and the rails here are compiled into this map.

Notes:

  • It is possible to make a misc_model part of a moving entity like a door. Example: create a block and and turn it into a func_wall_rotating give it a targetname of "wall1". Create a misc_model and set "target" "wall1". The map compiler will make it part of the wall.

Although this does work, a better idea usually is to make the "misc_model" into a "misc_mdl_entity" or "misc_mdl_illusionary" and set "attach_to" "wall1" or "door1" as these are not compiled into the map which is better if the model is a decoration.



Tags: Quake3_Quake1, Q3Map2, misc_model, mapping, Baker55

Comments


captcha


No comments yet. Be the first!
Owned by kleskby#1837
Close

You have no new notifications.

SHOUTBOX
Open chat to load…
Log in to chat