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 64586 times and has 32 replies Next Thread
enkonyito
Advanced Member




Joined: May 28, 2015
Post Count: 607
Status: Offline
Reply to this Post  Reply with Quote 
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
[Jan 17, 2023, 8:37:38 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
YGYL
Advanced Member
Member's Avatar


Joined: Feb 5, 2013
Post Count: 154
Status: Offline
Reply to this Post  Reply with Quote 
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)
[Feb 23, 2023, 7:28: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 
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

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 ?

#
# Generated by Sweet Home 3D - Sat Nov 25 00:26:22 CET 2023
# http://www.sweethome3d.com/
#

newmtl bottom
illum 2
Ka 0.4 0.4 0.4
Kd 1.0 1.0 1.0
Ks 1.0 1.0 1.0
Ns 128.0

newmtl top
illum 2
Ka 0.4 0.4 0.4
Kd 1.0 1.0 1.0
Ks 0.3 0.3 0.3
Ns 60.0

newmtl left
illum 2
Ka 0.4 0.4 0.4
Kd 1.0 1.0 1.0
Ks 0.3 0.3 0.3
Ns 60.0

newmtl right
illum 2
Ka 0.4 0.4 0.4
Kd 1.0 1.0 1.0
Ks 0.3 0.3 0.3
Ns 60.0

newmtl back
illum 2
Ka 0.85882354 0.85882354 0.85882354
Kd 0.85882354 0.85882354 0.85882354
Ks 0.46875 0.46875 0.46875
Ns 60.0

newmtl front
illum 2
Ka 0.4 0.4 0.4
Kd 1.0 1.0 1.0
Ks 0.3 0.3 0.3
Ns 60.0

[Nov 24, 2023, 11:31:39 PM] 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: 1361
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.
----------------------------------------
Dodecagon.nl
1000+ 3D models, manuals, and projects
----------------------------------------
[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: 1361
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.
----------------------------------------
Dodecagon.nl
1000+ 3D models, manuals, and projects
[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 2024 Space Mushrooms - All rights reserved