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

    RayLight

    SDK Help
    0
    3
    195
    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 09/11/2004 at 12:13, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.500 
      Platform:      Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hello,
      I am trying to create a custom RayLight within my shaders Output routine:

        
      Vector JLSData::Output(PluginShader *chn, ChannelData *cd)  
      {  
           if (GET_TEX_CHANNEL(cd->texflag) == CHANNEL_ALPHA || GET_TEX_CHANNEL(cd->texflag) == CHANNEL_TRANSPARENCY) return 1.0;  
           VolumeData *vd=cd->vd;  
           if (!vd) return Vector(0.0);  
           BaseObject     *obj=vd->op->link;  
           RayLight     *licht=AllocRayLight(obj);  
           if (!licht) return Vector(0.0);  
      

      The allocation of my "licht" RayLight fails all the time. Could someone shed some light on this 🙂

      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 13/05/2005 at 02:22, xxxxxxxx wrote:

        It seems the object passed to AllocRayLight() needs to be a light object.

        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 13/05/2005 at 03:40, xxxxxxxx wrote:

          Hi Mikael,
          yes, I found this out already.
          Nevertheless thanks for your answer.

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