mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-24 13:55:31 +03:00
Page:
Drawing entities in specific view IDs
Pages
Base Animating
Base Combat Character
Base Entity
Base NPC
Base Weapon
Convar Lookup
Debug Commands
Drawing entities in specific view IDs
Entity List
Enum Reference
Filters
Frequently Asked Questions (FAQ)
Gameplay Changes
Graphical Changes
Home
How Mapbase can be used in specific settings
I O System Changes
Introduction to Mapbase
List of Modified Source Files
Map Compilers
Map Specific Scripts
Mapbase Credits
Mapbase Disclaimers
Mapbase Multi Tool
Mapbase Setup Troubleshooting
Media Resources
Modding with Mapbase
Prefabs and workarounds obsoleted by Mapbase
Projected textures
RPC Integration (Discord, etc.)
Reviewing Mapbase pull requests
Setting up Mapbase
Shader Changes
Skyboxes
Using Git with Mapbase
Using Mapbase Content
Using VScript as a HL2 mapper
VScript Basic Entity Code Tutorial
VScript Basic IO Tutorial
VScript Filters
VScript VScriptProxy
VScript in Mapbase
Wildcards and Matchers
math_lightpattern
1
Drawing entities in specific view IDs
Blixibon edited this page 2019-09-10 00:14:31 -05:00
Table of Contents
Mapbase adds a new keyvalue that could prevent entities from being drawn in any of the drawing passes used in the view rendering process. For example, if an entity is set to not draw in VIEW_MONITOR
, that entity won't show up on RT camera monitors. It will show up everywhere else (player's eyes, mirrors, etc.), but it just won't show up on cameras.
Any combination of view IDs could be used.
View ID list
- VIEW_MAIN - 1
- VIEW_3DSKY - 2
- VIEW_MONITOR - 4
- VIEW_REFLECTION - 8
- VIEW_REFRACTION - 16
- VIEW_INTRO_PLAYER - 32
- VIEW_INTRO_CAMERA - 64
- VIEW_SHADOW_DEPTH_TEXTURE - 128
- VIEW_SSAO - 256
FGD presets
- 0 : "Draw normally"
- 193 : "Hide in main view (player's eyes)" // VIEW_MAIN + VIEW_INTRO_CAMERA + VIEW_SHADOW_DEPTH_TEXTURE
- 36 : "Hide in cameras" // VIEW_MONITOR + VIEW_INTRO_PLAYER
- 24 : "Hide in mirrors/water" // VIEW_REFLECTION + VIEW_REFRACTION
- 60 : "Hide in cameras and mirrors/water" // VIEW_MONITOR + VIEW_INTRO_PLAYER + VIEW_REFLECTION + VIEW_REFRACTION
- 2 : "Hide in 3D skybox" // VIEW_3DSKY
- 128 : "Hide projected texture shadows" // VIEW_SHADOW_DEPTH_TEXTURE
(todo)
- Something Index
- Something special
- Something else