Joined: May 28, 2015
Post Count: 607
Status:
Offline
Re: Sweet Home 3D 7.0
Indeed, for the material to be properly taken into account when reopening SH3D-7.0, the multiPartModel# property must be true and the OBJ and MTL files of the light must be in a separate folder from the PluginFurnitureCatalog.properties file.
----------------------------------------
EnkoNyito
Joined: Feb 5, 2013
Post Count: 154
Status:
Offline
Re: Sweet Home 3D 7.0
The lightSourceMaterialName# property was added to PluginFurnitureCatalog.properties of SH3F furniture libraries to define the material(s) of shapes which should be used in a 3D model as light sources at the two best quality rendering levels, for example to define a light panel or a ceiling mini spot with a thin light surface.
Can you add a function to specify the brightness of this light-emitting material (recommended brightness). It can also be turned on or off by default. Avoid a light fixture made with this method, too bright or rendering too slow (crystal lights can be turned off directly)
Serbia
Joined: Nov 15, 2023
Post Count: 17
Status:
Offline
Re: Sweet Home 3D 7.0
What didn’t you understand in the description and the examples given in the first post of this thread?
Well, we are confused as newbies where to put that... at objects .mtl ? I would like my simple box what I use as ceiling to shine if possible... where to put that light command ?
Netherlands
Joined: Apr 8, 2022
Post Count: 1361
Status:
Offline
Re: Sweet Home 3D 7.0
Why not add a lightpanel to the ceiling instead of the box (or to cover the bottom of the box)? That would be the easiest way.
If you really want to change a box into a light you don't change anything in the .obj or .mtl files. Their formats don't support properties for lights. If you look a few posts back (enkoyito Jan 13, 2023, 1:50:22 AM) you see that the specific properties that make an object a light are in the Home.xml file. The Home.xml file is a file in the .sh3d zip file.
You can edit the Home.xml file but the correct way would be to add a box to a Furniture Library and set the properties for a light. After import of the Library the properties for a light will be taken from the PluginFurnitureCatelog.properties file in the Library so you can reuse the light box where ever you want.
But... you have essentially created another lightpanel, so why not use that in the first place? No need to reinvent the wheel By-the-way 1: The latest version is 7.2, not 7.0. By-the-way 2: You should have created a new thread for this question. If needed you could reference to this thread or even the post. With a new thread the essence (Q&A) of the post (lights) will be easier to find for other users.
---------------------------------------- Dodecagon.nl 1000+ 3D models, manuals, and projects
----------------------------------------
[Edit 1 times,
last edit by Keet at Nov 25, 2023, 8:02:38 AM]
Netherlands
Joined: Apr 8, 2022
Post Count: 1361
Status:
Offline
Re: Sweet Home 3D 7.0
Your .sh3d file is a zipped archive and the Home.xml file is one of the files in it. You can unzip the .sh3d file and edit the Home.xml file and then zip it again and rename .zip to .sh3d.
Find your box in the Home.xml file, change "<pieceOfFurniture" at the start to "<light", and add the "power=" and "<lightSourceMaterial" parts. The name you use for the lightSourceMaterial is the material name you have for your box. As I said before, it's better to go through a Furniture Library to avoid having to edit the Home.xml file. It could corrupt your whole project.
---------------------------------------- Dodecagon.nl 1000+ 3D models, manuals, and projects