Эта статья документации для всего, что использует платформу Source. Нажмите для получения дополнительной информации.

Трёхмерная модель

From Valve Developer Community
< Ru
Jump to: navigation, search
English (en)Deutsch (de)Español (es)Français (fr)한국어 (ko)Русский (ru)Translate (Translate)


Info content.png
This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article tries to comply with the alternate languages guide.
Редактирование модели в Softimage Mod Tool(en).

Трёхмерная модель (далее — модель) представляет из себя набор точек, или вершин, которые образуют трёхмерную форму, известную как полигональная сетка(en). Зазоры между точками обычно заполнены полигонами, которые как правило покрыты материалами(en).

Models are used for almost every 3D object in Source that isn't a part of a map's underlying brush(en) geometry. NPC(en)s, physics objects, guns, and sometimes even buildings are all models.

Models are created in external modelling packages that are not part of the Source SDK. Valve currently use Maya(en), but there are other options(en). The SDK tool studiomdl(en) is used to compile(en) files exported from a modelling package into the binary mdl format that Source understands.

To ensure consistency an entity will normally choose its own world model; the three main exceptions to this are prop_static, prop_physics, and prop_dynamic.

Зачем используются модели?

A Half-Life 2(en) scene consisting entirely of models.
Detail
A model can have many, many times more vertices than a brush. Level of detail(en) allows the detail to be toned down when it is too far away to be appreciated, improving performance.
Skeleton(en) and vertex(en) animation
Detailed and lifelike animation can be achieved with a model. Walking, talking, running, jumping!
Dynamism
Unless specifically made to behave otherwise, a model's position, lighting and animation are all completely dynamic. They can go anywhere and do anything.
Replication
Every instance of a model is guaranteed to look the same, and you can change all of them at once by modifying one small set of files.

Консольные команды

r_flushlod
Reload all models from disc.
r_drawmodelstatsoverlay <1/0>
Print the name of the model under the crosshair to the screen.

Смотрите так-же


Неполная

Эта статья(раздел) является наброском. Вы можете помочь, дополнив её.