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

    Fill ShaderData preview

    SDK Help
    0
    3
    345
    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/06/2017 at 02:54, xxxxxxxx wrote:

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

      ---------
      Hello.

      I have a ShaderData plugin that I need to set value to its preview.
      I know I Have to use InitRender and FreeRender to setup and destroy my data.
      The problem is that Output method feels a little bit slow since I have to set the value for each UV separately. Also, I use an external lib to calculate the shader that can be done in the InitRender.

      Can I avoid Output and simply set the shader preview by copying the base bitmap ? Is there any message to which I have to respond to achieve that ?

      Thank you very much for your time.

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

        On 16/06/2017 at 02:20, xxxxxxxx wrote:

        Hi,

        no, this is not possible. You can of course create the bitmap in InitRender() and then only sample (basically copy pixels) the bitmap in Output().

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

          On 16/06/2017 at 05:16, xxxxxxxx wrote:

          Thank you very much Andreas.

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