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

    Raytracing in channelshader?

    SDK Help
    0
    3
    388
    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 22/08/2003 at 04:37, xxxxxxxx wrote:

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

      ---------
      Hi!
      I have been trying to write a shader that uses TraceGeometry, but i keep running in to problems. I think i will need to set the flag "CHANNEL_RAYTRACING". Like this:

      MyShader::GetInfo(settings){
           return CHANNEL_RAYTRACING;
      }

      …but I get a compilation error. What is wrong?

      Regards
      /Filip

      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 25/08/2003 at 05:34, xxxxxxxx wrote:

        This flag isn't available as a constant in C.O.F.F.E.E. then, but you can copy the value from the C++ API:

            
            
            #define SHADER_RAYTRACING    0x00000001 // shader needs raytracing  
            #define CHANNEL_RAYTRACING   0x00000001 // channel needs raytracing
        
        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/09/2003 at 03:27, xxxxxxxx wrote:

          That seems to work nicely with version 8, but both versions 7 and 6 crash as soon as my COFFEE channel implements GetInfo().

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