THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/04/2009 at 07:50, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.1
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
Hi,
in my Generator object, I use textures/shaders for creating geometry. Since I use caching to speed up the performance, I do the following to check if anything in the object has changed, so the cache has to be recalculated:
> \> Bool dirty = op->CheckCache(hh) || op->IsDirty(DIRTY_DATA); \> if (!dirty) return op->GetCache(hh); \>
Is it possible to trace changes in a shader/texture (class PluginShader)? Of course, when the shader changes, my object must also be recalculated.
Since, there is no PluginShader::CheckCache(), maybe this is possible using messages, but I don't know.
Any tipps? Thanks in advance!
Cheers,
Jack