Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Saving EXR?

    SDK Help
    0
    2
    627
    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 28/06/2018 at 16:49, xxxxxxxx wrote:

      Could you check this code? I'm not able to see any difference on saved files. Always saving at same compression.

          BaseBitmap \*multiBmp = BaseBitmap::Alloc();
      
      
          multiBmp->Init(1024,1024, 32);
      
      
        
      
      
      
          BaseContainer dataBc, optBc;
      
      
        
      
      
      
          optBc.SetInt32(0, (Int32)4); // EXR compressions
      
      
          optBc.SetBool(1, TRUE);  //  16-bit
      
      
          for(Float i=0;i<360.0;i+=0.2)
      
      
          {
      
      
              Float a = PI\*i/180.0;
      
      
              multiBmp->SetPen(i,2\*i,3\*i);
      
      
              multiBmp->Line(512,512,512+512\*cos(a), 512+512\*sin(a));
      
      
          }
      
      
          dataBc.SetContainer(0, optBc);
      
      
          multiBmp->Save("d:/test1.exr", FILTER_EXR, &dataBc, SAVEBIT_MULTILAYER);
      
      
        
      
      
      
          optBc.SetInt32(0, (Int32)6); // EXR compressions
      
      
          optBc.SetBool(1, FALSE);  //  16-bit
      
      
          dataBc.SetContainer(0, optBc);
      
      
          multiBmp->Save("d:/test2.exr", FILTER_EXR, &dataBc, SAVEBIT_MULTILAYER);
      
      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 29/06/2018 at 08:44, xxxxxxxx wrote:

        Hello Ahmet,

        I suppose you are working in R19?
        Unfortunately due to internal changes such parameters can currently not be changed.
        See this thread: [Render settings] File format Options R19
        While that's about render settings, it boils down to the same internal issue.
        I hope this situation will be fixed with one of the next versions.

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