LuxC4D version 0.04

Discussion related to the 'LuxC4D' exporter plugin for Maxon Cinema 4D.

Moderators: Ratow, coordinators

LuxC4D version 0.04

Postby abstrax » Sun May 24, 2009 5:27 am

Hi all,

Ok finally here is the new version of LuxC4D :) I just had a quick look at 0.03 and there have been quite a few changes...

Let's start with the light tag. You assign this to a C4D light to specify how this light should be exported to Lux. It also allows you to specify a Lux light type that doesn't exist in C4D (sun, sky and sun-sky). I hope that the parameters in the tag are more or less straight-forward and self-explanatory.

If no light is set, an auto light get's exported, regardless if it's enabled in C4D or not (as Lux crashes, if the scene has no light).

As I had trouble with the C4D preference system (changes made in the C4D preferences were not always stored, especially in R9.6) I have moved the LuxC4D preferences into an own dialog. You can access it via the plugins menu under "LuxC4D" -> "LuxC4D Preferences...". There you can specify the path of the LuxRender executable which will be launched with the exported sccene, when you click on "LuxC4D Export + Render".

The biggest change is the conversion of C4D standard materials to Lux materials. At the moment I export only materials that are not restricted to a polygon selection and of those only the first material of an object. That means if you mix materials or if put different materials over different parts of an object, they will not be exported. At least the automatic splitting of objects into parts with different materials will be implemented in the next release. For now you have to do it manually. Sorry for that.

At the moment the plugin also only supports UV mapping and no shaders. That means you have to do everything with bitmaps and colors.

As the material system of C4D and Lux are quite different, the conversion is also not straight forward and not all effects of Lux are accessible that way and not all possibilities of C4D materials can be converted to Lux. I hope that this first implementation is good enough to start learning Lux and to do some nice renders with C4D scenes.

This is the conversion map from depending on the activation of the C4D material channels "Color" (== "D"), "Transparency" (== "T") and "Reflection" (== "R"):

D: The material will become a Lux matte material. If the illumination model is Oren-Nayar, the illumination roughness will be exported as sigma value.

T or T+R or D+T+R: The material will become a Lux glass material, if the dispersion is set to 0, or become a Lux rough glass if the dispersion is set to >0. You will see that mixing reflectivity and transparency works quite different in Lux compared to C4D. There is not much I can do about. The diffuse channel is ignored and not exported.

R: The material will become a Lux mirror material if the dispersion is set to 0 and a shiny metal metal if not. If it's a shiny metal material the reflection channel (Kr) will be turned of and only the specular reflection channel (Ks) will be set .

DR: The material will become a Lux glossy material.

DT: The material will become a Lux matte translucent material. This can be used for some SSS-like effects. The material will look very different in Lux compared to C4D.

If none of these 3 channels is activated or the material is not a standard material, the plugin exports a dummy matte material with the average color of the material.

If at least one of these 3 channels is enabled, and there is also bump enabled, it will be exported, too.

I hope this very short introduction helps you to start using Lux with C4D. If you have questions/problems - feel free to ask. At some point we need to document the plugin. It would be nice if someone else could do that, as my time budget is quite limited (as you already know...). Her you can find some general information about Lux materials: http://www.luxrender.net/wiki/index.php ... _Materials


Now the plugins:

These are the release binaries for Windows which run only under C4D 32-bit:

For Cinema 4D R9.6 please use this one:
LuxC4D_0.04_win32_r9.6_release.zip
(133.87 KiB) Downloaded 125 times


For Cinema 4D R10.1 or higher please use this one:
LuxC4D_0.04_win32_r10.1_release.zip
(134.27 KiB) Downloaded 320 times


These are the release binaries for Mac OS which run only under C4D 32-bit:

For Cinema 4D R9.6 please use this one:
LuxC4D_0.04_mac32_r9.6_release.zip
(280.51 KiB) Downloaded 85 times


For Cinema 4D R10.1 or higher please use this one:
LuxC4D_0.04_mac32_r10.1_release.zip
(333.8 KiB) Downloaded 151 times


Please test if the plugin runs in your version of Cinema 4D (>= 9.6). If there are problems with versions >10.1, I can build binaries for these versions, too.

