Print at Jan 30, 2026, 12:34:18 AM

Posted by Keet at Nov 6, 2024, 5:59:27 PM
Re: Help creating new object & light source from scratch
A lightsource is basically a material name of your model that you define as a lightSourceMaterialName using the Furniture Library Editor.

How to do this:
You created the shape with walls. That makes it very easy! Select rooms from the toolbar and double click in the open space between the walls. This will create a room (floor) that will become your light. Modify the room and switch of the ceiling checkbox.
Export the floor and name it something like "light.obj".
Edit the light.obj file and change the line "usemtl room_1_1" to "usemtl light". Save the obj file.
Edit the light.mtl file that was created along the light.obj file.
Change the line "newmtl room_1_1" to "newmtl light". Save the mtl file.
Import the light.obj file.
Create your brace object by finishing the brace and inserting the light object. You can still change the color of your light part. Export the brace+light.

Use the Furniture Library Editor to create a new Furniture Library. (The FLE is a separate program from Sweet Home 3D.)
Drag your brace object into the library window. A line with the object will be added to the model list.
Double click the model and you will get a modify furniture dialog. On the bottom there is a list with all kind of special properties you can only add by using the a Furniture library. Scroll down until you see the item "lightSourceMaterialName". Set the value to "light" without the quotes.
Save the library. In Sweet Home 3D import your library (menu furniture, Import furniture library). Your brace will appear in the top left catalog pane in Sweet Home 3D.
Drag it into your 2D pane and when you modify the model it will now have a Light power setting on the bottom right. You will only see light when generating a photo with one of the two highest quality settings. You will probably need a power setting <5%.

You can use a different name for 'light', just make sure you replace the same name in both the obj and mtl file and set that name for the lightSourceMaterialName in the Library Editor.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects