confused Light properties

This topic has been viewed 3045 times and has 9 replies
Thread status: Active
Looking for a particular 3D model or texture? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
User avatar
bdfd
Posts: 2614
Joined: Sat Mar 29, 2014 7:17 am
Country: LILLE, Les Hauts de France, Western Europa

Light properties

Post by bdfd »

Hi,

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

[:-/]
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Light properties

Post by Puybaret »

The property is [font=courier new]lightSourceColor#...[/font], 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 creator
User avatar
bdfd
Posts: 2614
Joined: Sat Mar 29, 2014 7:17 am
Country: LILLE, Les Hauts de France, Western Europa

Re: Light properties

Post by bdfd »

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. [:D]

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

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

[:)]
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: Light properties

Post by okh »

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
User avatar
bdfd
Posts: 2614
Joined: Sat Mar 29, 2014 7:17 am
Country: LILLE, Les Hauts de France, Western Europa

Re: Light properties

Post by bdfd »

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 ?

[:D]
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Light properties

Post by Puybaret »

Use a zip utility to extract the [font=courier new]PluginFurnitureCatalog.properties[/font] file from a SH3F file and rezip it at the end, and a text editor to edit the [font=courier new]PluginFurnitureCatalog.properties[/font] file.
Emmanuel Puybaret, Sweet Home 3D creator
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: Light properties

Post by okh »

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:

Code: Select all

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

Code: Select all

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

Code: Select all

 lightSourceColor#xxx=#222222
ok
User avatar
bdfd
Posts: 2614
Joined: Sat Mar 29, 2014 7:17 am
Country: LILLE, Les Hauts de France, Western Europa

Re: Light properties

Post by bdfd »

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:

Code: Select all

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

Code: Select all

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

Code: Select all

 lightSourceColor#xxx=#222222
ok
TY okh.

Damned, a parameter only manually update. [:((]

Perhaps a adding to do in whislist section for next 5.8… [;)]
.
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: Light properties

Post by enkonyito »

@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
User avatar
bdfd
Posts: 2614
Joined: Sat Mar 29, 2014 7:17 am
Country: LILLE, Les Hauts de France, Western Europa

Re: Light properties

Post by bdfd »

@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"... [:D]

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

[;)]
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest