Download

Online

Gallery

Blog

  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: 10
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1909 times and has 9 replies Next Thread
bdfd
Advanced Member
Member's Avatar

Western Europa
Joined: Mar 29, 2014
Post Count: 2614
Status: Offline
Reply to this Post  Reply with Quote 
confused Light properties

Hi,

who knows the name of the property to fix the brightness of a light source in the properties file named 'pluginFurnitureCatalog.properties' ?

confused
----------------------------------------
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K
[Jun 2, 2018, 12:18:14 PM] 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: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Light properties

The property is lightSourceColor#..., fully black matching no light, and white #FFFFFF matching a white light at full power.
See DefaultFurnitureCatalog.properties for examples.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jun 3, 2018, 12:40:22 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
bdfd
Advanced Member
Member's Avatar

Western Europa
Joined: Mar 29, 2014
Post Count: 2614
Status: Offline
Reply to this Post  Reply with Quote 
Re: Light properties

Thank your for your return.

My ask has been not understand perhaps by using bad words, I wanted to say the power of lightsource (0 to 100%) and not the color. biggrin

I want to change the default value (50%) to 5% (for example).

but… I didn't see this in given file.

smile
----------------------------------------
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K
[Jun 3, 2018, 8:19:12 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
okh
Advanced Member




Joined: May 12, 2013
Post Count: 1545
Status: Offline
Reply to this Post  Reply with Quote 
Re: Light properties

You can find all the properties in DefaultFurnitureCatalog.PropertyKey.html.

You will, as indicated by Puybaret, need to adjust RGB down in sync. The power is, however, saved in Home.xml, as that reflects the adjustment made by the user in the design.

ok
[Jun 3, 2018, 7:11:16 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
bdfd
Advanced Member
Member's Avatar

Western Europa
Joined: Mar 29, 2014
Post Count: 2614
Status: Offline
Reply to this Post  Reply with Quote 
Re: Light properties

You can find all the properties in DefaultFurnitureCatalog.PropertyKey.html.
...
The power is, however, saved in Home.xml, as that reflects the adjustment made by the user in the design.
ok
Hi,

Great !
Do you know how to update this data in a sh3f file ?

biggrin
----------------------------------------
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K
[Jun 4, 2018, 6:19:30 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: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Light properties

Use a zip utility to extract the PluginFurnitureCatalog.properties file from a SH3F file and rezip it at the end, and a text editor to edit the PluginFurnitureCatalog.properties file.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jun 4, 2018, 11:36:48 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
okh
Advanced Member




Joined: May 12, 2013
Post Count: 1545
Status: Offline
Reply to this Post  Reply with Quote 
Re: Light properties

Do you know how to update this data in a sh3f file ?
Sorry if I was unclear. There is no power setting in .sh3f/PluginFurnitureCatalog.properties (only in .sh3d/Home.xml). In .sh3f/PluginFurnitureCatalog.properties you can use the html (six digit hex) colour notation:

a very bright white light would be:
lightSourceColor#xxx=#FFFFFF

a 'normal sh3d white' lightsource is (if I remember):
lightSourceColor#xxx=#BBBBBB

a much less bright 'white' light would be:
lightSourceColor#xxx=#222222

ok
[Jun 4, 2018, 11:51:52 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
bdfd
Advanced Member
Member's Avatar

Western Europa
Joined: Mar 29, 2014
Post Count: 2614
Status: Offline
Reply to this Post  Reply with Quote 
Re: Light properties

Do you know how to update this data in a sh3f file ?
Sorry if I was unclear. There is no power setting in .sh3f/PluginFurnitureCatalog.properties (only in .sh3d/Home.xml). In .sh3f/PluginFurnitureCatalog.properties you can use the html (six digit hex) colour notation:

a very bright white light would be:
lightSourceColor#xxx=#FFFFFF

a 'normal sh3d white' lightsource is (if I remember):
lightSourceColor#xxx=#BBBBBB

a much less bright 'white' light would be:
lightSourceColor#xxx=#222222

ok
TY okh.

Damned, a parameter only manually update. crying

Perhaps a adding to do in whislist section for next 5.8… wink
.
----------------------------------------
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K
[Jun 4, 2018, 12:51:00 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
enkonyito
Advanced Member
Member's Avatar


Joined: May 28, 2015
Post Count: 601
Status: Offline
Reply to this Post  Reply with Quote 
Re: Light properties

@bdfd
I want to change the default value (50%) to 5% (for example).
This is possible in a derived version of SH3D by modifying line 53 of the HomeLight.java file.
----------------------------------------
EnkoNyito
[Jun 5, 2018, 12:03:47 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
bdfd
Advanced Member
Member's Avatar

Western Europa
Joined: Mar 29, 2014
Post Count: 2614
Status: Offline
Reply to this Post  Reply with Quote 
Re: Light properties

@bdfd
I want to change the default value (50%) to 5% (for example).
This is possible in a derived version of SH3D by modifying line 53 of the HomeLight.java file.
TY enkonyito.

But I don't like this because it's "all or nothing"... biggrin

I explain : I want to update ONE object in a sh3f not all objects of same type in SH3D.

wink
----------------------------------------
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K
----------------------------------------
[Edit 1 times, last edit by Puybaret at Jun 6, 2018, 11:31:07 AM]
[Jun 5, 2018, 6:15:15 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 2006-2024 eTeks - All rights reserved