Poom Poom Shop Pass · 29.99€/mo

Mapping

Day and night lighting in MLOs: emissives, lights and timecycles

NXBy Team NolX
· 4 min read

Richman Cinema Mansion

Most interiors look fine in screenshots because screenshots are taken at 2 p.m. with clear weather. The real test is a player walking into the living room at night, in the rain, with the interior lights on. That is where you see whether the lighting was designed or just added.

Here is how we approach it, and what we wish we had known earlier.

Three tools, three jobs

Lighting an MLO comes down to three things working together:

  1. Real lights. Point and spot lights placed in the model. They actually light surfaces and characters.
  2. Emissive materials. Surfaces that glow: lamp shades, screens, signs, LED strips. They look bright but do not light anything around them.
  3. Timecycle modifiers. Per-room settings that change exposure, colour grading, ambient light and how much the outside world bleeds in.

Beginners usually lean on one of these and ignore the rest. A room with only emissives looks like stickers. A room with only lights looks flat. A room with no timecycle looks like the exterior weather has wandered indoors.

Real lights

We place lights where light would really come from. Ceiling fixtures, lamps, under-cabinet strips in a kitchen, the glow from a fridge if it is open in a set. Then we add fill lights, which are softer, lower-intensity lights that stop corners from going pure black. Players should never need a flashlight inside a normal home.

Things to watch:

  • Falloff. A light with a huge falloff range lights the whole room evenly and kills any sense of depth. Keep ranges tight and use more lights instead.
  • Colour temperature. Warm for homes, cooler for garages and workshops, harsh and greenish for a basement lab. In the Sandy Shores trailers, the underground sets use deliberately ugly light because a meth lab should not feel cosy.
  • Shadows. Shadow-casting lights are expensive. Use them for the main light in a room and let fill lights skip shadows.
  • Time flags. Lights can be limited to certain hours. Exterior porch lights should not burn at noon.

Emissives

Emissive shaders are what sell a room at night. A lamp shade that glows, a TV screen, an arcade cabinet. In the Grapeseed Arcade, the cabinets and signs are doing a lot of the atmosphere work, with real lights filling the space around them.

Some emissive shaders only turn on at night. That is useful for windows and neon signs, but test it: an emissive that switches on at 8 p.m. while the matching real light stays off looks broken.

The common mistake is cranking emissive intensity until it blooms. It looks great in one screenshot and terrible when you stand next to it. Keep it believable, then let the real lights do the heavy work.

Timecycle modifiers per room

Each room in an MLO can reference a timecycle modifier. This is the step that makes an interior feel like an interior. It controls things like exposure and how much exterior light the room receives.

We use different modifiers depending on the room:

  • A living room with big windows gets a modifier that keeps daylight bright and natural.
  • A home cinema, like the one in the Richman Cinema Mansion, gets a darker modifier so the screen reads properly.
  • Basements and bunkers get a modifier that cuts exterior light almost completely.

Wrong modifiers give you the classic symptom: the basement brightens at noon because the game still thinks sunlight is pouring in.

Portals affect light too

Portals do more than control rendering. They are also how the outside light reaches a room. If a window has no portal, the room will feel sealed. If a portal is bigger than its opening, light comes through walls. We spend more time on this than on almost anything else.

How we test

Every interior gets checked at the same times:

  • 08:00 morning light
  • 13:00 hard midday sun
  • 19:30 sunset, which is where most bugs show up
  • 23:00 full night
  • 03:00 with rain or fog

At each time we walk every room, and we look out from inside and in from outside. Windows that glow at night from the street are part of the build, because players see the house from the road far more often than they see it from inside.

Entity sets and lighting

Lighting moods can be entity sets too. Party lights in the pool house, a darker mood for a hideout, work lights in a garage. Switching them uses the same natives as any set:

local interior = GetInteriorAtCoords(x, y, z)
DeactivateInteriorEntitySet(interior, "lights_day")
ActivateInteriorEntitySet(interior, "lights_party")
RefreshInterior(interior)

Keep in mind that props with lights attached carry their light with them, so swapping a furniture set can change the lighting of a room.

The short version

Light where light would really be. Use emissives for glow, not for illumination. Give every room a timecycle that matches what it is. Then test at sunset, because sunset finds every mistake you made.

Keep reading

More from the Journal