Real-Time Ray Tracing in Unreal Engine: Setup and Best Practices

Real-Time Ray Tracing in Unreal Engine: Complete Setup & Best Practices for Automotive Visualization

Automotive visualization demands an extraordinarily high standard of visual fidelity. Capturing the complex curvature of a car’s chassis, the multi-layered depth of metallic paint, fine carbon fiber weaves, and realistic glass refractions requires advanced lighting workflows. Real-time ray tracing in Unreal Engine has transformed how artists, game developers, and automotive designers approach real-time rendering. By simulating the physical behavior of light, modern ray tracing techniques bridge the gap between traditional offline path tracers and high-framerate interactive engines.

When working with detailed CAD data or premium production assets, such as the optimized models available on 88cars3d.com, achieving photorealism depends on configuring your rendering pipeline correctly. In this technical guide, we will walk through setting up hardware ray tracing in Unreal Engine, mastering material interactions, fine-tuning Post-Process settings, optimizing performance, and leveraging advanced workflows like Lumen Hardware Ray Tracing and the Movie Render Queue for automotive projects.

—

1. Hardware Requirements & Project Configuration for Hardware Ray Tracing

Before initializing real-time ray tracing in Unreal Engine, your hardware and project settings must be configured to support DirectX Raytracing (DXR) and Hardware Ray Tracing (HWRT). Ray tracing relies heavily on specialized hardware cores—such as NVIDIA RTX RT Cores or AMD RDNA 2/3 Ray Accelerators—to compute Bounding Volume Hierarchy (BVH) traversal efficiently.

GPU Architecture & RHI Settings

To use Hardware Ray Tracing, your system must run a compatible 64-bit operating system (Windows 10/11) with a DXR-capable graphics card. To enable hardware-level ray tracing capabilities in Unreal Engine, you must first switch the project’s Render Hardware Interface (RHI) to DirectX 12.

  • Open your project and navigate to Project Settings > Platforms > Windows.
  • Set the Targeted RHI to Default RHI: DirectX 12.
  • Ensure your graphics card drivers are updated to the latest Studio or Game Ready driver to avoid API-level crashes during BVH generation.

Configuring Engine Project Settings

Once DirectX 12 is selected, you must enable ray tracing within the core rendering settings. Navigate to Project Settings > Engine > Rendering and configure the following parameters:

  1. Support Hardware Ray Tracing: Set to True. This exposes hardware acceleration to Lumen, Reflections, Shadows, and Global Illumination.
  2. Use Hardware Ray Tracing when available: Enable this checkbox so the engine automatically falls back to software tracing only if unsupported hardware is detected.
  3. Ray Traced Shadows: Enable to allow Light components (Directional, Point, Spot, Rect) to generate physically accurate ray-traced soft shadows.
  4. Support Compute Skin Cache: Set to True. This is required for ray tracing deformers, skeletal meshes (such as animated driver rigs or opening doors), and morph targets.

For official technical specifications and detailed hardware documentation, refer to the Unreal Engine Learning Hub.

Understanding Bounding Volume Hierarchy (BVH)

Ray tracing works by testing light rays against a geometric acceleration structure called the Bounding Volume Hierarchy (BVH). The engine builds a tree structure of bounding boxes around the scene geometry. When a ray is cast, it first checks collision against large bounding volumes before testing individual triangles.

For rigid objects like car bodies, the BVH is built once at level load (Static BVH). For moving parts like spinning wheels or animated steering mechanisms, the BVH must be re-built or updated per frame (Dynamic BVH). Minimizing the number of dynamic meshes with ultra-high polygon counts keeps BVH update costs within acceptable frame budgets (under 2ms per frame).

—

2. Hybrid Rendering vs. Full Hardware Ray Tracing vs. Lumen Ray Tracing

Unreal Engine provides multiple pathways for calculating lighting and reflections. Choosing between native DXR Ray Tracing features and Lumen’s combined pipeline depends on whether your output is an interactive configurator (requiring 60+ FPS) or cinematic rendering (where visual fidelity overrides frame rate constraints).

Lumen Hardware Ray Tracing vs. Standalone Ray Tracing

In modern versions of Unreal Engine, Lumen serves as the default dynamic global illumination and reflections system. Lumen operates in two distinct modes:

  • Software Ray Tracing (Mesh Distance Fields): Traces rays against low-resolution Mesh Distance Fields. Fast and hardware-agnostic, but lacks precision for complex automotive curves, mirror reflections, and intricate engine interiors.
  • Hardware Ray Tracing (HWRT): Traces rays directly against geometry triangles and BVH structures. It evaluates custom material attributes, true surface normals, and detailed geometry, making it the preferred standard for automotive visualization.

