Add GI to render settings
-
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
-
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 -
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