Bitmap from Editor View w/o render?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/11/2006 at 21:33, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.2-10.0
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;---------
This is going to sound crazy, but I want to get a bitmap of the current View of the current document - without rendering if possible. This is for purposes of creating 'thumbnails' during export that will be saved in JPG format (would've been PNG, but BaseBitmap::Save() does not support it).I'd do a small, bare-bones render, but that is not something to do to the user (unless there is a way to do a render that doesn't happen in the external renderer and can be extremely fast!).
Ideas welcomed!
Thanks,
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/11/2006 at 03:17, xxxxxxxx wrote:
I think you have to render the document to do this. Set the RenderData to editor rendering.
//bcRender is BaseContainer of the RenderData bcRender.SetBool(RDATA_RENDERASEDITOR, TRUE);
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/11/2006 at 09:38, xxxxxxxx wrote:
After researching this here and in the docs, yeah, it appears that it has to be rendered. No way to get the View as a bitmap.
So, I'm going to use RenderDocument() with RENDERFLAG_PREVIEWRENDER|RENDERFLAG_NODOCUMENTCLONE (let me know if that's a good choice) and the least troublesome RenderData container settings (no GI, no VP, your setting, etc.).
Thanks!