Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
void Cmaxwell::setPath(
                         const char* type,     // path type
                         const char* path,     // path name
                         byte& outputBitDepth  // Bit depth per plane
                      (
  • outputBitDepth specifies the bits depth per plane (8,16,32). This parameter is passed by reference so if the current format does not support the given depth, the SDK tries to change it automatically.
  • type must be one of the following values: "RENDER", "ALPHA", "SHADOW", "OBJECT", "MATERIAL", "MOTION", "Z", "ROUGHNESS", "FRESNEL".

Example:

Code Block
byte depth = 32;
byte ok;
ok = setPath ("RENDER", "C:\\maxwell\\house.exr", 32);  //Correct, EXR format supports 32 bbp.
ok = setPath ("RENDER", "C:\\maxwell\\house.jpg", 16);  //Incorrect, JPG does support 16 bbp so it will be changed to 8 bpp internally.

...