Creating Lights

This topic has been viewed 2724 times and has 5 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
User avatar
silvercat17
Posts: 24
Joined: Wed Aug 11, 2021 9:29 am

Creating Lights

Post by silvercat17 »

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.

Image

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
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Creating Lights

Post by Puybaret »

The brightness is set by the color, #FFFFFF being the maximum value.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
silvercat17
Posts: 24
Joined: Wed Aug 11, 2021 9:29 am

Re: Creating Lights

Post by silvercat17 »

Thanks, that's what I figured after thinking about it. Any tips on getting the light placed in the lamp?
User avatar
silvercat17
Posts: 24
Joined: Wed Aug 11, 2021 9:29 am

Re: Creating Lights

Post by silvercat17 »

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.
User avatar
silvercat17
Posts: 24
Joined: Wed Aug 11, 2021 9:29 am

Re: Creating Lights

Post by silvercat17 »

Proof

Image

And you have to make the light color WAY darker than you'd think.

Image

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
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Creating Lights

Post by Puybaret »

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
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest