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

    C4DNoise Question

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 320 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 05/05/2011 at 03:26, xxxxxxxx wrote:

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

      ---------
      I am using the C4DNoise class to affect the shape of geometry in my plugin.  I know that in a material that the user has the option to adjust the brightness of the noise.  How is this achieved?  what aspect of the noise is being adjusted when the user changes the brightness?  Any help would be greatly appreciated.

      Thanks,

      Shawn

      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 05/05/2011 at 05:06, xxxxxxxx wrote:

        I'm not sure but I think about this:
        The values are mapped. For example you're obtained Noisevalue is 0.7.
        You want to bright it up by 50 %. The Range of the noise changes for 0 - 1 to 0.5 - 1.
        Your new value would be 0.85

          
        //Pseudocode   
        brightness = 0.5   
        //valuerange   
        min = 0   
        max = 1   
        //noisevalue   
        value = noise.GetValue()   
        value = (value*(max-min-brightness)+min+brightness)   
        
        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 05/05/2011 at 05:51, xxxxxxxx wrote:

          ah I see...    Thanks Nux95,
           
          I will try it out when I get home today.
           
          ~Shawn

          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 06/05/2011 at 05:32, xxxxxxxx wrote:

            Worked like a charm.  Thanks again!
             
            ~Shawn

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