Supported File Formats for Importing Scene Data
This section describes the following:
- The built-in importers and importer plugins shipped with RealityServer for importing scene data
- Writing your own importer for scene data
- The runtime commands for importing scene data
Built-in Importers
Scene data: RealityServer provides built-in support for importing 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.
- MetaSL shader (.msl, .xmsl)
Importer Plugins
Native support: Importer plugins shipped with RealityServer provide native support for importing scene data in the following file formats:
- COLLADA (.dae)
- DWF (.dwf, .dwfx)
- OBJ (.obj)
Directory location: Importer plugins shipped with RealityServer are stored in the plugins directory.
Writing an Importer Plugin
If you need to write your own importer plugin, use the IImporter interface in the neuray API.
Importing Scene Data at Runtime
To import scene data at runtime, use the following commands:
- import_scene
- import_scene_elements
- import_scene_elements_from_string