While standalone legacy DXR ray tracing (configuring individual ray-traced features in Post-Process Volumes without Lumen) is still supported, Epic Games recommends utilizing Lumen with Hardware Ray Tracing enabled for superior performance-to-quality ratios and full integration with engine features like Virtual Shadow Maps (VSMs).

Evaluating Reflections, Global Illumination, and Translucency

When visualizing complex automotive paint and curved glass surfaces, each ray tracing pass serves a unique role:

Feature Screen Space / Rasterization Lumen Hardware Ray Tracing Standalone Ray Tracing (Post Process Override)
Reflections Screen Space Reflections (SSR) leak and disappear when objects go off-screen. Accurate off-screen reflections; handles multi-bounce reflections across complex curved surfaces. Full ray-traced reflections with explicit control over max bounces and samples per pixel (SPP).
Global Illumination Static lightmaps (no dynamic daytime changes) or screen-space SSAO. Dynamic infinite-bounce indirect lighting, capturing color bleeding from environment onto car paint. Ray-traced GI (Brute Force or Final Gather); highly accurate but computationally expensive for real-time.
Translucency Simple alpha blending; suffers from sorting issues and inaccurate light attenuation. Ray-traced translucency supports accurate refraction indices, internal reflections, and absorption. Dedicated ray-traced translucency pass allowing multi-layered glass and headlight housing depth.

Choosing the Right Pipeline for Automotive Viz

If you are building an interactive 3D configurator targeted at mid-to-high-tier GPUs, implement Lumen with Hardware Ray Tracing paired with Virtual Shadow Maps. If your goal is offline linear content creation, marketing stills, or film sequences, combine Lumen HWRT with Post-Process overrides or utilize the Path Tracer for ground-truth physical rendering.

—

3. Optimizing High-Fidelity Automotive Materials for Ray Tracing

Automotive surfaces feature some of the most complex optical characteristics in 3D rendering. From multi-layer flake-infused paints to tinted double-glazed glass, setting up Physically Based Rendering (PBR) materials properly is essential for clean ray tracing evaluations.

Automotive Paint & Clear Coat Shaders

Standard PBR materials use a single Roughness/Metallic parameter set. However, vehicle bodies require multi-layer shading models. Unreal Engine features a dedicated Clear Coat Shading Model designed for this purpose.

To configure a realistic car paint shader for ray tracing:

  1. Set the Material Shading Model to Clear Coat in the Details panel.
  2. Connect your base color map (or metallic flake pattern) to the Base Color input.
  3. Connect a Clear Coat float value (typically 1.0 for factory gloss finishes).
  4. Use the Clear Coat Roughness parameter to define the smoothness of the top lacquer layer (e.g., 0.01 - 0.05), while assigning a separate roughness value to the base layer to simulate metallic flake depth.
  5. Enable Clear Coat Bottom Normal in the material settings if you need custom normals for underlying carbon fiber weaves or metal flakes beneath a smooth lacquer coat.

When ray-traced reflections evaluate a Clear Coat material, the engine calculates two distinct reflection rays: one for the smooth top clear coat layer and one for the rougher base coat underneath. This dual-layer evaluation gives models from platforms like 88cars3d.com their distinctive photorealistic depth.

Glass, Refraction, and Ray-Traced Translucency

Automotive glass—windshields, light covers, and panoramic sunroofs—requires precise Index of Refraction (IOR) and reflection behavior.

  • Set the Material Blend Mode to Translucent and Lighting Mode to Surface Translucency Volume or Forward Shading.
  • Set the Refraction Mode to Index of Refraction. Automotive glass typically uses an IOR between 1.49 (Acrylic) and 1.52 (Standard Glass).
  • In your Post-Process Volume, navigate to Ray Tracing Translucency and toggle Type to Ray Tracing. Ensure Refraction is set to Enabled to calculate internal rays bouncing within thick glass elements like headlight lenses.

Texture Resolution, Normal Maps, and Roughness Thresholds

Rays hit geometry surfaces at arbitrary angles. If your normal maps contain extreme gradients or unnormalized vectors, ray-traced reflections will break down, producing noisy artifacts or visual black spots (nan values).

  • Normal Maps: Ensure all normal maps are imported using BC5 compression (Normalmap compression setting) and derived from high-poly baking or clean CAD data.
  • Roughness Floor: Ray tracing calculations scale in performance cost as surface roughness increases (due to wider ray divergence angles). Implementing a roughness floor (e.g., clamping minimum roughness to 0.02 using a Clamp node in the Material Editor) reduces divergence noise without sacrificing visual mirror clarity.

