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

    Direct Bump

    SDK Help
    0
    3
    443
    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

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

      On 01/03/2003 at 12:43, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.012 
      Platform:      
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I need help with my shader. I want to make it support direct bump.
      So i've calculated  new_normal = ! ( cd->n + delta_n )
      I don't assume that it will give the desired result. But when i return "new_normal" in the Output function of my shader, it doesn't affect the bump mapping at all. The sphere i test it with has absolutely no bump.I guess i am doing something basically wrong here.
      Btw. If i return "new_normal" in the color channel i can see clearly the desired structure.
      Michael

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

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

        On 02/03/2003 at 09:52, xxxxxxxx wrote:

        Are you defining      CHANNEL_DIRECTBUMP in the overloaded GetRenderInfo function of your shader data?

        Then in output you have to set cd->vd->bumpn to your new_Normal.

        That is all I do. The tricky part ( where I spent alot of time in SLA ) was contstructing the messaging system so that complete texture trees could be evaluated for the bump channel ). Now that was fun! 😕

        bt

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

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

          On 02/03/2003 at 15:35, xxxxxxxx wrote:

          Meanwhile i found this out myself.
          Thank you anyway.
          Michael

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