Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    EXR/HDR files and COLORMODE

    SDK Help
    0
    2
    214
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 21/03/2013 at 03:47, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   14 
      Platform:      
      Language(s) :     C++  ;

      ---------
      I am loading an ARGB floating point EXR (or HDR) file into a multipass bitmap.

      When I query the color-mode with GetParmeter(MPBTYPE_COLORMODE) it returns COLORMODE_RGBf. I was rather expecting it to return COLORMODE_ARGBf though as this is the format of the file.

      Is the EXR/HDR importer pre-multiplying the alpha channels on loading or something similar?

      -Simon

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 08/04/2013 at 04:17, xxxxxxxx wrote:

        Hi Simon,

        Usually Alpha channels are stored separately.
        To get the Alpha information from the multipass bitmap you can query the alpha layers with GetAlphaLayerCount()/GetAlphaLayerNum()/GetLayers().

        Sorry for the late reply.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post