Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Fill ShaderData preview

 Post Reply Post Reply
Author
Message
peterakos View Drop Down
Member
Member


Joined: 2015 Jul 13
Online Status: Offline
Posts: 304
Post Options Post Options   Quote peterakos Quote  Post ReplyReply Direct Link To This Post Topic: Fill ShaderData preview
    Posted: 2017 Jun 15 at 2:54am

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.
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1540
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Jun 16 at 2:20am
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().

Cheers,
Andreas
SDK Support Engineer
Back to Top
peterakos View Drop Down
Member
Member


Joined: 2015 Jul 13
Online Status: Offline
Posts: 304
Post Options Post Options   Quote peterakos Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Jun 16 at 5:16am
Thank you very much Andreas.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.