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 [:)]
[hr]
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.
Sweet Home 3D 7.0
This topic has been viewed 123208 times and has 32 replies
Re: Sweet Home 3D 7.0
Dodecagon.nl
1300+ 3D models, manuals, and projects
1300+ 3D models, manuals, and projects
Re: Sweet Home 3D 7.0
Thanks for answer.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.
Yes I do that, but want to know where is the home.xml and how to do it
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.
A light looks like this:
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.
A light looks like this:
Code: Select all
<light id='light-35ed9266-e2f8-4413-b267-4e2b292bf9bc' catalogId='Puybaret#lightPanel' name='Light panel' creator='Emmanuel Puybaret' model='1/lightPanel.obj' icon='0 ' x='25.0' y='0.0' elevation='10.0' pitch='1.5707964' width='50.0' depth='100.0' depthInPlan='0.0010043712' height='0.001' heightInPlan='100.0' modelSize='1096 'dropOnTopElevation='-999.99994' power='0.05'>
<lightSourceMaterial name='light'/>
</light>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
1300+ 3D models, manuals, and projects
1300+ 3D models, manuals, and projects
Who is online
Users browsing this forum: No registered users and 1 guest