Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Wrong Vector/Matrix values in XCode

 Post Reply Post Reply
Author
Message
rsodre View Drop Down
Member
Member


Joined: 2014 Jun 15
Location: Brazil
Online Status: Offline
Posts: 79
Post Options Post Options   Quote rsodre Quote  Post ReplyReply Direct Link To This Post Topic: Wrong Vector/Matrix values in XCode
    Posted: 2018 Mar 28 at 6:42am

User Information:

Cinema 4D Version:   R19 
Platform:    Mac  ;  Mac OSX  ; 
Language(s):       

---------

Hi,

Something that bothers me a lot when debugging C4D on XCode is that it never displays the values of Matrix and Vector objects. They always are displayed as (0,0,0), and I have to unfold it to see the actual values (see attached image).

Am I missing something here?
Is there any catch to see the actual values?


Back to Top
knickknack View Drop Down
Forum Moderator
Forum Moderator


Joined: 2016 Jul 01
Location: Italy
Online Status: Offline
Posts: 249
Post Options Post Options   Quote knickknack Quote  Post ReplyReply Direct Link To This Post Posted: 2018 Mar 29 at 8:01am
Hi rsodre, thanks for writing us.

I actually  never experienced such issue under R19, Xcode 8.3.3 and Sierra. Could you please share more details about your development environment?

Best, Riccardo
MAXON Computer GmbH
SDK Support Team
Back to Top
rsodre View Drop Down
Member
Member


Joined: 2014 Jun 15
Location: Brazil
Online Status: Offline
Posts: 79
Post Options Post Options   Quote rsodre Quote  Post ReplyReply Direct Link To This Post Posted: 2018 Apr 02 at 12:10pm
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.
Back to Top
knickknack View Drop Down
Forum Moderator
Forum Moderator


Joined: 2016 Jul 01
Location: Italy
Online Status: Offline
Posts: 249
Post Options Post Options   Quote knickknack Quote  Post ReplyReply Direct Link To This Post Posted: 2018 Apr 03 at 7:05am
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
MAXON Computer GmbH
SDK Support Team
Back to Top
rsodre View Drop Down
Member
Member


Joined: 2014 Jun 15
Location: Brazil
Online Status: Offline
Posts: 79
Post Options Post Options   Quote rsodre Quote  Post ReplyReply Direct Link To This Post Posted: 2018 Apr 03 at 11:26am
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:


Back to Top
knickknack View Drop Down
Forum Moderator
Forum Moderator


Joined: 2016 Jul 01
Location: Italy
Online Status: Offline
Posts: 249
Post Options Post Options   Quote knickknack Quote  Post ReplyReply Direct Link To This Post Posted: 2018 Apr 17 at 12:58am
Hi rsodre, sorry for getting late here. Could you please share your sample projects?

Best, Riccardo
MAXON Computer GmbH
SDK Support Team
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.109 seconds.