您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

6.7 KiB

Art Notes

Hi! Welcome to the art notes, a page that covers some of the art in Boss Room.

Baking Overview

Boss Room is set up to support baked lighting. Please feel free to use the existing setup or modify it as needed.

TL:DR

LightExplorer

The main Boss Room level is separated into three scenes (Assets > BossRoom > Scenes > BossRoom):

  • Dungeon BossRoom
  • Dungeon Entrance
  • Dungeon Transition

To bake, open the BossRoom scene. Load the pieces of the dungeon listed above into that scene, make sure you're using the baking version of all of the lights, then generate your lighting using the settings you'd like from the Boss Room Lighting Setup menu.

  • To bake all lights:

    • Go to menu Boss Room > Lighting Setup > All Baked
    • Go to lighting settings (Window > Rendering > Lighting). Use the FastBaking baking profile & hit Generate Lighting button to bake all lights

  • To use only realtime lighting (except area lights):

    • Go to menu Boss Room > Lighting Setup > All Realtime (except area lights)
    • Go to lighting settings (Window > Rendering > Lighting). Use the FastBaking baking profile & hit Generate Lighting button to lava bake area lights lights

  • In your lighting settings, use the FastBaking baking profile for a fast, but lower quality bake. Use the GoodBaking baking profile for a slow but higher quality bake

  • To clear all baked data (including baked area lights)

    • Go go lighting settings (Window > Rendering > Lighting). Click on dropdown arrow on Generate Lighting button, then select Clear Baked Data from the menu

      AutoGenerate

TL:DR+

  • Other lighting options (such as relfection probes and light probes) can be set to baked / realtime or enabled / disabled in this menu

  • Lights used for baking will be brighter than the realtime ones. This is to compensate for them becoming darker when they bake down

  • By default, area lights (used for the glow around the lava) are baked in Boss Room. Area lights can only be baked, not realtime, in Unity currently

Baked Lighting & Navigating Settings:

  • The light explorer window can be found at Window > Rendering > Light Explorer. This window can be used to see all of the lights in your scene(s), plus all of their settings

    LightExplorer

  • Each light is set to one of three modes:

    • Realtime - not baked, will contribute to realtime lighting, will not contribute to lightmaps

    • Mixed - baked and realtime, will contribute to realtime lighting, will contribute to lightmaps

    • Baked - not realtime, will not contribute to realtime, will only contribute to lightmaps

      LightMode

Lighting Settings

Lighting settings can be found at Window > Rendering > Lighting

LightingSettings

  • There are three tabs at the top for navigating your lighting options:
    • Scene: light baking options for the current scene(s)
    • Environment: settings for overall environment changes (ambient color, skybox, etc.) in your current scene(s)
    • Baked Lightmaps: where you can inspect your baked light maps if you have baked lighting for your current scene(s)

⚠ Important ⚠

  • The only baking settings that affect performance of your game are: >* Lightmap resolution >* Lightmap padding >* Max Lightmap Size >* The Compress Lightmaps checkbox >* The Directional mode > >ImportantLightingSettings
  • All other settings will only affect the quality of the bake
  • Higher values in your settings will make baking take longer >* It's recommended to start with very low values for your settings to make baking fast and lighting iteration easy. Then, when you have something you like, you can bump up these settings for a slower, but better quality bake >* For example, start with a low Lightmap Resolution, like 1, for iteration. Then, bump it up to 6 or 8 for a higher quality bake


  • You can hover over each setting and a tooltip will describe what it does

  • Directional Mode toggles to whether or not normal maps will influence your baked lighting. Changing your settings to Directional will generate a better quality bake, but is more costly. When baking, additional textures, called directional maps, will be generated for every baked lightmap texture. For example, if you have three lightmaps, you will have three directional maps.

  • In the lighting panel, there is a checkbox that allows Unity to auto-generate lighting whenever your lighting changes, a model is moved, a lighting setting is changed, etc.. This can be useful for quick lighting iteration

    AutoGenerate

  • Multiple scenes can be baked at once by loading them together (click and drag scenes into the heirarchy), and generating lighting. Overlapping geometry in your scenes scenes can cause baking artifacts though, so only bake them together if they're not overlapping

  • Meshes must be set to contribute to baked Global Illumination to receive baked lighting

    MeshSettings

  • Reflection probes can also be baked to save performance

Resources from Unity for more details: