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: 33
Posts: 33   Pages: 4   [ Previous Page | 1 2 3 4 ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 49304 times and has 32 replies Next Thread
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 752
Status: Offline
Reply to this Post  Reply with Quote 
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 smile


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.
----------------------------------------
[Edit 1 times, last edit by Keet at Nov 25, 2023, 8:02:38 AM]
[Nov 25, 2023, 7:58:45 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Tutmozis
Newbie



Serbia
Joined: Nov 15, 2023
Post Count: 17
Status: Offline
Reply to this Post  Reply with Quote 
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.


Thanks for answer.

Yes I do that, but want to know where is the home.xml and how to do it :)
[Nov 25, 2023, 9:15:19 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 752
Status: Offline
Reply to this Post  Reply with Quote 
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:
<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>

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.
[Nov 25, 2023, 10:22: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 
Posts: 33   Pages: 4   [ Previous Page | 1 2 3 4 ]
[ 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