Guides
Domain randomization: how a robotics startup taught its gripper to ignore the paint
Domain randomization explained through a robotics story: what to randomise, why it closes the sim-to-real gap, and how varied 3D assets make it work.
3 min read

Quick answer
What is domain randomization?
It is a training technique for models learned in simulation: textures, lighting, colours, camera positions and object shapes are varied randomly in every rendered scene, so the real world looks like just one more variation. Introduced for sim-to-real robot learning, it helps models trained on synthetic images work on real camera images.
Illustrative story. Brindle Arm Robotics is a fictional company and this is a made-up scenario, written to show a realistic workflow. The people, numbers and outcomes in it are invented for illustration and are not a Vi3W customer's results. The tools, steps and Vi3W features are real.
The robot that only liked grey mugs
Brindle Arm Robotics is a fictional four-person startup building a robot arm that clears restaurant tables. In simulation, the arm's vision model was perfect. In a real café it froze in front of a mug with a cartoon fox on it. The simulator only had plain grey mugs, so to the model, "mug" meant "grey".
That is the sim-to-real gap in one picture. The fix the team reached for is domain randomization.
The idea in one paragraph
Instead of making the simulator look exactly like the real world, which is hard and never perfect, you make it look like thousands of different worlds. Random textures, random lights, random camera angles, random clutter. A model trained across all of that variation learns the things that stay constant, like shape and geometry, and treats the real world as one more random draw. The approach was popularised by robotics researchers in the late 2010s, including a well-known 2017 paper by Tobin and colleagues on transferring object detectors from simulation to a real robot.
What gets randomised
- Textures and colours of every object, table and wall.
- Lighting: number of lights, colour temperature, direction, intensity.
- Camera: position, field of view, noise, blur.
- Distractors: random clutter that isn't the target.
- Shapes: different instances of the same category, so "mug" covers tall, short, handled and handle-less.

The last two are where teams run out of assets. Procedural textures are easy; hundreds of distinct mug, plate and cutlery shapes are not.
How Brindle filled the asset gap with Vi3W
- Text to 3D for shape variety. Prompts like "stoneware mug, wide base", "tall latte glass" and "chipped enamel mug" produced dozens of distinct shapes per category.
- New paint job for appearance variety. Each shape was retextured by text with patterns, glazes and prints, including deliberately silly ones like "neon zebra stripes". Absurd textures are a feature in domain randomization.
- Clean shape for physics. Meshes rebuilt at a modest face count simulated grasping faster and more stably.
- Export and randomise. Assets went into the simulator, where scripts randomised everything else per frame.
What changed
In this illustrative story, the fox mug stopped being a problem. So did the next twenty novelty mugs the café owners brought in to test it. The team also learned a habit: whenever the robot failed on something, they asked "which variation was missing from training?" rather than "what's wrong with the model?".
How much randomisation is too much?
Randomising everything can make training slower and the task harder than needed. Teams usually start broad and then narrow ranges that clearly never occur, such as upside-down lighting from the floor, while keeping texture randomisation wide. Always judge the result on real images, never on simulated ones.
Lessons you can steal
- Variety of shape matters as much as variety of colour. Budget for both.
- Weird textures are cheap and useful.
- Track which randomisation fixed which failure, so you know what to keep.
See synthetic data for object detection for the labelling side, and retexturing a 3D model for how texture variants work in Vi3W.
Fill your randomiser
Generate ten shapes of your hardest category. Open Vi3W.
Frequently asked questions
what is domain randomization
A training technique for models learned in simulation: textures, lighting, camera and object properties are varied randomly so that the real world looks like just another variation. It helps transfer from simulation to reality.
what is domain randomization in rl
In reinforcement learning it means randomising the simulator's physics and visuals, such as mass, friction, delays and textures, during training so the learned policy works on a real robot whose exact parameters are unknown.
Last reviewed

