Fill ShaderData preview



  • 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.



  • 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().



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

    Thank you very much Andreas.


Log in to reply