Re: Move light power setting from object to property

by Keet » Fri Jul 12, 2024 10:39 am

You can already have more than one material listed in the [font=courier new]lightSourceMaterialName#[/font] property. Just separe them with one or more spaces.
I didn't know that. That will solve the problem in some cases where lightsources need different colors. They will still be controlled with a single power setting but tweaking with more or less transparency of a panel in front of the lightsource can solve that in some situations.
Then, sorry, but adding a light power setting to the Material modification dialog box is weird too, even if it wouldn't be too difficult to program.
I don't understand why that is weird. It's a property of the material so the only logical location is in the modify material dialogue. I always thought that the current location is weird. Its current location suggests that it is a property of the object while it's a material property. The fact that you can list multiple material names clearly proves that.

I know that adding to the dialog is easy. The storage in the [font=courier new]pluginFurnitureCatalog.properties[/font] file is already supported. Adding a similar property [font=courier new]lightSourceMaterialPower#[/font] adds the option to preset the power settings. Without that property line all default to 50%, so backward compatibility solved too. Storage in the Home.xml file is also easy (see my first post in this thread).

As a developer I have made wrong design decisions too but I always redesign and refactor them, hopefully before a client comes with a request that needs the change anyway. I do understand your reluctance to change this, I just keep hoping you get over the 'weird' issue since technically I see no real problem [:)]
The biggest problem is time and priorities, now those I understand VERY well!