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

    Shadowcasting in Volumeshader?

    SDK Help
    0
    5
    350
    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 24/05/2004 at 12:31, xxxxxxxx wrote:

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

      ---------
      Hi,
      I have a volume shader that does not have a surface calculation (means it does not work on geometry, but is used on an environment object). Now I need this volume to cast shadows though. What´s the usual way to do this? Any information or help is highly appreciated.
      Thank you in advance
      Samir

      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/05/2004 at 17:49, xxxxxxxx wrote:

        Wouldn't implementing CalcTransparency() and CalcAlpha() accomplish 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 26/05/2004 at 09:01, xxxxxxxx wrote:

          Hi,
          thanks. I thought so too but it didn´t do so. Well, maybe I did something wrong. I will try again.

          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 26/05/2004 at 15:04, xxxxxxxx wrote:

            It works here perfectly, did you set the shader flags correctly?

            darf

            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 26/05/2004 at 16:55, xxxxxxxx wrote:

              Thanks for your answer. I do think so. Got SHADER_TRANSPARENCY|SHADER_ALPHA|SHADER_VOLUMETRIC|SHADER_RAYTRACING;
              All my calculations are done in InitRender and in CalcVolumetric. I am then passing transparency values to the according function. Is this the right way? I am pretty new to VolumeShaders and still feel a bit misplaced (though it´s getting better every day).
              But I just see that CalcAlpha is evaluated before CalcVolumetric. That´s probably the problem! Do I need to do my calculations in there too? That would surely slow down things. Hmm, I will need to further look at it.
              Thanks guys.

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