THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/05/2005 at 07:28, xxxxxxxx wrote:
Cinema 4D Version: 8.5
Platform: Windows ;
Language(s) : C++ ;
I write a shader that contains a shaderlink. Now, to speed up calculations I like to take same samples from this shader in the InitRender function of my shaderplugin. But how can I do this? There is no ChannelData in InitRender and a dummy ChannelData doesn't work, at least not in my tests.
thanks in advance,
On 12/05/2005 at 13:01, xxxxxxxx wrote:
A dummy ChannelData should work, they're used in CINEMA itself and I've used them myself in some projects. Have a look at the SDK examples, I think it is the BitmapShader. You just need to fill in the information and give it the UV to sample, it should then work.
On 12/05/2005 at 16:14, xxxxxxxx wrote:
hurray, it works, made a silly mistake in
tex->InitRender(irs) result checking.