How long does it take for engine to rebuild lights?

Mastering UE4 Lighting Units

21/07/2004

Rating: 4.86 (5378 votes)

Unreal Engine 4 (UE4) empowers developers to create incredibly lifelike visual experiences, and at the heart of this realism lies its sophisticated lighting system. Unlike older, more artistic approaches, UE4 embraces physically based lighting units. This means that lights in UE4 are defined using real-world, measurable values, allowing you to input known quantities to achieve truly accurate and believable illumination. This guide will delve into the intricacies of these units, explaining how they function and how you can leverage them to elevate your projects from good to absolutely stunning.

What is Unreal engine troubleshooting?
In the Unreal Engine, it means digging in to our robust lighting, reflection and post process settings. This Troubleshooting guide attempts to cover some of the more common problems that people come across when they first dig into the lighting and rendering systems.
Table

Understanding the Importance of Physically Based Rendering (PBR)

Before we dive into the specifics of lighting units, it's crucial to understand the underlying principle: Physically Based Rendering (PBR). PBR is a rendering methodology that aims to simulate the behaviour of light in the real world as accurately as possible. Instead of relying on artist intuition or arbitrary values, PBR uses physical properties of materials and light sources to dictate how they interact. This leads to more consistent and realistic results across a wide range of lighting conditions and viewing angles. In UE4, PBR is the default rendering pipeline, and understanding its principles is key to mastering its lighting tools.

Key Physically Based Lighting Units in UE4

UE4 utilises several key units to define light properties. These units are designed to mirror real-world measurements, making it easier for artists and designers to translate physical concepts into the digital realm. Let's explore the most significant ones:

Luminosity (Lumens)

Luminosity, measured in Lumens (lm), is the total amount of visible light emitted by a light source. Think of it as the raw brightness output of a bulb. In UE4, when you set the intensity of a light source, you are essentially defining its luminous flux in lumens. A higher lumen value will result in a brighter light. For instance, a standard 60-watt incandescent bulb might emit around 800 lumens, while a more powerful spotlight could emit thousands.

It's important to note that Lumens are a measure of the total light output. The perceived brightness of a light in your scene will also depend on factors like distance, the light's cone angle (for spotlights), and the presence of other light sources or reflections.

Illuminance (Lux)

Illuminance, measured in Lux (lx), is the amount of light that falls on a surface. One lux is equal to one lumen per square metre. While lumens describe the total light emitted, lux describes how much of that light actually reaches a specific area. This is a crucial distinction for achieving realistic lighting, as the illuminance on a surface decreases with distance from the light source and the angle at which the light hits the surface.

In UE4, while you primarily set the light's intensity in lumens, understanding lux helps in conceptualising how that light will affect your scene. For example, a well-lit office environment might aim for an average illuminance of 500 lux on work surfaces. You can use this knowledge to calibrate your UE4 light intensities to match real-world scenarios.

Candela (cd)

Candela, measured in Candelas (cd), is a unit of luminous intensity. It measures the light output in a specific direction. A point source emitting one lumen uniformly in all directions would have a luminous intensity of 1/(4π) candela. For directional lights like spotlights, candela is particularly important as it defines the brightness within the beam's cone.

When working with spotlights or directional lights in UE4, you'll often be setting their intensity in candelas. This allows you to control the perceived brightness of the light beam itself, rather than just its total output. A higher candela value means a more intense beam of light.

How do I undo a build-lighting option?
How can you actually undo a Build-Lighting option? 😮 Hi, try going to world settings->Lightmass->Lightmaps under them there is a checkbox “Force no precomputed lighting”. Then, as the notifications says, Rebuild. Hope this is what you are searching for. The lightmaps still show up in the engine but they are not displayed…

Colour Temperature (Kelvin)

Colour temperature, measured in Kelvin (K), describes the colour of light emitted by a source. This is not a measure of heat, but rather the colour appearance of light that would be produced by a black body radiator at that temperature. Lower Kelvin values (e.g., 1000K-3000K) produce warmer, more reddish light, like that of a candle or incandescent bulb. Higher Kelvin values (e.g., 5000K-6500K and above) produce cooler, more bluish light, similar to daylight.

UE4 allows you to set the colour temperature of your lights using Kelvin values. This is a powerful tool for achieving realistic lighting environments. For instance, a sunset might be represented with warm colours around 2000K, while midday sun would be closer to 5500K.

Applying Physically Based Units in UE4

