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

    Add GI to render settings

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 294 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 17/04/2010 at 08:20, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :

      ---------
      Hi everyone,

      I'm probably missing something obvious here, but how do I add GI to the render settings? I thought that I could do PluginVideoPost::Alloc() then insert that into the active render data for the document. Of course, the Alloc() call wants the type of videopost as a parameter and I can't find that for GI in the SDK.

      Am I going about this the right way or is GI not treated as a videopost? In which case, how do you add GI?

      Many thanks,

      Steve

      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/04/2010 at 02:06, xxxxxxxx wrote:

        Yes, GI is allocated just like other videoposts.

        The ID is VPglobalillumination.

        Example:

          
        Bool MenuTest::Execute(BaseDocument *doc)  
        {  
          RenderData *rdata = NULL;  
          rdata = doc->GetActiveRenderData();  
          if (!rdata) return FALSE;  
          
          PluginVideoPost *pvp = NULL;  
          pvp = PluginVideoPost::Alloc(VPglobalillumination);  
          if (!pvp) return FALSE;  
          
          doc->StartUndo();  
          
          rdata->InsertVideoPost(pvp, NULL);  
          
          doc->AddUndo(UNDO_NEW, pvp);  
          
          doc->EndUndo();  
          
          rdata->Message(MSG_UPDATE);  
          
          EventAdd();  
          
          return TRUE;  
        }  
        

        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/04/2010 at 02:09, xxxxxxxx wrote:

          Excellent! Thank you very much indeed. Problem solved.

          Steve

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