Introducing RealityServer

Supported Image File Formats

This section describes the following:

  • The image file formats for which built-in support is provided
  • Writing your own image format plugins
  • The runtime commands for retrieving information about image files

Built-in Support

RealityServer has built-in support for the following image file formats. These image file formats are supported for import, export and streaming operations.

ct
The CT format is mental imageses' own lossless image format. It supports Rgba, Rgbe, Rgba_16 and Rgba_fp pixel types.
dds
The DDS (DirectDraw Surface) image format was established by Microsoft. neuray supports Rgb, Rgba, Rgbe, Rgba_16 and Rgba_fp pixel types with the DDS plugin.
exr
The OpenEXR image format is a high dynamic-range image file format and was developed by Industrial Light & Magic. Rgb, Rgba, Rgba_16 and Rgba_fp pixel types are supported with OpenEXR.
hdr
The HDR (high dynamic range) image format is based on the original Radiance picture format and uses simple run-length encoding for compression. Only the Rgbe pixel type is supported with HDR.
jpg
The JPEG format provides fast, lossy compression and small image sizes. It supports the Rgb pixel type, only. The level of compression can be controlled through the quality parameter.
mig
The MIG format is a migenius designed format that supports all Iray pixel types. It is an uncompressed format designed primarily to allow ouput of different render content than Color data.
pic
The PIC (or PICtor) format was developed by John Bridges for PCPaint, the first Paintbrush program for the PC. It provides slower and larger images at the benefit of a lossless compression. There is no support for writing PIC images in neuray, yet. neuray can read PIC images using Rgb or Rgba.
png
The PNG format provides slower and larger images at the benefit of a lossless compression. It supports the following pixel types: Rgb and Rgba. It ignores the quality parameter since it is lossless.

Writing Image Format Plugins

If you need to write your own image format plugin, use the IImage_plugin API.

Retrieving Information about Image Files

To retrieve information about image file at runtime, use the following commands:

  • image_get_filename
  • image_get_levels
  • image_get_resolution
  • image_get_type
  • image_reset_file
  • texture_get_image
  • texture_set_image

To get and retrieve images for textures at runtime, use the following commands:

  • texture_get_image
  • texture_set_image

Further details