Now that we understand the core units, let's look at how to apply them within the Unreal Engine editor.

Point Lights, Spotlights, and Rect Lights

When you add a Point Light, Spot Light, or Rect Light to your scene in UE4, you'll find an 'Intensity' property in the Details panel. This intensity is typically set in Lumens for Point and Rect lights, and Candelas for Spotlights. You can directly input the desired lumen or candela values here.

For colour, you can either pick a colour directly or use the 'Temperature' property to set the light's colour based on Kelvin values. This provides a more physically accurate way to define light colour.

Directional Lights

Directional Lights simulate distant light sources like the sun or moon. Their intensity is also typically set in Lumens, but it represents the illuminance (Lux) at a specific distance, often considered to be a standard reference point like 1000 units away. This can be a bit more abstract, but it allows for control over the overall brightness of the directional light source impacting the entire scene.

The colour of Directional Lights can also be controlled via colour pickers or temperature settings.

Practical Examples and Tips

To illustrate the practical application of these units, consider these scenarios:

Simulating Indoor Lighting

For a typical indoor scene, you might use Point Lights or Rect Lights to simulate ceiling lights or lamps. A standard LED bulb might emit around 800-1000 lumens. You can place these lights and adjust their intensity accordingly. For warmer tones, set the colour temperature to around 2700K-3000K. For cooler, more modern office lighting, try 4000K-5000K.

How do I rebuild my project & level?

Recreating Sunlight

To simulate sunlight, you would use a Directional Light. Sunlight is incredibly bright and relatively neutral in colour. You might set the intensity to a high value, perhaps equivalent to tens of thousands of lumens if you were thinking about its total output, but more practically, you'd adjust it until the scene looks correctly illuminated. The colour temperature of direct sunlight is typically around 5500K-6500K. You can also add a subtle atmospheric scattering effect to mimic the colour shift of sunlight at different times of the day.

Using Real-World Data

One of the biggest advantages of physically based lighting is the ability to use real-world measurements. If you have information about the actual lumens or candelas of a specific light fixture you are trying to replicate, you can input those values directly into UE4. This can be incredibly useful for architectural visualisations or recreating existing environments.

Comparison Table: Key Lighting Units

UnitSymbolDescriptionUE4 Application
LumenlmTotal visible light output from a source.Intensity for Point Lights, Rect Lights.
LuxlxAmount of light falling on a surface (lumens per square metre).Conceptual; affects perceived brightness based on distance and angle.
CandelacdLuminous intensity in a specific direction.Intensity for Spotlights.
KelvinKColour of light emitted by a source.Colour Temperature for all light types.

Frequently Asked Questions

Q: How do I make my lights brighter in UE4?

A: Increase the 'Intensity' value of your light source. For Point and Rect lights, this is in Lumens. For Spotlights, it's in Candelas. You can also adjust the colour temperature towards warmer tones for a visually brighter appearance, though this is subjective.

Q: What is the best intensity value for sunlight?

A: There isn't a single 'best' value as it depends on your scene's scale and artistic intent. However, a good starting point for a Directional Light simulating the sun is an intensity of around 100,000 to 200,000 lumens, with a colour temperature of 5500K-6500K. You will likely need to adjust this based on your scene's exposure settings.

Q: Can I disable all screen messages in UE4?

A: Yes, you can disable screen messages. In the editor, you can typically find options related to 'Show' or 'Debug' settings where you can toggle various on-screen notifications. For runtime, this would require custom code or console commands.

Q: How do I achieve realistic shadows with physically based lighting?

A: Physically based lighting naturally works with UE4's shadow casting system. Ensure your light sources have appropriate intensity and colour, and that your materials have correct PBR properties (Base Color, Metallic, Roughness, Specular). The quality of shadows is also heavily influenced by the 'Shadow Quality' settings in your project's Post Process Volume or Scalability Settings.

Conclusion

Mastering physically based lighting units in Unreal Engine 4 is a fundamental step towards creating truly immersive and realistic visual experiences. By understanding and correctly applying units like Lumens, Lux, Candelas, and Kelvin, you gain precise control over your lighting, enabling you to simulate real-world illumination with remarkable accuracy. Embrace these principles, experiment with the values, and watch your scenes come to life with unparalleled visual fidelity. The power to create breathtaking lighting is now at your fingertips.

If you want to read more articles similar to Mastering UE4 Lighting Units, you can visit the Automotive category.

Go up