Sorry for the late reply on this one.
Currently Indigo for C4D does some modifications to the C4D preview scenes so they render a bit better with Indigo. Some things are hardcoded and can't be changed.
Here's what Indigo for C4D does to the previews:
- Inserts a new Indigo Renderer Settings object to the render data, so already having one in the scene could have some nasty side effects, depending on which C4D thinks is the actual one. I could change it so it looks for an existing one to be modified instead.
It then sets a few things:
Code: Select all
data->SetBool(RENDER_AUTO_CHOOSE_THREADS, TRUE);
data->SetLong(RENDER_MAXDEPTH, 100);
data->SetLong(RENDER_MODE, PATHTRACER);
data->SetBool(RS_IS_PREVIEW, TRUE);
data->SetBool(RENDER_SAVEIGI, FALSE);
data->SetReal(RENDER_IMAGESAVEPERIOD, 1000000.0);
- Removes "Environment" material, if found.
- Removes "Sky" object, if found.
- Finds the 2 light sources (usually c4d preview scenes have 2 light sources) and applies a Light tag to them, sets emission to blackbody. Also set the light type to area and sets the width and height to 400.
- Finds the background plane (by name, is called "Polygon") and, if found, moves it further to the back (because in the standard c4d scenes the second light is behind the background plane, ignoring the background plane)
- Finds the active camera and applies a camera tag to it.
- Finds the background material "Floor" and replaces the shader with a texture.
It is of course possible to skip any of these modifications by somehow detecting if a scene was meant to be used with Indigo (for example checking if Indigo Render Settings are present).
Let me know what would be most convenient for you.
Cheers!