Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Bitmap from Editor View w/o render?

    SDK Help
    0
    3
    242
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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,

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post