Пыль, Туман и Дым
| Серия Воссоздание окружающей обстановки Выскажите свои мысли — Помогите нам воплотить больше идей |
|---|
|
Снаряжение | Животные и существа | Муравьиные львы | Лучи и лазеры | Кабели и верёвки | Движущиеся облака | Теория цвета | Битвы | Комбайны | Сжатие ресурсов | Двери | Пыль, туман и дым | Лифты | Переключение карт | Внешнее освещение, солнце, погода и окружение | Взрывы | Огонь | Растительность | Стекло и окна | Хэдкраб | Жизнеспособность | Лестницы | Освещение | Оптимизация | Физические объекты | Сканеры сетчатки | Звук и музыка | Спецэффекты | Ландшафт | Поезда | Турели | Вода | Оружие | Зомби |
Эта статья о добавлении на карту дыма, пыли, тумана и т.д. Они весьма схожи между собой, поэтому их эффекты пересекаются.
Объекты
- env_fog_controller — добавляет туман по всей карте
- sky_camera - aside from being used to add 3D Skybox, fog on 3D Skyboxes need to be adjusted through this entity.
- env_smokestack — добавляет дым, сдуваемый ветром
- func_dustcloud — добавляет пыль
- env_steam — быстро движущаяся версия env_smokestack, без ветра
- env_dustpuff — пускает клубы дыма
- env_smoketrail — создаёт дым в виде "дымного следа"
- env_dusttrail (must be parented. Can't be toggled.)
- func_smokevolume — создание объёмного дыма (использует значительные ресурсы CPU)
- func_dustmotes
Материалы
effects/fog_d1_trainstation_02— Используется только на расстоянии. Fit to brush face. Только в играх содержащих исходный код Half-Life 2.effects/fog_d2_coast_01— Используется только на расстоянии. Fit to brush face.
20th Anniversary Update only.
- Example usage of this material can be seen on all Water Hazard (before
d1_canals_13), Highway 17 and Sandtraps maps, which was applied to round shaped brush and displacement fog placed in far distance, combined withenv_fog_controllerwith radial fog enabled.
- Example usage of this material can be seen on all Water Hazard (before
effects/fog_d1_canals_13— (useseffects/fog_gradienttexture, just with color changed through$colorVMT parameters).
20th Anniversary Update only.
- Example usage of this material can be seen on
d1_canals_13map, which was applied to round shaped brush and displacement fog placed in far distance, combined withenv_fog_controllerwith radial fog enabled.
- Example usage of this material can be seen on
shadertest/volumetricfog— Не работает.tools/toolsfog— Работает только с func_smokevolume.tools/toolsskyfog— Non-functional, use non-existent shaderSkyFog.
Примечания
- env_smokestack и func_dustcloud для достижения своего эффекта используют многочисленные спрайты , и поэтому очень требовательны к ресурсам (некоторые настройки замедлят вашу карту, особенно на слабых системах).
- CS:S есть некоторые модели облаков.
- Лучи света должны быть добавлены вручную. Для этого существует модель (
Effects/vol_light.mdl) или вы можете создать не твёрдый браш с материалом models/effects/vol_light001 или vol_light002. - Чтобы получить туман в 3D скайбоксе, настраивайте параметры тумана в sky_camera. Для достижения наилучшего результата задайте ему те же параметры, что и в env_fog_controller.
- In Source games, prior to Left 4 Dead, renders fog as a plane a certain distance away from the camera. This method is bad, as rotating the camera will strengthen or weaken the apparent amount of fog in a particular spot, even though the viewer hasn't moved at all. After
Left 4 Dead, aswell as
Half-Life 2 (since 20th anniversary, enabled in some maps only), and
Ветвь Team Fortress 2 games (
,
,
and
), Valve implemented a new radial method which is independent from the viewing angle. Mapbase also has it's own implementation of radial fog.
There is a Fog Panel in Left 4 Dead 2 that allows in-game manipulation of fog parameters. It is loaded via console command fogui.
dxlevel 81 (DirectX 8.1 level) or lower, only dxlevel 90 (DirectX 9.0 level) or higher.
Additionally, using any Direct3D 9 wrapper (D3D9 to D3D11 via
dgVoodoo 2 for example) on this branch, even on systems with newer NVIDIA drivers that fixes this issue, will also cause this fog issues to appear.
Смотреть также
Справочные сноски
|
Внешние ссылки
- Fog prefab for Episode One and Two Realistic, non-fps killing fog - tutorial