Ru/Source

From Valve Developer Community
Jump to navigation Jump to search

Template:Otherlang2

id Tech 2 id Tech 2GoldSrc GoldSrcSource SourceSource 2 Source 2

Движок Source игр Half-Life 2 - переосмысление движка Goldsource из Half-Life. Кроме Half-Life 2 и её эпизодов, Source используется в Counter-Strike: Source, Counter-Strike: Global Offensive, Team Fortress 2, Left 4 Dead, Left 4 Dead 2, Portal и Portal 2.


Renderer

  • Шейдеры версии 2.0 (и ниже) , bump mapping, динамически изменяемый уровень детализации ( LOD ) для моделей и окружения (мира)
  • пользовательские шейдеры, написанные на шейдерном языке высокого уровня (High-Level Shader Language)
  • Кубическое текстурирование среды
  • Динамический свет, вертексное освещение и карты освещенности, множество типов освещения, например: мигание, пульсирование и т. д.
  • Высоко-динамичный диапазон освещения
  • Вода с отражением и эффектом Френеля
  • Продвинутая система управления частицами, способная создавать спрайты и модели
  • Технология «Projected Shadows» позволяет присутствовать большему числу персонажей в сцене
  • Специальные энтити для блокирования видимости
  • Открытые/закрытые пространства
    • Деформируемые поверхности
    • 3D скайбоксы - «трехмерное небо», расширяющее горизонт и добавляющее параллакс для удаленных объектов
    • Динамически просчитывающаяся органика (трава, деревья и т. д.)
  • Подразделенные поверхности, диффузные и зеркальные отражения
  • Эффект отраженного света в реальном времени
  • Эффекты: частицы, лучи, объемный дым, искры, кровь, эффекты окружающей среды такие как туман и дождь
  • Масштабируемость
    • Поддержка оборудования под DX8-DX9 (DX6-DX9 с модификациями и шейдерами с фиксированной функциональностью)

Система материалов

  • взамен традиционных текстур, Source работает с наборами материалов, которые определяют из чего сделан объект, какая для него нужна текстура. Материал определяет, как объект разламывается при разбивании, как он будет звучать при разбивании или волочении по другой поверхности, и какая у объекта масса и плавучесть. Эта система намного более гибкая по сравнению с любой системой основанной только на текстурах
  • Материалы могут взаимодействовать с объектами или NPC (НИП). Например, такие материалы как грязь или снег заставляют машины скользить, терять управление

Сетевой код в Source

  • Проверен временем и игроками со всего мира
  • Поддержка игры по локальной сети и через сеть Интернет
  • Анализ прогноза для интерполяции нарушений работы сети
  • Оптимизация для соединений 56кб/с с их большими потерями пакетов и высокой задержкой

Продвинутые персонажи

  • Детализованные и правдоподобные персонажи
  • Реалистичные глаза
    • Фокусируются на игроке/обьекте, а не просто параллельно направлены (в никуда)
    • Правильное строение глаза, для реалистичного отражения в глазах
  • Симуляция мускулатуры, обеспечивающей выдающиеся эмоции, речь и язык тела
  • Речь, не зависимая от языка, персонажи могут естественно говорить на многих языках
  • Система анимации, основанная на костях и скелетах
  • Многоуровневая система анимации позволяет конструировать сложные анимации из нескольких частей

Physics

  • More responsive world with realistic interactions
  • Sounds & graphics follow from physics
  • AI characters can interact with physically simulated objects
  • Ropes/cables, machines, constraint systems, ragdoll physics
  • Can be controlled by level design
  • Kinematic animated bone followers
  • Custom procedural physics controllers
  • Vehicles
    • Wheels slip and skid
    • Realistic suspensions with springs on each wheel
    • Realistic leaning during acceleration/deceleration and turning
    • Individually tunable parameters such as horsepower, gearing, max speed, shift speed, tire material, tire friction, spring tension/dampening etc.
    • Multiple players in a vehicle in multiplayer
    • Hovercraft support for cheaper simulation

Advanced AI

  • I/O system allowing level designers to control AI
  • Sophisticated navigation: characters that run, fly, jump, crouch, climb stairs and ladders, and burrow underground
  • AI senses things using sight, sound, smell
  • AI relationships determine friend/foe status of other entities
  • Battle AI allows squads of AI characters to operate together, know when to advance, retreat, lay cover fire, etc.

Sound System

  • 7.1, 5.1 surround sound, 4 speaker surround
  • High-quality 3D spatialization
  • Custom software DSP
  • Automatic DSP based on environmental geometry
  • ADPCM decompression
  • 16-bit 44KHz, stereo wave data with all features
  • MP3 decompression (requires Miles license)
  • Support for audio streaming on any wave
  • Real-time wave file stitching
  • Pre-authored Doppler effect encoded waves
  • Pre-authored distance variant encoded waves
  • Commentary system

UI

  • Server browser - Displays all active game servers and allows a player to choose which one to participate on. Players can filter and sort server lists in order to speed up the display and selection of a server.
  • Friends instant messenger - (Undergoing Maintenance) Allows players to message each other both in and out of the game as well as join friends in existing games. No more confusion about what server your friends are on, you can easily join with this feature. The Friends button has removed from the game menu and goes to Steam Community In-Game.
  • VGUI - Valve's custom GUI interface mimics most of the Windows controls but is rendered using the Source engine for both in game and out of game uniform UI display. Some features:
    • Dynamic in-game HUD display
    • Many widgets/controls (i.e. buttons, treeview, html control, ...)
    • Themes/custom visualization allowed
    • Platform independent
    • Localized texts (Unicode compliant)

Programming

  • All code written in C/C++ using Visual Studio .NET 2003. Easily and quickly derive new entities from existing base classes.
  • Internal context sensitive performance monitoring system.
  • Graphics performance measurement tools built into the engine.
  • Modular code design (via DLLs) allows swapping out of core components for easy upgrading or code replacement.
  • DX9 shaders all written in HLSL.

Tools

  • Face Poser
    • Facial expression tool used to craft speech and emotions
  • Valve Hammer Editor
    • WYSIWYG World editor
    • Create world brushes
    • Terrain editor
    • Place detailed world models and AI NPCs
    • Set navigation points/paths for NPCs
    • Place triggers, clip brushes, logic etc.
    • Allows level designer to hook up I/O between entities to control AI within the game
  • Half-Life Model Viewer
    • Full model previewer
    • Rotate models in any direction
    • Setup hit boxes
    • View physics hull
    • View normals
    • Wireframe, shaded or textured view modes
  • Studiomdl
    • Model compiler
  • Vbsp, Vrad, Vvis, Vmpi
    • Map compilation tools (bsp, lighting and visibility)
    • VMPI - distributed compilation tool allowing level compiles to be spread across many PCs greatly reducing compile times
  • Exporters
    • XSI, Max and Maya .smd exporters for exporting 3D models

See also