Re: Sweet Home 3D 7.0

by enkonyito » Fri Jan 13, 2023 12:50 am

I had updated these light libraries to be compatible with the new version of Sweet Home 3D based on the provided library LightShapes.sh3f.

While doing some tests recently, I discovered an intriguing operation.

When I create a new file and save it with my new lights, the model material is [font=courier new]light[/font] and the object emits light in the default photo panel.
When I close this file and open it again, the model material is [font=courier new]default[/font] and the object does not emit any light in the default photo panel although its power is > 0.

Here is the information contained in the Home.xml file after saving the project:

Code: Select all

<light id='light-1422e91d-a799-41fe-ad90-dc46b39de09e' catalogId='EnkoNyito#opaquePanel' name='Opaque panel' creator='Enko Nyito' model='1' icon='0' x=' 25.0' y='0.05' elevation='10.0' width='50.0' depth='0.1' height='100.0' modelSize='342' description='permanent_TriangleMeshLight type' dropOnTopElevation='-0.01' power='0.05'>
     <lightSourceMaterial name='light'/>
   </light>
With lights from the LightShapes.sh3f library, the model material is [font=courier new]light[/font] and the object emits light in the default photo panel after reopening a project.
Its Home.xml file contains this information:

Code: Select all

<light id='light-35ed9266-e2f8-4413-b267-4e2b292bf9bc' catalogId='Puybaret#lightPanel' name='Light panel' creator='Emmanuel Puybaret' model='1/lightPanel.obj' icon='0 ' x='25.0' y='0.0' elevation='10.0' pitch='1.5707964' width='50.0' depth='100.0' depthInPlan='0.0010043712' height='0.001' heightInPlan='100.0' modelSize='1096 'dropOnTopElevation='-999.99994' power='0.05'>
     <lightSourceMaterial name='light'/>
   </light>