From dd236a53fb7d0ada6d2c7b50d8c05298680e5219 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Mon, 15 Jul 2019 11:11:11 -0500 Subject: [PATCH] Updated Skyboxes (markdown) --- Skyboxes.md | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/Skyboxes.md b/Skyboxes.md index a8de887..e138df3 100644 --- a/Skyboxes.md +++ b/Skyboxes.md @@ -1,12 +1,25 @@ -sky_camera has received some interesting changes, which will be outlined in this article. +**sky_camera** is the entity used to create a skybox. The area around it will be projected around the map via the `tools/skybox` texture. -# Movement +Outside of Mapbase, sky_camera is static. Once it's been placed, the skybox can't move. You can move the sky_camera itself through things like logic_measure_direction, but it doesn't update the skybox. There is a trick to update the skybox by continuously removing and respawning the sky_camera, but this is crude and usually isn't very smooth. -Three important changes have been made to sky_camera: -* The ability to update position (moving sky_camera) -* The ability to be parented to another entity -* The ability to rotate (rotating the world's perspective of the skybox) +--- -These changes create the ability for the skybox to move around freely. +In Mapbase, sky_camera has been updated to support parenting and continuous updating. Not just that, but there's a new option to use the sky_camera's angles for actual skybox rotation rather than fog direction. + +Together, these changes create the ability for the skybox to move around freely relative to the world. + +#### I/O/KV + +* **Use Angles for Sky** `` - Uses angles for actual skybox rotation, as if the world were tilted on this entity's axis. +--- +* **ForceUpdate** `` - Forces the 3D skybox to update with this sky_camera's position. +* **StartUpdating** `` - Begins per-tick skybox updating, which is needed if you want this sky_camera to move. +* **StopUpdating** `` - Ends per-tick skybox updating if it was enabled before. + +There's also a spawnflag for a sky_camera to spawn continuously updating its position. + +--- + +HL2: Downfall's multiple skybox support has been added as well. (todo) \ No newline at end of file