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
    • Recent
    • Tags
    • Users
    • Login

    Serious Xpresso Math Bug in Formula Node

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 328 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 09/08/2011 at 19:43, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R12 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :      XPRESSO  ;

      ---------
      Howdy,

      I just upgraded to R12 and there is a serious math bug with the formula node and using the ^ operator.

      It is a mathematical law that n ^ 0 = 1:

      But in R12's formula node if you type in $1 ^ $2 for the formula and leave the second value at 0, the result of the calculation is whatever the value is of the first value, when it should always be 1.

      Also, if you set both values to the same number then the result is 0, for example setting both values at 2 will give you a result of 0, when it should be giving a result of 4. (2 ^ 2 = 4)

      It was working fine in R10, R10.5(demo), R11(demo), but I just checked R11.5(demo) and that seems to be when it was broken.

      Adios,
      Cactus Dan

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 10/08/2011 at 00:49, xxxxxxxx wrote:

        Originally posted by xxxxxxxx

        Howdy,
        I just upgraded to R12 and there is a serious math bug with the formula node and using the ^ operator.
        It is a mathematical law that n ^ 0 = 1:
        But in R12's formula node if you type in $1 ^ $2 for the formula and leave the second value at 0, the result of the calculation is whatever the value is of the first value, when it should always be 1.
        Also, if you set both values to the same number then the result is 0, for example setting both values at 2 will give you a result of 0, when it should be giving a result of 4. (2 ^ 2 = 4)
        It was working fine in R10, R10.5(demo), R11(demo), but I just checked R11.5(demo) and that seems to be when it was broken.
        Adios,
        Cactus Dan

        You're using the bitwise XOR, not the pow() functions - see "Formula" section in the appendix of the manual/help system. Therefore the result is as expected.

        Best regards,

        Wilfried

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 10/08/2011 at 04:58, xxxxxxxx wrote:

          Howdy,

          Ah, OK, I see that was changed.

          The problem, though, was the rig was built in R10 and handed to a client who's using R12. But, I see that in R10 I can replace it with a coffee node with the formula:

          Output1 = pow(Input1, input2);
          

          ... and it will stay compatible when loaded into R12.

          Sorry, for the panicky post. 😊

          Adios,
          Cactus Dan

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