Unreal 4 – Cavern Demo


Building an interior cave environment from scratch in Unreal Engine 4: mesh assembly, interior lighting without natural light, and atmospheric fog for depth.


This project is one of the earliest in this series — a basic cavern environment built from scratch in Unreal Engine 4, developed following this Spanish-language Udemy course. It’s a foundational environment exercise: no gameplay, no AI, no complex materials — just the challenge of building a convincing underground space using Unreal’s mesh placement tools, manual lighting, and atmospheric fog.

You can watch the demo here: YouTube


Interior Environment Construction

The cavern is assembled from static mesh pieces — cave wall sections, ceiling pieces, floor geometry, stalactites, stalagmites — placed and combined in the level editor to form a continuous underground space. This kind of modular mesh assembly is the fundamental level building technique in Unreal: rather than modeling a single piece of custom geometry for the entire cave, prefabricated mesh pieces are arranged and overlapped to suggest a continuous organic surface.

The challenge with cave environments is producing the sense of irregular, natural geometry from prefabricated pieces that have predictable shapes. The solution is variation: rotating and scaling individual pieces, overlapping them in non-uniform ways, and avoiding visible repetition patterns. Two identical stalactite meshes placed at different rotations and scales read as different natural formations; the same two meshes placed identically reveal themselves as copies.


Interior Lighting: No Natural Light

Interior environments are significantly harder to light than exterior ones because there’s no sun — no dominant directional source to establish the scene’s primary illumination. Every light source is artificial and local, which means the designer controls not just the quality of light but its presence. Unlit areas are genuinely dark; the contrast between light and shadow is entirely up to the lighting setup.

For a cavern, the lighting vocabulary draws from natural cave formations: bioluminescent patches that glow with soft blue-green light, mineral deposits that catch torch or lantern light and scatter it, water surfaces that reflect whatever light reaches them. Point lights positioned at the primary light sources — torches, glowing crystals, a campfire — with a low ambient SkyLight or a carefully tuned Atmospheric Fog providing the fill in unlit areas.

The key technical consideration for interior lighting in UE4 is the baked vs. dynamic choice. Baked lighting (Lightmass) produces high-quality indirect bounce and soft shadows but is static — lights can’t move or flicker at runtime. Dynamic lighting (fully movable lights) supports animation and interaction but lacks the soft indirect bounce of baked GI. For a non-interactive demo, baked lighting with well-tuned lightmap resolution is the correct choice; it produces the most visually accurate result.


Atmospheric Fog for Depth

The Atmospheric Fog component (UE4’s predecessor to UE5’s Exponential Height Fog) adds a volumetric fog layer to the interior that produces two important visual effects: depth cue and atmosphere. In a cave, fog serves a different purpose than in an exterior scene — it’s not atmospheric haze from the sky, it’s ground-level mist, dust in the air, or the density of an enclosed underground space.

Fog in a cave limits how far the player can see into the space, which is both realistic (actual caves have limited visibility due to particulate matter and humidity) and useful for environment design (the designer can hide the extent of the cave geometry behind the fog, preventing the player from seeing where the mesh seams are or where the cave ends).

The fog density and start distance are the primary tuning parameters: denser fog creates a more claustrophobic atmosphere and hides geometry more effectively; lighter fog opens up the space and lets distant features read more clearly. The fog color contributes to the scene’s overall color mood — a cool blue-grey fog reads as cold and damp; a warm amber-tinted fog reads as torch-lit and enclosed.


Reflection

The cavern demo is the simplest environment project in this series — deliberately so, because it sits at the beginning of the learning arc when the tools were new and the goal was understanding the basics. The same lighting principles applied here — interior sources only, contrast between lit and unlit areas, atmospheric fill to soften the darkness — appear in much more sophisticated form in the Night Scene project, the Survival Horror project, and the Lighting study.

What this early project establishes is the intuition for reading a space through its lighting: where does the eye go first, what does darkness communicate, how does fog change the perceived scale of an environment. These are perceptual questions as much as technical ones, and they’re the same questions that experienced environment artists ask regardless of which tool they’re using. Starting with a simple cave and no natural light is an effective way to make those questions unavoidable.

Leave a comment

Create a website or blog at WordPress.com

Up ↑