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

    videopost final image

    SDK Help
    0
    4
    509
    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/01/2003 at 10:06, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.012 
      Platform:      
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      hi ,
      this is driving me nuts.
      the main video post buffer is  VPBUFFER_RGBA
      this contains of course rgb in as floats and a possible alpha (not always)
      my problem is , this is not really  the  final  image.
      so which buffer/image is sent up to the picture veiwer?
      none of the available (multipass) channels provide access to the final image.
      so, each plugin post effect is writing to its own rgba buffer  locally right?
      so , if my plugin does something to its local rbga buffer , another plugin will come along after it and overwrite what i just did? (seems to be this way)
      the question is , how can i access this final image (after all effects), where is it.
      it must be being built somewhere and passed as a bitmap to the picture viewer.
      i can see it in the picture viewer (just a user area i geuss) how can i grab it?
      I cant reconstruct it from any of the available buffers!!!
      it seems impossible to get to the final image.
      any ideas ?
       
      cheers
      Paul

      _<_h4_>_

      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/01/2003 at 12:22, xxxxxxxx wrote:

        What if you place your plugin as the final videpost? Also, isn't the buffer finished even in Execute({VP_RENDER, close})? It sounds like most plugins should be done by then. (Unless of course another plugin has chosen the same strategy...)

        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/01/2003 at 12:35, xxxxxxxx wrote:

          ive placed it as the fional vp

          return RegisterVideoPostPlugin(ID_TWEAK,name,0,Tweak::Alloc,"VPtweak",VPPRIORITY_OBJECTMOTIONBLUR+10,0);
          that is ,  a high id  number (as far as i understand high numbers are rendered last);
          however this doesnt make a blind bit of difference.
           
          the problem is that there is only access to  the rgba buffer and this does now contain or show any video post effects at all.
          whichj is why i think each plugin  gets its own rgba.
          infact it most likely does , because you have to do something like this
           render->AllocateBuffer(VPBUFFER_RGBA,  0,  bits16, vis);
          anything i change in my plugin , is going into this buffer.
          but  there is no way to get  the final image.
          its a bit daft really.
          for instance , there is no way for me to get an image which has has had the cell shader applied to it.
          whatever i see in my rgba buffer is excluding all other post effects.
          I hope im wrong in thinking that its not possible to get the final image out of any buffer.(which would be just plain stupid)
           
          cheers
           
          Paul

          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/01/2003 at 14:48, xxxxxxxx wrote:

            ok
            i have a solution
            its a bit of a pain , but it seems to work.
             VPBuffer *rgba=vps->render->GetBuffer(VPBUFFER_RGBA, 0);
            this seems to be the final image
            I used it comming out of the frame and it provides the  finished image  🙂
            i think they like it to be hard work:)

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