Sweet Home 3D Forum
No member browsing this thread
Thread Status: Active
Total posts in this thread: 6
silvercat17
Member
Joined: Aug 11, 2021
Post Count: 24
Status:
Offline
Creating Lights
I'm working on making a light, but I'm not sure how to figure out what the light source x and y should be or how to change the brightness, aside from the percentage in SH. Here's how it looks right now - the light doesn't seem centered behind the lamp. And here's my settings from PluginFurnitureCatalog.properties name#1=Star Sconce category#1=Lights icon#1=/Star Sconce.png model#1=/Star Sconce/star%20sconce.obj multiPartModel#1=true width#1=20.32 depth#1=7.1602 height#1=19.33216 movable#1=true doorOrWindow#1=false lightSourceX#1=7.33333 lightSourceY#1=7.33333 lightSourceZ#1=0 lightSourceColor#1=#FFF6CA lightSourceDiameter#1=15 elevation#1=121.92 modelSize#1=7098412
[Aug 14, 2021, 1:19:31 AM]
[Link]
Puybaret
Expert
France
Joined: Nov 7, 2005
Post Count: 9423
Status:
Offline
Re: Creating Lights
The brightness is set by the color, #FFFFFF being the maximum value.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Aug 14, 2021, 5:06:58 PM]
[Link]
silvercat17
Member
Joined: Aug 11, 2021
Post Count: 24
Status:
Offline
Re: Creating Lights
Thanks, that's what I figured after thinking about it. Any tips on getting the light placed in the lamp?
[Aug 14, 2021, 10:18:22 PM]
[Link]
silvercat17
Member
Joined: Aug 11, 2021
Post Count: 24
Status:
Offline
Re: Creating Lights
If somebody needs this in the future, here's the answer, which should have been obvious to me. To center it: make the LightSourcex/y/z half of the relevant dimension of the object.
[Aug 17, 2021, 1:41:10 AM]
[Link]
silvercat17
Member
Joined: Aug 11, 2021
Post Count: 24
Status:
Offline
Re: Creating Lights
Proof And you have to make the light color WAY darker than you'd think. Changing the color of the object doesn't affect the light color, but adding a texture may make weird black bars The final settings: name#1=Star Sconce category#1=Lights icon#1=/Star Sconce.png model#1=/Star Sconce/star%20sconce.obj multiPartModel#1=true width#1=20.32 depth#1=7.1602 height#1=19.33216 movable#1=true doorOrWindow#1=false lightSourceX#1=10.16 lightSourceY#1=3.5801 lightSourceZ#1=9.66608 lightSourceColor#1=#2b290b lightSourceDiameter#1=1 elevation#1=121.92 modelSize#1=7098412
[Aug 17, 2021, 2:12:04 AM]
[Link]
Puybaret
Expert
France
Joined: Nov 7, 2005
Post Count: 9423
Status:
Offline
Re: Creating Lights
Great you found out by yourself If you need to put the light source at another location that the center, please see this post .
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Aug 17, 2021, 9:12:14 AM]
[Link]