Part 2: Light Sources
Introduction
In this section, we'll explore the various light sources available in Highrise Studio. Lighting is essential for establishing the mood, accentuating key areas, and ensuring your game looks engaging.
What Are Light Sources?
Light sources in Highrise Studio emit light that brightens your game world and affects how objects appear. They contribute to the creation of shadows, reflections, and overall ambiance, significantly enhancing the visual appeal of your game.
Try out different light sources to observe their effects on your game environment. Each type of light offers unique characteristics that can transform the appearance of your scenes.
Types of Light Sources
Here are some common light sources you can utilize in Highrise Studio:
- Directional Light: Mimics sunlight and casts parallel light rays across the scene, perfect for simulating natural light like the sun or moon.
- Point Light: Radiates light from a single point outward in all directions, ideal for simulating localized light sources such as lamps or torches.
- Spotlight: Projects light in a specific cone-shaped area, useful for spotlighting particular elements or creating focused effects.
- Area Light: Spreads light from a rectangular shape to provide broad, even lighting, similar to how a window or large screen would illuminate a room.
Accessing Light Sources
To add light sources to your scene:
- Open the Light Sources Menu:
- Right-click in the Hierarchy window.
- Choose
Light
to explore different lighting options.
- Select a Light Type:
- Pick the type of light you want to add.
- Customize its settings to tailor the lighting effect to your needs.
Be cautious with the number of light sources used, as too many can affect game performance. Use a mix of light types and settings to get your desired effect without compromising on performance.
Adjusting Light Properties
You can tweak various properties for each light source to achieve specific effects:
- Intensity: Adjusts how bright the light is.
- Color: Changes the color of the light emitted.
- Range: Determines the reach of the light in your scene.
- Shadows: Sets whether the light casts shadows, with options for:
- No Shadows: Disables shadow casting.
- Soft Shadows: Creates gentler, more realistic shadows.
- Hard Shadows: Results in sharp, well-defined shadows.
Small changes in light settings can have a big impact on the atmosphere and look of your game. Experiment with various property combinations to see what works best for your scene.
Light Modes
In Highrise Studio, all lights should be set to Baked mode, meaning they are pre-calculated and stored in a lightmap for static lighting effects. We will discuss more about light baking in upcoming lectures.
Always ensure your light sources are set to Baked mode.
Directional Light
What is a Directional Light?
A directional light serves as the main light source, akin to sunlight, casting uniform light across your scene and creating shadows that enhance the three-dimensional feel.
Adjusting the Directional Light
To tweak the directional light:
- Select the directional light in the Light Sources window.
- Modify its direction, intensity, and color to fit your scene’s requirements.
The angle and orientation of the directional light are crucial for how light and shadows appear in your game. Adjust these to change how light interacts with the environment.
Point Light
What is a Point Light?
A point light emits light from a single point outward in all directions, perfect for simulating small, localized light sources like lamps.
Adjusting the Point Light
To customize the point light:
- Select it from the Light Sources window.
- Change its intensity, color, and range to achieve the lighting effect you want.
The range setting is important as it affects how far the light travels. Experiment with this to get the right amount of light where you need it.
Spotlight
What is a Spotlight?
A spotlight emits light in a cone shape, allowing you to focus light on specific areas, making it ideal for dramatic effects or highlighting focal points.
Adjusting the Spotlight
To adjust the spotlight:
- Pick the spotlight from the Light Sources window.
- Fine-tune the angle, intensity, and color to craft the desired effect.
Play around with the spotlight’s settings to control how narrow or broad the light beam is, which can help you direct player attention or create visual interest in certain areas.
Conclusion
Getting to know the different types of light sources and how to manipulate them is key to enhancing the visual quality of your game. Experiment with the various types, properties, and settings to find the perfect lighting for your game environment. Continue to Part 3: Shadows to learn more about integrating shadows into your game world.