LogoLogo
简体中文
简体中文
  • 主页
  • 联系我们
  • 感谢名单
  • 维基101 - 如何开始?
    • 修改指南
      • 如何备份,解包和重新打包
      • 如何配置修改用一个工作环境
      • 修改工具
        • 如何使用RSPNVPK
        • 资源
          • 游戏目录
          • BSP
            • BSPSource
            • BSP Viewer
            • BSP2MAP
            • BSPZIP
            • EntEd
            • Entspy
            • Map Analyst
            • PackBsp
            • Pakrat
            • VBSP_h4xed
            • VIDE
            • VMEX
            • WinBSPC
            • WinBSPZip
          • Hammer
            • 位移Luxel密度
          • VTF & VMT
            • VTFEdit
            • Vtex
              • Vtex - 编译参数
              • Vtex - 疑难解答
  • 信息
    • 纹理
      • Valve纹理格式-VTF
        • 创建材质
        • 创建动画粒子
        • 修改动画粒子-Wanty的方法
      • Valve材质类型-VMT
      • 纹理和颜色
        • 颜色和纹理信息
      • 着色器
        • $basetexture
        • $color
        • $reflectivity
        • 材质标志
      • 反照率贴图
      • 凹凸贴图
        • $bumpmap
        • $ssbump
      • 立方环境贴图
      • 光照贴图
      • 矢量材质
      • 纹理映射
      • 内容丢失
      • 基础天空盒
        • 2D天空盒
        • 3D天空盒
    • 脚本
      • 关键值
        • Gameinfo.txt
        • 武器配置
      • VScript
    • 文件格式
      • NUT & GNUT-Squirrel游戏语言
      • PSD-Photoshop文档
      • TGA-Truevision图像文件
      • TXT-文本文件
      • VPK-Valve包文件
    • 文件位置
      • VPK
      • 武器
        • 武器模型
        • 武器脚本
        • 武器配置
      • 模型
        • 模型-天空背景
        • 铁驭
          • 模型-铁驭能力
          • 模型-铁驭武器
        • 泰坦
        • 模型-引导标志
        • 模型-容器
        • 模型- Fixtures
        • 模型-IMC基础
        • 模型-工业
        • 模型- 虎大前进基地_live_fire
        • 模型-NPC
        • 模型-边境防御
  • 修改
    • 武器
      • 自定义武器皮肤
        • 使用\应用自定义武器皮肤
          • VTF文件制作
        • 制作武器自定义皮肤
          • 2D图像线框渲染模式(Wireframe mode)
        • 武器自定义皮肤样例
      • 武器效果
      • 准星修改
        • 批量修改准星
        • 准星样例
      • 武器定位
      • 武器视野
      • 一键更换武器视野
      • 特殊/独特武器修改
        • 电能步枪-电弧枪
        • 电能步枪-蓄力颜色
        • LSTAR-蓄力颜色
    • 铁驭
      • 模型-铁驭类
    • 泰坦
      • 泰坦的穹顶护盾
      • 北极星
        • 线缆-钩爪和绊索陷阱
        • 电浆磁轨炮-蓄力特效
        • 北极星-重力特效
        • 北极星-铝热剂特效
      • 浪人
        • 剑封颜色
      • 军团
        • 强大火力-蓄力颜色
      • 离子
        • 镭射炮-蓄力颜色
        • 漩涡防护罩颜色
    • 地图
      • 地图-天空背景
      • 地图-立体地图
      • 战争游戏
        • 全息墙颜色
    • 用户界面
      • 游戏文本修改-r1_language
      • 游戏中
        • 计分板背景
      • 菜单
        • 暂停菜单模糊
        • 主菜单背景
        • 网路-菜单
        • 新闻和聚焦
        • 设置
          • 控制
          • 按键设置
    • 声音
      • 击杀音效
      • 大厅背景音乐
    • 杂项
      • 电缆-滑索
      • 马文机器人-胸部显示屏
      • 脉冲刀范围特效
      • 被声呐探测到的效果
      • 模型-炸蛛
      • 尼斯湖水怪模型
  • 脚本数据
    • 准星
    • 特效(FX)
    • 特效
      • 特效-铁驭
        • 特效-铁驭武器
          • 特效-突击步枪
          • 特效-冲锋枪
          • 特效-轻机枪
          • 特效-狙击步枪
          • 特效-散弹枪
          • 特效-榴弹发射器
          • 特效-副手武器和手枪
          • 特效-反泰坦武器
          • 特效-特殊武器
        • 特效-铁驭投掷物
          • 特效-电弧效果
          • 特效-飞火星
          • 特效-重力星
        • 特效-铁驭能力
      • 特效-泰坦
        • 特效-离子
        • 特效-强力
        • 特效-北极星
          • 特效-电浆轨道炮
          • 特效- Holo Railgun
          • 特效-毒蛇
        • 特效-帝王
          • 特效-Monarch Beam
        • 特效-浪人
        • 特效-烈焰
          • 特效-铝热剂发射器
          • 特效-Meteor First
          • 特效-火墙
        • 特效-军团
      • 特效-NPC和炮台
        • 特效-NPC
          • 特效-无人机
          • FX - Drone Cloak
          • FX - Drone Frag
          • FX - MRVN
          • FX - Mortar
          • FX - Holo Spectre
        • 特效-炮台
      • 特效-杂项和未知项
        • FX - Holo Map
        • FX - Beacon
        • FX - Skybox
          • FX - Skybox 1K
          • FX - Skybox Carrier
          • FX - Skybox Creature
          • FX - Skybox Nuke
          • FX - Skybox Station Traffic
        • FX - Skyway
        • FX - Dev
          • FX - Bug Repro
        • FX - Droppod
        • FX - Scan
      • 特效-原始数据
        • FX - EMP
        • FX - Env
        • FX - Grenade
        • FX - Harvester
          • FX - Coop Harvester FX
        • FX - HUD
          • FX - HUD AR FX
          • FX - HUD AR Impacts
          • FX - HUD AR Lines
          • FX - HUD AR Ordinance
          • FX - HUD AR Pings
          • FX - HUD AR Titandroppoint
        • FX - Impact
          • FX - Impact FX EXP Cutom
        • FX - Light
        • FX - Orbital Strike
        • FX - Projectile Plasma
        • FX - Reload
        • FX - Shell Eject
        • FX - Smoke
        • FX - Tracers
        • FX - Weapon
          • FX - Arc Cannon
          • FX - Dragonbreath
          • FX - Flamethrower
          • FX - Malta Gun
          • FX - Triple Threat
    • 声音
      • 声音-默认语音
      • 声音-铁驭
        • 铁驭武器
          • 突击步枪
          • 冲锋枪
          • 轻机枪
          • 狙击步枪
          • 散弹枪
          • 榴弹枪
          • 副手武器及手枪
          • 反泰坦武器
        • 铁驭投掷物
        • 铁驭能力
      • 声音-泰坦
        • 声音-离子
        • 声音-强力
        • 声音-北极星
        • 声音-帝王
        • 声音-浪人
        • 声音-烈焰
        • 声音-军团
      • 声音-无人机和NPC
        • 声音 -巨型炮塔
      • 声音-杂项和未知项
        • 声音-电弧炮
        • 声音-电弧枪
        • 声音- Flamethrower
        • 声音- Triplethreat
    • 图标和HUD
      • 菜单
        • 私房加载界面
        • 私人比赛
        • 计分板
  • 修改样例
    • 低配模式
    • 无HUD修改
  • 导出资源
    • 导出地图
    • 导出模型
    • 使用Legion的方式导出
  • 资源
    • 纹理库
Powered by GitBook
On this page
  • 为地图添加天空
  • 更改显示的天空盒
  • 天空盒光照
  • 创建自定义2D天空盒纹理
  • 使用起源引擎为金源引擎创建2D天空盒
  • 来源和参考资料

Was this helpful?

  1. 信息
  2. 纹理
  3. 基础天空盒

2D天空盒

A 2D skybox is a skybox that lacks geometrical depth, consisting only of a skybox texture (without using the sky_camera entity to display a 3D miniature model).

Previous基础天空盒Next3D天空盒

Last updated 3 years ago

Was this helpful?

A 2D skybox is a that lacks geometrical depth, consisting only of a skybox texture (without using the entity to display a 3D miniature model).

为地图添加天空

In-game, the skybox will be seen through each surface that toolsskybox is applied to.

toolsskybox Brushes do not need to be box-shaped.

Note:You should avoid making a skybox by drawing a big hollowed out cube with the Skybox texture around your map.

更改显示的天空盒

If you don't like the standard "sky_day01_01" sky, you can change it by setting the skybox name in Hammer's Map Properties dialog. With the correct map opened, follow these steps:

  1. Choose Map Properties... from the drop down list

  2. In the Object Properties window, select the Skybox Texture Name field.

  3. Replace the sky listed there with the name of the skybox you wish to display.

