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: 9426
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
Joined: Mar 20, 2016
Post Count: 5
Status:
Offline
Re: Problems creating a light
Bonjour Emmanuel,
Tout d'abord un grand merci pour ton logiciel qui est juste génial ! Et merci beaucoup d'avoir pris le temps de me répondre Le rendu que tu obtiens avec ce plugin semble très proche de la réalité, je vais donc suivre ton conseil
Pour ce qui est des identifiants, je repars effectivement toujours de la même bibliothèque vide que j'édite pour chacun de mes modèles, sans savoir que cela poserait problème lors des mises à jours Ne sachant pas vraiment quels id sont dispos, si je supprime la ligne id comme tu le suggère, cela solutionnera le problème ?
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Problems creating a light
Dans ton cas, je pense que le mieux est de supprimer l'id en effet. Une bibliothèque sans id est ignorée du système de mise à jour.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator