Here is version 0.03 of LuxC4D:
This version comes with export of light sources. The conversion is done automatically, but a light tag is in the making, where you will be able specify the light type and attributes manually. As the lights in C4D are made for classic lighting, while the Lux lights are (more or less) physically based, you cannot really convert them. I tried my best to approximate the behaviour in C4D as much as possible, but I don't think it will work very well in your scenes. But please try it out and give me some feedback. Keep in mind though, that the falloff is always inverse square in Lux. The current conversion table between C4D and Lux light types is:
- Omni -> Point
- Spot, Square Spot -> Spot
- Infinite, Parallel, Parallel Spot, Square Parallel Spot -> Distant
- Area -> Area
That means that special lights like sun and sky are not supported in this version (yet), but will follow with the implementation of the light tag.
Anothe limitation: Because in Lux area lights emit light only from the outside (i.e. one side of the surface is emitting, the other one is not), there will be an option in the light tag that allows you to reverse the surface orientation to let e.g. a hemisphere shine inside and not outside. For now the surface staysonly oriented as it is.
The brightness scaling is tuned for the very latest CVS weekly build and will be too dark in older Lux versions.
The cylinder area light has no caps. I will add them later.
Another change is the addition of preferences in the program preferences, where you can specify scene independent settings for LuxC4D. For the time being there is only one option: A path to the Lux executable. Which brings us to te next addition:
In the plugins menu there is now a new command "LuxC4D Export and Render", which exports your scene and launches the application specified in the preferences.
I also added a tab "Export" where you can specify the output scale (default: 0.01) and which filename you want to use for the exported scene.
After cleaning up the code, I will commit the changes to CVS and then continue working on the light tag.
As always, feedback is very welcome.
Last edited by abstrax
on Wed Nov 19, 2008 2:18 pm, edited 2 times in total.