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

    Shader dirty ?

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 350 Views
    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 Offline
      Helper
      last edited by

      On 30/01/2013 at 10:13, xxxxxxxx wrote:

      hi,

      is there a smart way to determine if a BaseShader is time dependent, or in other words needs
      to be recalculated for each frame ? GetRenderInfo does not seem to provide this information.
      how is the shader effector doing this for its live data? maually comparing the first few frames or 
      some uvw coords does not seem to be very reliable to me.

      edit : ok tested the shader effector and it appears that the shader effector simply computes
      the shader for each frame. which is fine for the shader effector i guess, but as i will have to
      do a lot more samples than the shader effector has do, i wonder if there is an other way,
      aside from an interface toggle option.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 31/01/2013 at 03:00, xxxxxxxx wrote:

        Hi,

        The Shader Effector is not a shader, it's an object. And I'm afraid there's no easy way to know if a shader is time/frame dependent.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 31/01/2013 at 08:41, xxxxxxxx wrote:

          Originally posted by xxxxxxxx

          The Shader Effector is not a shader, it's an object. A

          hi,

          i am aware of that, but the shader effector also has to sample a baseshader and i was under
          the impression that the shader effector was doing this in a throttled manner. (which is not the
          case). i am basically doing the same. i have a tag and the tag samples a shader. now i want
          the tag only to be executed when it is necessary, because the tag does not have to sample 
          just a few hundred points like the shader effector, but easily a few 1000 or 10000.

          i am currently let the user decide, if the ouput is time dependent or not, not ideal for sure.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            On 05/02/2013 at 03:52, xxxxxxxx wrote:

            Hi,

            There is no way to know if a shader is time dependent.
            Each shader has to perform itself some kind of caching if possible.

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