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

    LoadDocument fails for documents with materials

    SDK Help
    0
    3
    381
    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 23/09/2016 at 05:40, xxxxxxxx wrote:

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

      ---------
      I'm using Prime R18.020 and Melange 16.012, but if I try to LoadDocument() a super basic file with a cube and a material it fails with the following callstack:

      Capture.exe!melange::_GeDebugBreak(int,char const * ) Unknown
      Capture.exe!melange::HyperFile::SetError(enum melange::FILEERROR) Unknown
      Capture.exe!melange::BaseMaterial::HandleSubChunk(class melange::HyperFile *,int,int) Unknown
      Capture.exe!melange::Material::HandleSubChunk(class melange::HyperFile *,int,int) Unknown
      Capture.exe!melange::PrivateChunk::ReadChunk(class melange::HyperFile *,bool,bool) Unknown
      Capture.exe!melange::RootMaterial::HandleSubChunk(class melange::HyperFile *,int,int) Unknown
      Capture.exe!melange::PrivateChunk::ReadChunk(class melange::HyperFile *,bool,bool) Unknown
      Capture.exe!melange::RootList2D::HandleSubChunk(class melange::HyperFile *,int,int) Unknown
      Capture.exe!melange::RootMaterial::HandleSubChunk(class melange::HyperFile *,int,int) Unknown
      Capture.exe!melange::PrivateChunk::ReadChunk(class melange::HyperFile *,bool,bool) Unknown
      Capture.exe!melange::BaseDocument::HandleSubChunk(class melange::HyperFile *,int,int) Unknown
      Capture.exe!melange::PrivateChunk::ReadChunk(class melange::HyperFile *,bool,bool) Unknown
      Capture.exe!melange::PrivateChunk::ReadObject(class melange::HyperFile *,bool) Unknown
      Capture.exe!melange::LoadDocument(class melange::Filename const &,enum melange::SCENEFILTER) Unknown
      > Capture.exe!Interoperability::Cinema4D::Cinema4DImporterImpl::LoadProject() Line 67 C++

      I can't attach the c4d file here, but I have literally just added a cube, created a material and applied that and then used Save Project for Melange.

      Is there any way to access any kind of error codes from the failed load? Is there a bug or shortcoming in Melange here or am I doing something wrong?

      Regards,
      Lars Wernlund

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

        On 26/09/2016 at 06:08, xxxxxxxx wrote:

        Hi Lars,

        welcome to the Plugin Café forums 🙂

        I'm afraid we need more details here. We tried to reproduce this with Prime as well as Studio version of R18 SP1 (18.020) and the latest Melange release (16.012). Unfortunately we have not been able to reproduce the issue. Can you send us the scene (simply per mail to [email protected]) or even post some code so we can see, what you are doing exactly?

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

          On 29/09/2016 at 01:38, xxxxxxxx wrote:

          Hi,

          Thank you for taking a look at it. I decided to build a blank reproduction project to find the problem and discovered that it is connected to the fact that I link libjpeg-turbo rather than libjpeg. I am mailing you a VS 2013 package hoping that you could take a look at whether it's something that could be addressed.

          Regards,
          Lars Wernlund

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