THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/04/2005 at 07:11, xxxxxxxx wrote:
Cinema 4D Version: 9.1
Platform: Windows ; Mac ;
Language(s) : C++ ;
is there a way to sample a PluginShader from within a dialog? What possibilities are there? I would like to avoid rendering a scene for this. But I need to get a bitmap at the end.
On 21/04/2005 at 13:31, xxxxxxxx wrote:
Rendering a scene with a dummy polygon sounds like the simples way. But I guess it should be possible using InitRender() and Sample() as well.
On 21/04/2005 at 13:35, xxxxxxxx wrote:
Thanks. Sample requires a channelData struct, where can I get this to pass to the function?
On 21/04/2005 at 13:44, xxxxxxxx wrote:
You will have to allocate an empty ChannelData and then fake the values. Either you set the VolumeData to NULL and hope the shader manages without it, or you will have to allocate an empty VolumeData as well and fill in fake values there as well.
On 21/04/2005 at 13:48, xxxxxxxx wrote:
Ah I see. Ok, well, that´s a bit too unsafe for what I need, so I guess rendering the scene is my way.