天空盒光照

To make sense of it all, just make sure you have only one of each of these entities in your map, and that the Pitch and Yaw <angles> are set the same for all three of them. (Pitch is equivalent to the Sun's angle of elevation from the ground, and Yaw is its compass bearing.)

创建自定义2D天空盒纹理

  1. Prepare your image files. You need six images of the same resolution:

    • <skyname>BK

    • <skyname>DN

    • <skyname>FT

    • <skyname>LF

    • <skyname>RT

    • <skyname>UP

  2. Create materials for each texture in \materials\skybox\, using the following template:

unlitgeneric
{
	$basetexture "<VTF>"
	$hdrcompressedtexture "<VTF>"
	$nofog 1
	$ignorez 1
}

It is possible to create an area of your map into a 2D Skybox to be used in Goldsource (the HL1-engine). Here's an simple example:

  1. Create a large outdoor area with some displacement maps and treelines, and fog to hide the edges. Lets call it carrotjuice .

  2. Load the map ingame and turn cheats on ( sv_cheats 1 ).

  3. Activate the noclip-mode by simply opening the console and enter "noclip" and hit Enter.

  4. Fly to the center of where you want the skybox.

  5. Open up the console and type "mat_envmaptgasize 256", hit Enter.

  6. Now type "envmap" and press Enter. Now, 6 TGA-files are now created and saved into a folder named "cubemap_screenshots" in your modfolder ( i.e. for Portal 2: Steam\SteamApps\common\Portal 2\portal2 ).

Since the mapname was carrotjuice , the name of the 6 TGA-files are as following:

carrotjuicert.tga (Right)
carrotjuiceft.tga (Front)
carrotjuicelf.tga (Left)
carrotjuicebk.tga (Back)
carrotjuiceup.tga (Up)
carrotjuicedn.tga (Down)

You can now copy or move these to your HL1-mods gfx\env-folder, to use it as skybox in a level.

来源和参考资料

Simply texture a (not a ) with the or (if you are mapping for the ) the material.

Note:In the default skybox has visible seams. This is not your fault. See the next section for how to change the default.

See also

Go to the

Skybox Lighting enters the map through every -textured , representing direct sun/moonlight and diffuse skylight. Its basic properties are controlled by three entities used in combination (four in some games):

defines the direction, color and intensity of the direct sunlight, and the color and intensity of the diffuse skylight.

defines the color, direction, and attenuation distance of the that are created by light_environment. Dynamic shadows will be buggy and unconfigurable without this entity.

places a glowing sprite in the skybox to represent the Sun's apparent position in the sky.

casts harsh, real-time shadows onto the map, usually copying settings from the light_environment. only.

These lighting settings - direction, color, brightness, etc are fairly specific to the actual image used for the 2D skybox. The article suggests some settings for official game skyboxes. The entity defines which to use. Also note that fog will look wrong if 's settings don't correspond to the particular skybox in use. Note:Pitch can be overriden for light_environment and env_sun, but not shadow_control. The Pitch override also cannot be switched off and its rotation is measured counter-clockwise from the horizontal (so straight down is -90°) whereas the <angles> Pitch's rotation is clockwise (so straight down is +90°). The workaround for this is to make sure your Pitch override merely repeats the <angles> value; for example, if your shadow_control, light_environment and env_sun <angles> are "45 -60 0", set the Pitch override to "-45".

Make sure that you enable "Clamp S" and "Clamp T" flags or you'll see seams when running with lower texture detail.

Now, in , go to Map > Map Properties > Skybox Texture Name and type in your skybox name without any side tags.

使用起源引擎为创建2D天空盒

Source:

world brush
brush entity
tools/toolsskybox
Orange box
tools/toolsskybox2d
HL2
Sky List
Map menu
toolsskybox
brush
light_environment
shadow_control
dynamic shadows
env_sun
Convert them to VTF.
Hammer
金源引擎
https://developer.valvesoftware.com/wiki/Skybox_(2D)
Sky List
worldspawn
skybox
env_fog_controller
skybox
sky_camera
env_cascade_light
<Insurgency>
<Black Mesa (Source)>
<Counter-Strike: Global Offensive>