Print at Dec 18, 2025, 7:30:22 AM

Posted by Keet at Nov 13, 2023, 2:07:16 PM
Re: Move light power setting from object to property
You wouldn't need a new dialog box. A power setting could be added below the Shininess slider and only visible if it's a lightSourceMaterial.
A power setting on the property is more logical since the power works on that property and not on the complete object.

I did look at the traffic lights since it's one of the few models wich would benefit from multiple power settings. Did you look at the properties it uses? Textures for the lights and you can only make them invisible to have one light remaining on. And that doesn't even take into account that they are still not real lights. I could fix the traffic light.
I did find an alternative method for a led clock but that wouldn't work for my elevator cabin where I have different lights that have to be set individually (buttons, up/down arrows, ceiling lights).

For those interested in how to create a 'real' led number:
• Create the segments of the led number.
• Group and export as "SegmentsOff.obj, import, and rotate to vertical if necessary.
• Export, import as "Door or window".
• Place a wall the size of the frame you want and place the imported 'window' in the wall. Export ony the wall and import after changing the material name to "Front". This is the front frame for the number with cutouts for the led segments.
• Copy the "SegmentsOff.obj" and "SegmentOff.mtl" to "SegmentsOn" files.
• Edit the SegmentsOn files and change the color properties to a single material name, for example "On". Add "d 0.8" for transparency. Don't forget to change "mtllib SegmentsOff.mtl" to "mtllib SegmentsOn.mtl".
• Edit the SegmentsOff object file so each segment has its own material name. For example SegmentAOff, SegmentBOff, etc.
• Import both the On and Off segments. Adjust the tickness if necessary to the same as the background object and place both in the background so they fit exactly in the cutouts. I used 2 for the frame and the Off segments and 1 for the On segments. The On segments are place "inside" the Off segments so they are really invisible when the Off segment is visible.
• Change the colors if you want to. Usually you use a very dark version of the light color for the color of an Off segment.
You now have two segment objects occupying the same space in the background.
• Place a lightpanel at the back of the LedNumber object. Place a border around and a solid background behind the lightpanel so that the lightpanel is enclosed in a box. (For this I used the lightpanel by eTeks.)
• Export everything as "LedLightNumber" and import. (Optionally change the material names for the border and back enclosure.)
• Use the Furniture Library Editor to create a new library or use a library you already have.
• Import your LedLightNumber object, set the category to Light Sources", set other properties like key words, save, and close the library.
• Open the furniture library sh3f file with a zip program. Edit the "PluginFurnitureCatalog.properties" file. At the bottom you should see your added LedNumber.
• Add "lightSourceMaterialName#1=light" to the block for the LedNumber. Make sure '#1' is changed to the correct number for that block. Save and make sure the file is updated in the sh3f zip file.
• Import the library in Sweet Home 3D
• Find and drag the LedNumber into your project. Use Modify Furniture to make some Off segments invisible to get the number you want. Set the light power to 2%.

If you want to create a single-object clock with multiple digits you have to create copies of the number and change the material names so you can set the off segments for each number separately.

This is how it looks: https://www.mediafire.com/view/u2eijuc5i06cgkn/LedClock.png/file
and here is the Furniture Library: https://www.mediafire.com/file/398nxp59l2iiect/DodecagonLeds.sh3f/file
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects