Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 6
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2278 times and has 5 replies Next Thread
silvercat17
Member
Member's Avatar


Joined: Aug 11, 2021
Post Count: 24
Status: Offline
Reply to this Post  Reply with Quote 
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] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9423
Status: Offline
Reply to this Post  Reply with Quote 
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] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
silvercat17
Member
Member's Avatar


Joined: Aug 11, 2021
Post Count: 24
Status: Offline
Reply to this Post  Reply with Quote 
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] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
silvercat17
Member
Member's Avatar


Joined: Aug 11, 2021
Post Count: 24
Status: Offline
Reply to this Post  Reply with Quote 
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] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
silvercat17
Member
Member's Avatar


Joined: Aug 11, 2021
Post Count: 24
Status: Offline
Reply to this Post  Reply with Quote 
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] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9423
Status: Offline
Reply to this Post  Reply with Quote 
Re: Creating Lights

Great you found out by yourself smile
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] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved