Introducing RealityServer

Supported File Formats for Exporting Scene Data

This section describes the following:

  • The built-in exporters and exporter plugins shipped with RealityServer for exporting scene data
  • Writing your own exporter for scene data
  • The runtime commands for exporting scene data

Built-in Exporters

Scene data: RealityServer provides built-in support for exporting scene data in the following file formats:

  • mental images (.mi)
  • mental images binary (.mib)
    Note: This binary storage format is optimized for fast reading and needs less disk space than a typical .mi file. Any supported import file type can be exported to the .mib file format.

Assimp Exporter Plugin

The Assimp exporter plugin provides support for a larger number of additional file formats. Some included formats are:

  • COLLADA (.dae)
  • glTF (.glTF)
  • Wavefront OBJ (.obj)
  • Stereolithography (.stl)

This list is not exhaustive and may change as new versions of Assimp are used. Assimp supports over 10 file formats for exporting, please refer to http://assimp.org/ for an up to date list.

Different formats may export differently in terms of support for materials, lights, geometry and other features. The best fidelity is still obtained by directly using the .mi file format. Do not assume that all features of the chosen file format will convert directly from RealityServer.

Writing an Exporter Plugin

If you need to write your own exporter plugin, use the IExporter interface in the neuray API.

Exporting Scene Data at Runtime

To export scene data at runtime, use the export_scene_elements command.