CINEVERSITY

    Maxon Logo
    • Login
    • Search
    • Recent
    • Popular
    • Users
    • Groups

    Opacity change with distance?

    Question & Answers
    2
    6
    37
    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.
    • Delphis
      Delphis last edited by

      Hello,
      I made a distance from the camera setup in RS material to control the object's opacity with respect to distance from the camera.
      The setup is state node (raylength) connected to change range (controlling the depth) node and ramp node is at the end.
      My setup works with color, but does not affect opacity, objects alpha is full white throughout depth.
      The simplified scene is attached.

      Distance_Opacity.c4d

      What am I doing wrong?
      Thank you.

      Best regards,

      ZG

      Zeljko Grgic
      www.delphis.hr

      1 Reply Last reply Reply Quote
      • Dr. Sassi
        Dr. Sassi last edited by Dr. Sassi

        Hi ZG,

        Thank you for your file.

        I assume you do not do anything wrong. I have the impression, after a few hours trying any combination, that it is not working as it should. It was set to โ€œWorldโ€, but Camera as distance mode doesnโ€™t solve the problem

        I have filed a report .

        Here is a workaround, while I'm not sure it is working for you, as you mentioned that the file is a simplified version.
        CV4_2026_drs_26_RStd_02.c4d

        Let me know if that works

        Cheers

        All the best

        Dr. Sassi Sassmannshausen Ph.D.
        Senior Trainer, Maxon Master Trainer, L&D - Strategist
        Cinema 4D mentor since 2004, Member of VES, DCS.

        1 Reply Last reply Reply Quote
        • Delphis
          Delphis last edited by

          Hi Dr.Sassi,
          Thank you for the suggested solution. This could work as a temp solution.
          I managed to solve my problem by rendering the Z-depth pass and using it as additional alpha.

          Zeljko Grgic
          www.delphis.hr

          1 Reply Last reply Reply Quote
          • Dr. Sassi
            Dr. Sassi last edited by

            Thank you, ZG, for your patience.

            Yes, Z-Depth might be even better, but I understand that this creates an extra step.

            I hope the State Node is in working condition in no time.

            My best wishes.

            Dr. Sassi Sassmannshausen Ph.D.
            Senior Trainer, Maxon Master Trainer, L&D - Strategist
            Cinema 4D mentor since 2004, Member of VES, DCS.

            1 Reply Last reply Reply Quote
            • Delphis
              Delphis last edited by Delphis

              Usually, when I'm on a project with a tight deadline, it's time-consuming to troubleshoot the problem. ๐Ÿ™‚
              Yes, Z-Depth was an extra step, but it was a fast solution since I could not find a fast and intuitive one to control alpha.
              Actually, it was very useful for adjustments in post.
              I also hope the State Node bugs are fixed soon.

              BTW, while working on this project, I really missed the "bypass node" feature in the material node editor. Most node-based apps have this feature.
              Having a "bypass node" or "pass-through" switch on nodes would be a great feature, and I requested it long time ago but still no sign that it could happen.
              Can you have some influence on dev team regarding that ๐Ÿ˜„

              Thank you.

              Zeljko Grgic
              www.delphis.hr

              1 Reply Last reply Reply Quote
              • Dr. Sassi
                Dr. Sassi last edited by Dr. Sassi

                Thank you very much, ZG!

                The deadline is a real magnet for trouble, so it seems ๐Ÿ˜‰
                .

                I will check with the State Node and will post here when I find something.
                .

                Yes, for the disable Node shortcut, which is an industrial classic all over the place (Nuke, DaVinci, Fusion, etc.) I agree.
                Typically, the D shortcut (or in combination with cmd or option, etc).

                Since feature requests get more attention internally when they have more attention from the art/user side, please use the "ShareYour Idea" here:
                https://www.maxon.net/en/

                Thanks for considering.

                BTW, I have done this as a feature request already. However, I will see if I get some other people on board with that. Thanks for pushing this! ๐Ÿ™‚

                Cheers

                Dr. Sassi Sassmannshausen Ph.D.
                Senior Trainer, Maxon Master Trainer, L&D - Strategist
                Cinema 4D mentor since 2004, Member of VES, DCS.

                1 Reply Last reply Reply Quote
                • First post
                  Last post