Cheers,
Marcus
Last edited by abstrax on Sun May 24, 2009 6:50 pm, edited 1 time in total.
abstrax
 
Posts: 247
Joined: Sat Dec 08, 2007 3:52 am
Location: Auckland, New Zealand

Re: LuxC4D version 0.04

Postby abstrax » Sun May 24, 2009 5:54 am

I have just updated CVS. A lot of comments are still missing and will be committed later.

Cheers,
Marcus
abstrax
 
Posts: 247
Joined: Sat Dec 08, 2007 3:52 am
Location: Auckland, New Zealand

Re: LuxC4D version 0.04

Postby abstrax » Sun May 24, 2009 6:22 am

Here is the LuxBall material preview scene converted to the C4D R9.6 format and cleaned up. As the geometry is quite intense, I have compressed it using 7zip, which brings it down to 2.3MB:

luxball.7z
(2.25 MiB) Downloaded 149 times


This is scene on my notebook after almost 6h:

luxball_sm.png
luxball_sm.png (250.35 KiB) Viewed 3116 times


Cheers,
Marcus

EDIT: Have reuploaded the luxball scene as there was some intersecting geometry in the original Blender file.
EDIT2: Have updated the example rendering.
Last edited by abstrax on Sun May 24, 2009 1:53 pm, edited 3 times in total.
abstrax
 
Posts: 247
Joined: Sat Dec 08, 2007 3:52 am
Location: Auckland, New Zealand

Re: LuxC4D version 0.04

Postby Poncho » Sun May 24, 2009 7:51 am

I have updated the download page. http://www.luxrender.net/wiki/index.php/Download

:)
Cheers!
User avatar
Poncho
Developer
 
Posts: 1127
Joined: Sun Nov 30, 2008 11:47 am
Location: Northwood

Re: LuxC4D version 0.04

Postby abstrax » Sun May 24, 2009 8:08 am

Poncho wrote:I have updated the download page. http://www.luxrender.net/wiki/index.php/Download

:)


Cool thanks :)
abstrax
 
Posts: 247
Joined: Sat Dec 08, 2007 3:52 am
Location: Auckland, New Zealand

Re: LuxC4D version 0.04

Postby Stromberg90 » Sun May 24, 2009 1:36 pm

Great :D
I will be giving this a spin soon :)
Stromberg90
 
Posts: 52
Joined: Sat Aug 09, 2008 4:52 pm

Re: LuxC4D version 0.04

Postby Abel » Sun May 24, 2009 2:06 pm

Nice work! I don't use C4D myself but it's great to see this exporter progress.

I've copied your first post to the wiki (http://www.luxrender.net/wiki/index.php/LuxC4D_Manual) as the existing page was still referring to version 0.03. In addition to the text, it would be great to see what the exporter actually looks like, could you please post some screen shots?
User avatar
Abel
Developer
 
Posts: 1412
Joined: Sat Oct 20, 2007 8:13 am
Location: Helsinki, Finland

Re: LuxC4D version 0.04

Postby abstrax » Sun May 24, 2009 2:10 pm

Thanks for that. I will update the wiki, incl. some screen shots.

Cheers,
Marcus
abstrax
 
Posts: 247
Joined: Sat Dec 08, 2007 3:52 am
Location: Auckland, New Zealand

Re: LuxC4D version 0.04

Postby Radiance » Sun May 24, 2009 2:17 pm

maybe someone can post in a C4D community forum somewhere to help test as there's not much C4D users hanging around here currently... ?

Radiance
User avatar
Radiance
 
Posts: 3968
Joined: Wed Sep 19, 2007 2:13 am

Re: LuxC4D version 0.04

Postby darkwave » Sun May 24, 2009 7:55 pm

Congratulations for the project, will test as soon as possible, seems to work even on c4d11 on macosx
10.5.6.

Thanks!
darkwave
 
Posts: 3
Joined: Sun May 24, 2009 6:56 pm

Next

Return to LuxC4D (Maxon Cinema 4D Exporter)

Who is online

Users browsing this forum: No registered users and 0 guests