Skip to content

Wavefront OBJ

Wavefront OBJ is an open data format for 3D graphics. It does not contain any attributes or semantics, only the 3D geometry of the building models. This format is primarily suitable for importing the 3D BAG geometries into 3D graphics applications or 3D CAD applicatons (this might require additional format conversion).

The OBJ files for the 3D BAG contain the 3D geometries only and each 3D layer is stored in a separate file. The three OBJ files are compressed into a single ZIP file per tile. The object coordinates are in the Amersfoort / RD New + NAP height coordinate reference system.

Blender

A portion of the 3D BAG data opened in Blender.

OBJ files can be directly opened in Blender. Besides, there is also a plugin for importing CityJSON files into Blender.

The objects in the files are a real-world coordinate system. Therefore they have very large coordinates. When the file is imported into Blender, they are not centered around the origin (0, 0, 0) which causes the surfaces to flicker. Therefore, it is recommended to move the objects to the origin.

When importing the OBJ file, choose the option Z Up, so that the objects are correctly oriented. If you turn off the Split by Object, then all objects (the buildings) are imported as a single Blender object, which makes it easier to move the whole file content. After the import, you can focus the camera to the objects by selecting Scene Collection on the right of the screen, then pressing . on the numpad (the regular . on the keyboard does not work).

Then select the object (or all individual objects if split them on import) and press Tab to open the Edit Mode. Then click on the small arrow that is marked in the screenshot above.

Then change the X and Y values to 0. Press . on the numpad again to re-focus the camera on the model.