Questions to the materials previews.

Announcements, requests and support regarding the Cinema 4D exporter
Post Reply
9 posts • Page 1 of 1
User avatar
N.G.
Posts: 36
Joined: Tue Dec 18, 2012 1:31 am
Location: Russia

Questions to the materials previews.

Post by N.G. » Tue Dec 25, 2012 8:44 pm

decided to do to set up the materials - a preview.
Here's how to configured scene for this:
Image
Image

-At the beginning of configured through EXR. when attempting to run the preview error has occurred - no light.
-In the preview does not display anything. no background, no environment.
-In a last attempt to make a scene, lit by two light sources. The result - I am sad.
Attachments
materialpreview_02.jpg
here so configured a preview.
materialpreview_01.JPG
here so shown in the program.

User avatar
N.G.
Posts: 36
Joined: Tue Dec 18, 2012 1:31 am
Location: Russia

Re: Questions to the materials previews.

Post by N.G. » Tue Dec 25, 2012 10:03 pm

last attempt. (illuminated by light cone)
Attachments
materialpreview_12.JPG
materialpreview_11.JPG
materialpreview_10.JPG
materialpreview_09.JPG
materialpreview_08.JPG
materialpreview_07.JPG
materialpreview_06.JPG
materialpreview_05.JPG
materialpreview_04.JPG
Last edited by N.G. on Thu Dec 27, 2012 10:37 pm, edited 1 time in total.

User avatar
N.G.
Posts: 36
Joined: Tue Dec 18, 2012 1:31 am
Location: Russia

Re: Questions to the materials previews.

Post by N.G. » Thu Dec 27, 2012 10:26 pm

-have the opportunity to sew in the scene settings INDIGO? and under what the parameters working of the standard viewing of materials? I wanted to sew in number of samples render, but not coming out.
-How can illuminate only preview EXR? or for this is to rewrite the connector?
(sorry for bad english)

forgeflow
Posts: 63
Joined: Thu Oct 29, 2009 5:26 pm
Location: Canada
Contact:

Re: Questions to the materials previews.

Post by forgeflow » Fri Dec 28, 2012 1:40 am

Question. How did you set up your own material preview? Do you have a step by step?

User avatar
N.G.
Posts: 36
Joined: Tue Dec 18, 2012 1:31 am
Location: Russia

Re: Questions to the materials previews.

Post by N.G. » Fri Dec 28, 2012 2:19 am

Final lay out here.

User avatar
N.G.
Posts: 36
Joined: Tue Dec 18, 2012 1:31 am
Location: Russia

Re: Questions to the materials previews.

Post by N.G. » Fri Dec 28, 2012 2:23 am

forgeflow wrote:Question. How did you set up your own material preview? Do you have a step by step?
create a scene. cone light all illuminated. save in a folder ...( CINEMA 4D R13\library\materialpreview )... restart Cinema4D check.

User avatar
wlf_alex
Posts: 99
Joined: Tue Aug 28, 2012 9:26 pm
Location: Russia-Moscow, Spain-Alicante
Contact:

Re: Questions to the materials previews.

Post by wlf_alex » Fri Dec 28, 2012 4:39 am

N.G. wrote:
forgeflow wrote:Question. How did you set up your own material preview? Do you have a step by step?
create a scene. cone light all illuminated. save in a folder ...( CINEMA 4D R13\library\materialpreview )... restart Cinema4D check.
I do not understand only one thing. Indigo does not support "light cone" or Spot Light! Only the Infinite Light and Area Light. Or am I wrong?
ArchiCAD 14, Cinema 4D r13, IndigoRender, VrayforC4D

User avatar
wlf_alex
Posts: 99
Joined: Tue Aug 28, 2012 9:26 pm
Location: Russia-Moscow, Spain-Alicante
Contact:

Re: Questions to the materials previews.

Post by wlf_alex » Tue Jan 01, 2013 11:09 pm

N.G. wrote:-have the opportunity to sew in the scene settings INDIGO? and under what the parameters working of the standard viewing of materials? I wanted to sew in number of samples render, but not coming out.
-How can illuminate only preview EXR? or for this is to rewrite the connector?
(sorry for bad english)
is an interesting question! I would like to get the answers. :)
ArchiCAD 14, Cinema 4D r13, IndigoRender, VrayforC4D

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: Questions to the materials previews.

Post by fused » Mon Jan 14, 2013 10:26 pm

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!

Post Reply
9 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 32 guests