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

    How to return C4DNoise as Vector [SOLVED]

    SDK Help
    0
    2
    233
    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 07/03/2015 at 14:52, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   14,15,16 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi,

      I need to return a Noise function as vector , and not as the default float. The reason is that I am using noise to deform an object, and I need it to affect the x, y and z axes.

      What I am currently using is this:

      Real rX = myC4dnoise->Noise(NOISE_NOISE, FALSE, padr[i], 0, 5 FALSE, 0, 0, 0);
      

      where padr are the point positions of the object.

      I can of course use a combination of different results to form a vector, but this does not result in the correct noise deformation.

      What I am trying to achieve is similar to a Displace Modifier that has a noise shader applied.
      So the question is how to return a noise function as a vector that has the correct x, y and z components representing the noise values in each dimension.

      Any help is greatly appreciated.

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

        On 07/03/2015 at 22:56, xxxxxxxx wrote:

        Answering my own question. The noise result should be used on the point normals, and not positions as I was previously doing.

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