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
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Wrong Vector/Matrix values in XCode

    SDK Help
    0
    4
    607
    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 02/04/2018 at 12:10, xxxxxxxx wrote:

      Hi Ricardo.

      I'm with XCode 9 and on Sierra 10.12.6

      I just noticed it only happens on an external build target, compiled using makefiles.

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

        On 03/04/2018 at 07:05, xxxxxxxx wrote:

        Hi rsodre, thanks for following up.

        Could you please confirm that it does NOT happen with the traditional building tool chain? It's pretty likely that your makefile isn't doing any pre-compile steps to extend and enable the debugging of Cinema types in Xcode.

        Best, Riccardo

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

          On 03/04/2018 at 11:26, xxxxxxxx wrote:

          Hi Ricardo.

          Ok, I did a proper test with both projects. A new clean one, based on the R19 sdk example, and the other that I compile with a makefile.

          Both produced the exact same result: values are fine for Vector64, but zeroes for Vector32.

          Code:

          Vector32 v32(1,2,3);
          Vector64 v64(4,5,6);
          Matrix32 m32( Vector32(1,2,3), Vector32(11,22,33), Vector32(111,222,333), Vector32(1131,2232,3333) );
          Matrix64 m64( Vector64(10,20,30), Vector64(110,220,330), Vector64(1110,2220,3330), Vector64(11310,22320,33330) );
          

          What I see with a breakpoint:

          _<_img src="http://sigilo.art.br/code/images/c4d_xcode_vector32.png" height="435" width="727" border="0" /_>_

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

            On 17/04/2018 at 00:58, xxxxxxxx wrote:

            Hi rsodre, sorry for getting late here. Could you please share your sample projects?

            Best, Riccardo

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