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

    Watermark & DOF [SOLVED]

    SDK Help
    0
    5
    408
    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

      On 15/11/2014 at 19:40, xxxxxxxx wrote:

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

      ---------
      Hello,

      I've implemented a Video Post plugin that prints information above the render, like a watermark.
      It works pretty well, but when I add DOF to the scene, my watermarks all get blurred. I can see it blurs together with the Back Blur, if I turn back blur off, my watermark keeps intact.

      The native watermark effect works well with DOF, it does not blu. Looks like it's a Video Post as well, so there must be a trick to keep it off DOF blur.

      Things I tried with no success:
      - Set the priority to be very low, like C4DPL_INIT_PRIORITY_PLUGINS-100000, no change
      - Set depth = 0.0 on ExecutePixel on all my watermarked area

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

        On 17/11/2014 at 02:33, xxxxxxxx wrote:

        Hi,

        in which part of the call sequence are you applying your watermark?

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

          On 17/11/2014 at 07:17, xxxxxxxx wrote:

          Here...
          RENDERRESULT BDVJData::Execute(BaseVideoPost *node, VideoPostStruct *vps)
          {
          ...
          if (vps->vp==VIDEOPOSTCALL_INNER && ! vps->open)
          {
          // watermark
          }
          }

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

            On 17/11/2014 at 09:22, xxxxxxxx wrote:

            Couldn't you do it, after the frame got rendered?

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

              On 17/11/2014 at 10:32, xxxxxxxx wrote:

              If i do it after VIDEOPOSTCALL_SUBFRAME or VIDEOPOSTCALL_FRAME the plugin crashes.

              But after VIDEOPOSTCALL_RENDER it works as expected, no bur!

              Thanks!

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