—

4. Lighting Setup & Post-Process Volume Fine-Tuning

Ray-traced materials rely entirely on the quality of incoming light rays. A clean, physically grounded lighting setup paired with tailored Post-Process Volume variables is required to prevent noisy renders and excessive frame drop.

Directional, Rect, and HDRI Sky Lights

For realistic automotive shots, your lighting setup should consist of a mix of direct lights and high dynamic range environment maps:

  • Directional Light: Represents sunlight. Enable Use Ray Traced Distance Field Shadows or pair with Virtual Shadow Maps (VSMs). Increase the Source Angle parameter (e.g., to 1.2 - 2.5 degrees) to generate soft, physically accurate penumbra ray-traced shadows instead of sharp computer-generated shadow edges.
  • Rect Lights: Essential for studio render setups. Rect Lights produce accurate rectangular specular highlights along the sleek side contours of a car body. Enable Barn Doors on Rect Lights to control light spill without using costly light-blocking geometry.
  • Sky Light: Set to Captured Scene or load an HDRI map into an HDRI Backdrop actor. Under Sky Light settings, check Realtime Capture to ensure light contributions update when altering dynamic cloud covers or HDRI parameters.

Fine-Tuning Post-Process Settings for Ray Tracing

To control the balance between rendering performance and visual quality, place an Unbound Post Process Volume in your scene. Expand the Lumen and Ray Tracing Features categories and adjust the following key parameters:

r.Lumen.HardwareRayTracing = 1
Enables hardware-accelerated ray tracing within the Lumen architecture.

r.RayTracing.Reflections.MaxBounces = 2 to 4
Defines how many times a reflection ray can reflect off secondary and tertiary mirrors before terminating. For automotive interiors with side mirrors and chrome elements, 2 to 3 bounces are recommended. Higher values increase GPU render times linearly.

r.RayTracing.Reflections.SamplesPerPixel = 1 (Interactive) or 4 - 8 (Cinematic)
Determines the number of rays cast per pixel. Higher values reduce visual noise in rough specular reflections but drastically impact frame rates.

Managing Denoising and Temporal Stability

Ray tracing in real-time uses low sample counts per frame, relying on denoisers to smooth out ray variance. Unreal Engine incorporates built-in spatial and temporal denoisers to reconstruct clean images.

  • Ensure the reflection denoiser is active using the console command: r.Reflections.Denoiser 1.
  • Use Temporal Anti-Aliasing (TAA) or TSR (Temporal Super Resolution) in your project settings. TSR blends frame history over time, stabilizing ray-traced reflections and denoiser grain without requiring extremely high native sample counts.

—

5. Performance Optimization & BVH Management for Complex Car Models

Detailed automotive assets sourced from platforms like 88cars3d.com can feature millions of polygons across intricately modeled brake systems, engine bays, suspension rigs, and body shells. Running these high-poly assets under hardware ray tracing requires strict optimization strategies.

Integrating Nanite with Hardware Ray Tracing

Unreal Engine’s Nanite Virtualized Geometry system streamlines the handling of high-polygon assets. In modern engine versions, Nanite meshes generate low-complexity fallback representations or stream directly into the ray tracing BVH, drastically reducing memory overhead.

  • Enable Nanite on static mesh components of your car model (e.g., body panels, brake discs, rims).
  • Set the Fallback Relative Error under Static Mesh Nanite Settings to a low value (e.g., 0.005) to maintain smooth, silhouette-perfect curves in the Ray Tracing Fallback Mesh.
  • For dynamic objects like steering wheels or suspension arms that cannot use Nanite, optimize polygon density manually and set up custom Level of Detail (LOD) chains.

Profiling Hardware Ray Tracing Performance

When troubleshooting frame rate drops in a ray-traced scene, identify whether the performance bottleneck stems from BVH building, ray evaluation, or material shading. Use Unreal Engine’s built-in profiling suite:

  1. Open the console (~ key) and type stat GPU. This displays the millisecond breakdown per frame for features like Lumen Hardware RayTracing, RayTracedReflections, and ShadowDepths.
  2. Type stat RayTracing to inspect the total ray count, instance count, and memory footprint allocated to the BVH acceleration structure.
  3. Use Unreal Insights to capture detailed trace logs and analyze CPU-to-GPU sync bottlenecks during real-time rendering playback.

