Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    MaterialData, CalcTransparency, CalcAlpha

    SDK Help
    0
    2
    211
    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/05/2007 at 01:23, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :

      ---------
      How to use those methods:
      virtual void CalcTransparency(PluginMaterial* mat, VolumeData* vd);
      virtual void CalcAlpha(PluginMaterial* mat, VolumeData* vd);

      even if i set information about what my plugin requires from the raytracer, like this:

      LONG ParticleVolume::GetRenderInfo(PluginMaterial *mat)
      {
           return SHADER_TRANSPARENCY|SHADER_VOLUMETRIC|SHADER_ALPHA;
      }

      program never enter to this method. Only CalcVolumetric and CalSurface work.

      It is easy to check with ParticleVolume from sdk.
      Just write
           GePrint("CalcTransprarency"); in ParticleVolume::CalcTransparency <--- it never apper in console window.

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

        it will be called, but you the shaded objects have to be in a shadowed area. check this example file with the ParticleVolume example from the SDk. CalcTransparency will be called.

        example file
        trans.c4d

        cheers,
        Matthias

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