newmtl Ampoule Ka 1.0000 1.0000 1.0000 Kd 1.0000 1.0000 1.0000 Ks 1.0000 1.0000 1.0000 Tf 1.0000 1.0000 1.0000 Ns 40 Ni 1.0000 illum 2 d 0.85
newmtl Fleur Ka 1.0000 1.0000 1.0000 Kd 1.0000 1.0000 1.0000 Ks 1.0000 1.0000 1.0000 Tf 1.0000 1.0000 1.0000 Ns 800 Ni 0.1000 illum 7
newmtl Support Ns 128.0 Ka 1.000000 1.000000 1.000000 Kd 0.640000 0.640000 0.640000 Ks 0.500000 0.500000 0.500000 illum 2
My main problem is that I'm unable to get a good render inside sweethome3d => When I use only 1 light source with 3.0 diameter, the lamp is rendered correctly (with shadows and so on) but the room get nearly no light (light is filtered by the lamp part) => When I "cheat" by adding another light source of 46 diameter (same as lamp size), then the room is correctly lighted, but the render of the lamp is awfull as it receive light from outside
I tried using Tf 1.0 to not filter anything, then a low Ni to let the light get through the lamp, but no matter how I change the settings, the only visible result is when the "illum" parameter is changed; and the result differ but is still not good
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: Problems creating a light
Sweet Home 3D doesn't fully support OBJ format, and Tf is simply ignored in the current version. Anyway, I think the missing factor is light reflection, not light transmission. Your solution with a small light located within the light structure and one a outside seems a good trade-off. Using a smaller value lightSourceColor value for the small light source should be better though. You could also try to compute an image with some light reflection, using Advanced settings of photo rendering plug-in described here. Setting globalIllumination with path value gives different results with only one source light placed at the center of the lamp but it takes much longer to compute with some noisy results.
Double light source with default renderer setting
One light source with path value for globalIllumination and 1 as diffusedBounces
By the way, when you create a sh3f file from an other one like you probably did, you should at least remove or change its id found in the PluginFurnitureCatalog.properties file, otherwise it could mislead the auto update system in Sweet Home 3D with the updates of existing libraries.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator