THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/08/2003 at 15:04, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
I have a VP plugin and have a instant preview directly in the rendersettings dialog. The preview is created by internally rendering another document that executes the VP plugin itself. Ok, that works and the preview is updated (so the other scene is rendered and shown in the Bitmapbutton) whenever a user changes a value in the plugin (means any gui element changes like clicking a button etc.). But the preview is also calculated when the user switches between the quicktabs even if I oppress the automatic update.
David already gave me the tipp to cache the rendered bitmap and return it when the dirty variable is not incremented.
Ok, but I cannot make it work. No matter how I try to allocate another bitmap and no matter where, it either does not work as expected (shows black because of freeing the bitmap which needs to be done) or Cinema 4D crashes (when I for example do not free it properly). I tried so many ways and am sitting in front of this for 2 days now, I´m kinda...down :=
So the question is: where can I allocate and free a bitmap for caching sensibly? I only have my VP plugin class. Thanks for any info/ideas.
Best
Samir