Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Login

    can I access the bitmap in viewport?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 286 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 27/04/2011 at 15:41, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   12 
      Platform:    Mac  ;  
      Language(s) :     C++  ;

      ---------
      Hi

      I am relatively new to C4d plugins in C++. Maybe this is not possible:

      Can I somehow access the bitmap of whatever is shown in the Viewport?

      In other words: I have a background picture of some sort and would like to be able to have the plugin automatically place points in the scene, determined by what can be seen in the picture.

      Thanks

      Peter

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 27/04/2011 at 23:34, xxxxxxxx wrote:

        As far as I know, this is not possible.  You can call RenderDocument() to get a bitmap but the editor view (or views!) is created either on the GPU using OpenGL or in memory using Software mode.  There are ways to get the FrameBuffer with OGL (glReadPixels()) but believe you me, it is not a place to go if you don't know exactly what you are doing. 🙂

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 28/04/2011 at 19:35, xxxxxxxx wrote:

          Thanks kuroyume0161

          I was afraid of that. That would mean tinkering outside of what C4D is doing?
          Back to the drawing board.....

          Peter

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