Env skypaint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Template update)
m (Multipage + infotable)
Tag: Replaced
Line 1: Line 1:
{{cleanup}}
{{cleanup}}
{{stub}}
{{stub}}
 
{{this is a|name=env_skypaint|notext=1|e0|game=Garry's Mod}}
 
{{infotable
[[File:env_skypaint.png|left|link=]] <code>env_skypaint</code> is a [[point entity]] available in {{GMOD|2}} (since version 13). It allows to create custom dynamic skybox (Both [[HDR]] and [[LDR]]).
|env_skypaint
[[File:Construct_sky.jpg|thumb|gm_construct uses env_skypaint]]
|img=[[File:env skypaint.png]]
[[File:Flatgrass_sky.jpg|thumb|gm_flatgrass also uses env_skypaint]]
|type=e0
 
|engine=2
It can be overridden by Sky Editor ([[edit_sky]]) entity spawned by player in game.
|in={{gmod|4}}
 
}}
 
{{Multipage}}
{{note|Set skybox name to <code>painted</code> to get this entity to work.}}
{{note|The colors aren't in RGB "255 255 255" format. In order to convert them to these values, you'll need to get your color value (such as 200 and divide it like 255/200, resulting in 0.78 rounded for the red color field)}}
{{note|Since <code>env_skypaint</code> isn't related to VRAD at all, you'll need to make your own [[light_environment]] for your skybox inside Hammer.}}
==Sky creation==
# Place <code>env_skypaint</code> somewhere in your map
# Change sky name to <code>painted</code>
# Compile and run map
# Using a Q menu, spawn the Sky Editor somewhere in your map.
# Go to sky editor properties and edit the values as you wish.
# When your done, just copy values to <code>env_skypaint</code>
# Compile map again. DONE
== env_skypaint example values ==
{| class="standard-table" style="width: 100%; text-align: center;"
! Map !! Sky Top Color !! Sky Bottom Color !! Sky Fade Bias !! Sun Size !! Sun Normal !! Sun Position Method !! Sun Color !! Dusk Scale !! Dusk Intensity !! Dusk Color !! Draw Stars !! Star Texture !! Star Scale !! Star Fade !! Star Speed !! HDR Scale
|-
| gm_construct
| style="background:#3883ff;color:black"|{{vec3|0.22|0.51|1}}
| style="background:#eaedfd;color:black"| {{vec3|0.919|0.929|0.992}}
| 0.1
| 0
| {{vec3|0|0|1}}
| Automatic
| style="background:#000000;"| {{vec3|0|0|0}}
| 0.5
| 2
| style="background:#ffffff;color:black"|{{vec3|1|1|1}}
| Yes
| skybox/clouds
| 2
| 0.5
| 0.03
| 0.56
|-
| gm_flatgrass
| style="background:#0099ff;color:black"|{{vec3|0|0.6|1}}
| style="background:#e6f2ff;color:black"|{{vec3|0.9|0.95|1}}
| 0.5
| 0
| {{vec3|0|0|1}}
| Automatic
| style="background:#000000;"|{{vec3|0|0|0}}
| 0
| 0
| style="background:#000000;"|{{vec3|0|0|0}}
| Yes
| skybox/clouds
| 2  
| 0.5
| 0.02
| 0.60
|}
==Keyvalues==
{{KV|Name|targetname|Entity's name}}
{{KV|Sky Top Color|topcolor|Sky top color}}
{{KV|Sky Bottom Color|bottomcolor|Sky horizon color}}
{{KV|Sky Fade Bias|fadebias|Tansision between sky colors (1.0 is even)}}
{{KV|Sun Size|sunsize|Size of sun glow overlay on sky.}}
{{warning|not to be confused with [[env_sun]]}}
{{KV|Sun Normal|sunnormal}}
{{KV|Sun Position Method|sunsize|<code>Custom</code> or <code>Automatic</code>(Uses [[env_sun]] values)}}
{{KV|Sun Color|suncolor|Color of the sun overlay.}}
{{KV|Dusk Scale|duskscale|Size of dusk at horizon.}}
{{KV|Dusk Intensity|duskintensity|How powerful the dusk effect is.}}
{{KV|Dusk Color|duskcolor|Color of the dusk.}}
{{KV|Draw Stars|drawstars|<code>Yes</code>or<code>No</code>. Draws a specified texture as overlay.}}
{{note|On sky it replaces black color in texture with alpha.}}
{{KV|Stars Texture|starstexture|Default: <code>skybox/starfield</code>}}
{{KV|Stars Scale|starsscale|Scale of overlay texture.}}
{{KV|Star Fade|starsfade|Fade the star texture towards the horizon.}}
{{KV|Stars Speed|starsspeed|How fast the star texture should scroll across the sky.}}
{{KV|HDR Scale|hdrscale|When rendering your skybox in HDR mode, output will be scaled by this amount.}}
==Input==
{{IO|Kill|Removes this entity from the world.}}
{{IO|KillHierarchy|Removes this entity and its children from the world. {{note|Entities already remove orphaned children upon being removed, but this input removes all children on the same frame, being marginally faster than <code>Kill</code>.}}}}
{{IO|[[AddOutput]]|Adds a keyvalue/output to this entity. It can be potentially very dangerous, use with care.<br/>''KV'' Format: <code><key> <value></code><br/>''I/O'' Format: <code><output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite></code>|param=string}}
==Output==
{{IO|OnUser1|to=OnUser4|These outputs each fire in response to the firing of the like-numbered <code>FireUser1</code> to <code>FireUser4</code> Input; see [[User Inputs and Outputs]].}}

Revision as of 06:13, 29 December 2023

Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

Stub

This article or section is a stub. You can help by expanding it.

env_skypaint is an e0 available in Garry's Mod Garry's Mod.

env_skypaint
Env skypaint.png
TypePoint entity
EngineSource Source
AvailabilityGarry's Mod Garry's Mod
 

Template:Multipage