Lucas next to a TV showing the virtual factory, inside the real factory, with yellow stairs behind him

Virtual factory: Touring the plant before it opens

A new factory rebuilt in VR before its opening, running on Meta Quest with no computer. Later, the same environment was used for training.

Year
2024
Client
Building materials manufacturer
My role
Technical direction and project management
Engine
Unreal Engine 4.27
Platforms
Meta Quest 2 and Quest 3 (standalone)

Problem

In 2023, a building materials manufacturer was finishing a new factory and wanted to show it at the opening. Later, the same environment would be used to train the team. The request was the whole factory running on a Meta Quest, with no computer and at 72 frames per second.

The hard part is that the factory is open: few walls, a lot of grating and open platforms. Almost everything is visible from almost everywhere.

Challenges and solutions

  1. Blender window with the 3D model of a metal platform with stairs and guardrails
    One of the platforms being modeled.

    From the factory models to Unreal

    Challenge
    The client wanted the whole factory, with equipment, piping, platforms and stairs, ready for the opening.
    What we tried
    We brought the factory models into Unreal Engine 4.27 through Datasmith and rebuilt it area by area, already thinking about what the Quest can handle.
    What we kept
    Optimization started at the modeling stage: repeated parts became instances and the factory was split into areas.
  2. Metal platforms with yellow guardrails and white equipment, in the 3D model of the factory
    Platforms and guardrails: almost nothing hides what is behind.

    An open factory on a phone processor

    Challenge
    Gratings and open platforms hide nothing, so Unreal's default occlusion culling ended up drawing the whole factory.
    What we tried
    We hand-tuned the cull distance of each area, loaded the areas with level streaming and baked the lighting. The gratings became a masked material over a few triangles.
    What we kept
    The whole factory runs on the headset in multiplayer: several people visit the same environment at the same time.
  3. Virtual warehouse with textures and lighting, a yellow forklift and a sign that reads "Warning: forklift traffic" in Portuguese
    The factory with textures, lighting and signage.

    Approve it stage by stage

    Challenge
    In a factory this size, a mistake found only at the end would cost months.
    What we tried
    I split the project into stages, each approved with the client before the next: modeling, texturing, programming and animation.
    What we kept
    In March 2024 we presented the virtual factory in headsets, inside the real one. The client compared the two and found the virtual version very close to the real thing.
  4. Lab measuring cylinder with gray slurry up to the 2000 ml mark, modeled for the training
    Clipboard with the note "Slurry level: 400 ml" in Portuguese
    The measuring cylinder and the clipboard from the settling test.

    From a tour to training

    Challenge
    After the opening, the same environment had to teach the factory procedures.
    What we tried
    We went back to the factory three weeks later and mapped the training with the engineering team, starting from their work instructions. Each script plans where the trainee can go wrong.
    What we kept
    The first ones were the lab settling test and the cleaning of the industrial sieves, with PPE, acid and a gantry with a chain.
  5. Circular menu with sound, connection, help and next buttons, on the floor of the virtual factory
    The training menu stays attached to the controller.

    What headset use asked for

    Challenge
    Inside the virtual factory, machine noise got in the way of the explanation, and not every operator holds the controller in the same hand.
    What we tried
    In the tutorial, the operator picks their dominant hand before going in. We standardized the controls across the training modules.
    What we kept
    A menu attached to the controller: mute the factory, ask for help or skip to the next step.

Result

In March 2024, I went to the opening with Diego, from Aeon, and we presented the virtual factory in headsets, inside the real one. Then came the training: we delivered five Quests to the headquarters and the plant, and the first modules were presented to the board in April.

The client did not release videos or the use of its brand. The images show the model under construction, in 2023, and the training modules.

Project team

How it was built

Hardware

  • Meta Quest 2
  • Meta Quest 3

Software

  • Unreal Engine 4
  • Blender
  • 3ds Max
  • Substance 3D Painter
  • Figma

Technical details

In closed environments, walls hide much of the scene and occlusion culling solves almost everything. Here, tuning the cull distance per area removed from the scene what was too far away to matter.

The project uses forward shading, Mobile Multi-View, Vulkan with ASTC textures and dynamic fixed foveated rendering. Lighting comes from lightmaps, with about 110 static spot lights, because dynamic lighting is expensive on Quest. Multiplayer runs on Epic Online Services.

What I learned

What I learned most here was how to optimize an open environment for VR on a phone processor. On Quest, Unreal does not have all the optimization tools of the PC version. We had to decide when to use a transparent material and when to model, and to use hierarchical instances (HISM), level streaming, cull distance tuned per area, optimized materials and lighter animations, all in a multi-user environment.

Splitting the factory into areas also helped later. Each training module can have more detail in its own area and less in the rest, and several people can work on different areas of the same project at the same time.