|
Sweet Home 3D Forum » List all forums » » Forum: Sweet Home 3D bar » » » Thread: WTF ?!?! » » » » Post: Re: WTF ?!?! |
Print at Jan 13, 2026, 6:02:06 AM |
| Posted by okh at Feb 17, 2016, 5:42:55 PM |
|
Re: WTF ?!?! Tagging me is not possible, and would not help much anyway. Either I read, or I do not. The short version is: .mtl files or .obj files do NOT contain any lightsorce information. For that you need to access the SH3D specific properties, which are saved in the .sh3f file - let me scribble down the elements: As for .mtl it stands for material template library - start with something on the Wavefront specs e.g. in Wikipedia if you want to know more. But from your question, you really should not need to know much about .obj and .mtl - except perhaps that the .obj file defines the object and can have a reference to an .mtl file which contains the material properties that should be applied to surfaces. The .mtl file can again link to graphic files (.png .jpg etc) for textures to be applied to the same surfaces. But more important - Wavefront .obj/.mtl do not have properties for light etc. So to attach a light source (and some of the other properties) to an object, SH3D needs for them to be defined separately. Some of them can be edited with SH3D (like size). Some must be edited from a library collection. This is where the Furniture Library Editor and the .sh3f files come in. Check the download page to find the Furniture Library Editor. First you import the model in question in the FurnitureLibraryEditor (just dragging and dropping a compatible file will do nicely). Now you can add some more SH3D properties - like cut-out for walls and windows. When this file is saved (.sh3f), it contains a library consisting of the model(s) - and then one file in the top directory that is the catalogue if you like - PluginFurnitureCatalog.properties. To get to that, you need to dig into this file - for instance by following the procedure I described above (renaming .zip, extracting the file, etc etc) - so you can take the file out for editing. An example of what it could look like can be found in DefaultFurnitureCatalog.properties. There are obligatory and mandatory and optional properties for each object in the library. The full list is of properties can be found here. But the example file is just as useful for us mere mortals. As for the lightsources, yes they should be given all the light source properties - including their placement in the object (xyz), colour and diameter to work. Note that these properties are totally unforgiving. You place a comma wrong, an extra character or get the number wrong - SH3D (or the library) will not read the object. Look closely or post the properties before you throw your computer out the window. This exercise can, of course, be a bit frustrating for a non-techie like myself - but it is also not black magic. Some trying and failing (in my case, mostly the latter) will get you there in the end. Hope this did not add to much to the confusion. Best of luck, it is a lot of fun when it works. ok |
|
|
Current timezone is GMT Jan 13, 2026, 6:02:06 AM |