Distance Culling & Ray Tracing Cull Distance

Objects far away from the active camera view do not need to contribute to ray-traced reflection or shadow calculations. You can specify cull distances to exclude small details (like interior bolts or undercarriage rivets) from the BVH structure:

Use the console variables:

r.RayTracing.CullTasks 1
r.RayTracing.Geometry.CullDistance 3000 (30 meters)
This automatically removes geometry outside the specified radius from the ray tracing acceleration structure, preserving memory and speeding up BVH traversal times without affecting the camera’s direct visual rendering.

—

6. Step-by-Step Workflow: Achieving Photoreal Automotive Shots

To demonstrate these concepts in practice, let’s walk through a step-by-step production workflow for importing an asset, configuring camera systems, and rendering cinematic automotive media.

Step 1: Asset Import & Material Assignment

  1. Source a high-detail automotive model from 88cars3d.com. Models with clean material ID assignments and pre-separated geometry components make material setup far more efficient.
  2. Import the asset into Unreal Engine using the **Interchange Framework** or **Datasmith** to preserve node hierarchies and transform pivots.
  3. Apply your custom dynamic PBR materials: Clear Coat for the body exterior, Micro-Roughness Leather for interior upholstery, Brushed Aluminum for trim components, and Translucent Refractive Glass for light housings.

Step 2: Cinematics Setup with Cine Camera Actor

  1. Drop a Cine Camera Actor into your level to frame your hero automotive shot.
  2. Set the Filmback Presets to a standard cinematic format (e.g., 35mm Full Aperture or Super 35).
  3. Adjust the focal length (e.g., 85mm for sleek, distortion-free car portraits, or 24mm for dynamic dramatic low-angle perspective shots).
  4. Enable Depth of Field. Set Focus Method to Tracking Focus and attach the focus target directly to the car’s emblem or headlight housing. Set an aperture of f/2.8 to create a smooth, shallow depth-of-field blur (bokeh).

Step 3: High-Quality Offline Rendering via Movie Render Queue (MRQ)

When exporting your final sequence or still frame for portfolio display or promotional media, bypass real-time framerate limits by using the **Movie Render Queue (MRQ)**:

  1. Open **Sequencer**, add your camera cut track, and click **Render Movie Settings** to open the MRQ window.
  2. Remove the default Deferred Render setting if outputting path-traced shots, or keep it configured with custom ray tracing overrides.
  3. Add a **High Quality Media Output** setting block:
    • Set **Spatial Sample Count** to 1.
    • Set **Temporal Sample Count** to 16 or 32. This renders 16-32 sub-frame passes per frame, blending out ray tracing denoiser noise, motion blur jitter, and temporal artifacts completely.
  4. Add an **Engine Warm-Up Count**: Set Warm Up Frame Count to 64. This ensures that physical denoisers, Lumen HWRT GI caches, and dynamic light histories fully converge before the first frame is recorded to disk.

—

Summary & Next Steps

Mastering real-time ray tracing in Unreal Engine is a vital skill for modern automotive designers, visualizers, and interactive developers. By understanding hardware requirement setups, selecting the optimal combination of Lumen Hardware Ray Tracing, optimizing Clear Coat materials, and leveraging advanced rendering pipelines like the Movie Render Queue, you can produce cinematic visuals entirely in real-time.

To summarize your actionable workflow:

  • System Baseline: Ensure your project is running DirectX 12 with Hardware Ray Tracing enabled in Project Settings.
  • Material Accuracy: Use Clear Coat materials for multi-layer metallic paints and configure proper Refraction Indices (IOR) for glass.
  • Lighting Controls: Combine Directional Lights (with custom source angles) and HDRI environments to cast physically grounded ray-traced shadows and reflections.
  • Performance Optimization: Enable Nanite for ultra-detailed static meshes, configure BVH distance culling, and monitor GPU frametimes using stat GPU.
  • Cinematic Output: Utilize Cine Camera Actors paired with Movie Render Queue temporal supersampling for noise-free renders.

Equipping your project with professionally authored 3D assets from 88cars3d.com provides clean topology, pre-configured material IDs, and optimized geometry directly out of the box. Combine these high-grade assets with the advanced hardware ray tracing techniques in this guide to build photorealistic real-time automotive experiences.

Featured 3D Car Models

Leave a Reply

Your email address will not be published. Required fields are marked *