Made by the FurniMesh team. FurniMesh (furnimesh.com) is our own product, and we say so wherever we recommend it. Disclosure

Fixing OBJ scale, units and orientation for SketchUp

By the OBJ to SKP team (FurniMesh) · Published and updated

An OBJ that imports at the size of a coin, or the size of a building, is the second most common complaint after missing textures. The cause is the same in every tool, including FurniMesh (furnimesh.com), whose OBJ to SKP converter we make: OBJ stores numbers without units, and SketchUp's up axis differs from many exporters'.

Why OBJ files arrive at the wrong size

An OBJ vertex line is three bare numbers, such as v 0.42 0.90 0.38. The format has no standard field that says whether those numbers are millimeters, centimeters, meters or inches. Some exporters write the unit in a comment at the top of the file, and some importers read that comment, but most of the time the program opening the file has to assume a unit. When the assumption differs from the one the author used, the model is scaled by the ratio between the two.

The ratios are large. Meters read as millimeters shrink a model a thousand times. Centimeters read as inches enlarge it 2.54 times, which is harder to spot because the model still looks roughly plausible until you place it next to a door. TIG's OBJ importer for SketchUp, for example, defaults to inches when the file has no units comment, and SketchUp's STL importer defaults to millimeters.

Reading the bounding box

The fastest way to identify the unit is to look at the size of the model in file units and ask which unit makes it a sensible piece of furniture. Our OBJ checker does exactly this: it reports the bounding box and shows what that box would measure in each unit. Here is a worked example for a three-seat sofa whose file gives a bounding box of 2.10 × 0.85 × 0.95.

Worked example: one bounding box, four readings
If the file is inWidthHeightDepthPlausible sofa?
Millimeters2.1 mm0.85 mm0.95 mmNo
Centimeters2.1 cm0.85 cm0.95 cmNo
Meters2.10 m85 cm95 cmYes
Inches5.3 cm2.2 cm2.4 cmNo

Only meters gives a sofa. A file that reads 210 × 85 × 95 points to centimeters, and 2100 × 850 × 950 points to millimeters. Inches usually show up as numbers in the 15 to 100 range for furniture: a dining table of 72 × 30 × 36 is a believable table in inches and a toy in centimeters. Use real dimensions you know as anchors. Seat heights are close to 45 cm (18 inches), dining tables close to 75 cm (29 to 30 inches), and doors about 200 cm.

Fixing the size in SketchUp

If the model is already in SketchUp at the wrong size, rescale it with the Tape Measure tool. This is the method SketchUp's help describes for scaling an entire model.

  1. Select the Tape Measure tool and click both ends of an edge whose real length you know, such as the sofa's overall width.
  2. Type the real length, for example 2.1m, and press Enter.
  3. SketchUp asks whether you want to resize the model. Confirm, and the whole model scales in proportion.

To scale only the imported object, put it in a group first, open the group, and measure inside it. SketchUp then asks to resize the group or component only. For a known ratio, the Scale tool accepts a typed factor instead. A file made in inches but read as meters comes in 39.37 times too large, so you scale by 0.0254; the table lists the other common cases.

Scale factors for common unit mistakes
File was made inWas read asScale by
MetersMillimeters1000
MetersInches39.37
CentimetersMillimeters10
CentimetersInches0.3937
MillimetersMeters0.001
InchesCentimeters2.54

Fixing scale before conversion is cleaner when you can. In Blender, scale the object and apply the scale with Ctrl+A before exporting. In SketchUp's STL and 3DS importers, pick the right unit in the Options dialog. For very small models, SketchUp's 3DS help warns that it only recognizes faces larger than 0.001 square inches, so import in a larger unit and scale down inside SketchUp to avoid losing faces.

An old wooden workbench covered in hand planes, clamps and woodworking tools, with guitars hanging on the wall behind
Measuring a known part, a seat height or a tabletop, is the quickest way to confirm an import's scale. Photo: Baden de, CC BY 3.0, via Wikimedia Commons (file page).

Y-up versus Z-up

SketchUp is Z-up: the blue axis points to the sky. Many programs that write OBJ files treat Y as up instead, including most game engines and web 3D libraries, and some exporters let the user choose. A Y-up chair opened in a Z-up program lies on its back with its seat facing the viewer.

The checker gives a hint from the bounding box. For tall pieces such as chairs, wardrobes and floor lamps, the vertical dimension is the largest of Y and Z, so a box that is much taller in Y than in Z suggests a Y-up file. For a low, wide piece such as a coffee table, the box cannot tell you, and you have to look at the model.

Rotate or swap: they are different operations

There are two ways to stand a Y-up model upright, and they do not give the same result. Rotating the model 90 degrees about the red (X) axis maps the old Y to the new Z and keeps the model's handedness. Swapping the Y and Z values, which is what SketchUp's STL "Swap YZ Coordinates" option does, also stands the model up but reflects it front to back, like looking at it in a mirror.

For a symmetric dining chair the reflection is invisible. For an asymmetric piece, it matters: a corner sofa with its chaise on the left ends up with the chaise on the right, and text on a label reads backwards. The reflection can also flip face orientation, so check for reversed faces in Monochrome face style after a swap. When the piece is asymmetric, prefer a rotation. In SketchUp, select the model, take the Rotate tool, click on the red axis, and type 90.

Where to fix orientation, by route
RouteSettingEffect
Blender importForward Axis and Up Axis (for Y-up files, the manual suggests -Z forward, Y up)Converts the rotation correctly
SketchUp STL importSwap YZ CoordinatesStands the model up but mirrors it
TIG Import OBJ with MaterialsSwap Y and Z prompt after importOne-step undo if it was wrong
TransmutrAxes setting before importFixes axes, units and scale together
Any import, afterwardsRotate tool, 90 degrees about the red axisKeeps handedness

Scale and orientation on the FurniMesh route

When you convert with the FurniMesh OBJ to SKP converter (our product), the converter has to make the same unit and axis assumptions any importer makes. Check the result in SketchUp with the Tape Measure tool and fix it with the steps above if it is off. If you know the file's unit is unusual, you can also fix it in Blender first and convert the corrected file, which saves a rescale on every reuse.

The origin and the floor

Many OBJ files are modeled around the world origin, so the chair's center sits at 0,0,0 and half of it is below the floor. SketchUp's GLB importer keeps the original drawing origin by default, and its STL help suggests clearing Preserve Drawing Origin so SketchUp picks one. After import, make the object a component, then use Change Axes from the right-click menu to put the component origin at the base of a leg or the center of the footprint. That makes the piece snap to floors cleanly in a room layout.