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

    3D-View for GeDialog

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 336 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 14/10/2011 at 07:24, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R13 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hey Guys,

      It is possible to get the 3d-view for a Gedialog, maybe over a CustomGui?
      I want to create a instance of the 3d-view in an Asynchron Dialog (FullScreen).

      Current I know two ways:

      1. methode:
      Create a UserArea in a GeDialog:

      area_display = AddUserArea(1234, BFH_CENTER);  
        if(area_display)  
        {  
            AttachUserArea(display, area_display);  
        }  
      

      Render the document in software-mode:

        
      BaseContainer rdc = rd->GetData();  
      rdc.SetLong(RDATA_RENDERENGINE, RDATA_RENDERENGINE_PREVIEWSOFTWARE);  
      RenderDocument(doc, rdc, NULL, NULL, bmp, RENDERFLAGS_EXTERNAL, NULL)  
      

      And then show the Bitmap in the GeUserArea:

        
      DrawBitmap(RenderMenuTest::bmp,0,0,100,200,0,0,100,200,BMP_NORMAL);  
      

      Works great, also the speed is fantastic for software preview, but I want the hardware preview (opengl). But the rendertime is to long. I want to update the image with mininum 24 fps.

      2. methode:
      I create a Asynchron Dialog (FullScreen) Layout (*.l4d) with c4d owns 3d-view-manager.
      All is fine but I can´t setup the size of the manager via c++. I want exact sizes for all resolution (800x600, 1024x768....)

      Anyone have an idea?
      I want the 3d-view (with opengl) in a dialog, fast enough for 24 fps++ (redrawtime).

      I am thankful for all help! 🙂

      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 19/10/2011 at 02:35, xxxxxxxx wrote:

        Sorry it's currently not possible.

        cheers,
        Matthias

        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 19/10/2011 at 14:15, xxxxxxxx wrote:

          Oh... hm okay, thank you, maybe in r14. 😉

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