|
Sweet Home 3D Forum » List all forums » » Forum: Features use and tips » » » Thread: Help creating new object & light source from scratch |
|
| Print at Jan 30, 2026, 8:13:36 AM | |
| Posted by Wendell_Burke at Nov 5, 2024, 8:57:21 PM |
|
Help creating new object & light source from scratch Hello, I was hoping I could get some help with a problem. I’m trying to build a structural brace with an illuminated panel on either or both sides as an object. The brace has a light source built into the opening in its center. I’ve pretty much completed the brace itself, but now I need to add a light source to it. I don’t know whether you start on the lighting before you save the piece as an object, or after, and either way, I don’t understand how to create the light source. I’ve already read several different threads on creating a light source from scratch, including the mini-guide for Sweet Home 3D users Editing SVG and other advanced furniture properties, but I require a significantly more in-depth explanation of the process, as I just don’t understand what I’ve read so far. Do I need to make the object SVG? I don’t really understand the SVG path commands at all. I’m new to Sweet Home 3D and have no real programming background. I need to understand the whole process. Right now the space where the light should be is just an opening. I’ll try to attach some pictures of what I’m talking about, though the last post I tried to make wouldn’t let me add them. |
| Posted by Wendell_Burke at Nov 6, 2024, 4:50:41 PM |
|
Re: Help creating new object & light source from scratch Sorry, having trouble with the pics. Here's the brace I've made so far, and an example of what I'm trying to do. https://www.dropbox.com/scl/fi/l32eobgswe8pjc...&st=aejfqpot&dl=0 https://www.dropbox.com/scl/fi/c00s4rq4lffv4e...&st=bnlw73ld&dl=0 |
| Posted by Keet at Nov 6, 2024, 5:59:27 PM |
|
Re: Help creating new object & light source from scratch A lightsource is basically a material name of your model that you define as a lightSourceMaterialName using the Furniture Library Editor. How to do this: You created the shape with walls. That makes it very easy! Select rooms from the toolbar and double click in the open space between the walls. This will create a room (floor) that will become your light. Modify the room and switch of the ceiling checkbox. Export the floor and name it something like "light.obj". Edit the light.obj file and change the line "usemtl room_1_1" to "usemtl light". Save the obj file. Edit the light.mtl file that was created along the light.obj file. Change the line "newmtl room_1_1" to "newmtl light". Save the mtl file. Import the light.obj file. Create your brace object by finishing the brace and inserting the light object. You can still change the color of your light part. Export the brace+light. Use the Furniture Library Editor to create a new Furniture Library. (The FLE is a separate program from Sweet Home 3D.) Drag your brace object into the library window. A line with the object will be added to the model list. Double click the model and you will get a modify furniture dialog. On the bottom there is a list with all kind of special properties you can only add by using the a Furniture library. Scroll down until you see the item "lightSourceMaterialName". Set the value to "light" without the quotes. Save the library. In Sweet Home 3D import your library (menu furniture, Import furniture library). Your brace will appear in the top left catalog pane in Sweet Home 3D. Drag it into your 2D pane and when you modify the model it will now have a Light power setting on the bottom right. You will only see light when generating a photo with one of the two highest quality settings. You will probably need a power setting <5%. You can use a different name for 'light', just make sure you replace the same name in both the obj and mtl file and set that name for the lightSourceMaterialName in the Library Editor. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Wendell_Burke at Nov 8, 2024, 7:03:34 PM |
|
Re: Help creating new object & light source from scratch Hey, sorry it's been a minute. I jumped in headfirst to this program and found myself swimming in questions. Ok, so I Selected 'Create rooms' and put a floor in the opening of the brace. Question: Does it matter if the 'floor' reaches a little inside the brace form or does it have to end precisely on the line where the 'floor' and wall meet? Is there a way to smoothly curve the floor or do I have to just keep making more points until I make the curve manually? I started reading the process you laid out but I don't understand what you mean by, 'Modify the room and switch of the ceiling checkbox.' I right clicked, selected 'Modify Rooms', which brings up the menu. I see the sections for 'floor', 'ceiling', 'Wall sides around room', and 'wall sides baseboard', but I don't know what I'm supposed to do here? Clarification, please? |
| Posted by Keet at Nov 8, 2024, 7:40:11 PM |
|
Re: Help creating new object & light source from scratch Since you used walls to create the form of the brace you can just select the Create room function on the toolbar and double click in the open space of the brace walls. It will create the room completely filling the space. Modify the room: select the Select objects arrow on the toolbar and double-click the room. A room consists of two parts: the floor and the ceiling. For your purpose you only want the floor so uncheck the "Display ceiling" checkbox. (I'm not sure what dialog you got but the Modify Rooms dialog doesn't have a section for baseboards, that's a property of walls.) With the room now drawn you can continue with the process I described before. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Wendell_Burke at Nov 11, 2024, 6:39:43 AM |
|
Re: Help creating new object & light source from scratch So, I selected the floor and saved it as an object file. Then imported it into Blender, but I've never really used Blender before. I checked and made sure nothing was hidden, though since I saved the floor and not the object itself, I don't even know if anything would appear in Blender. I've been looking for where it might say, "usemtl room_1_1" but I can't find that either. I've been at it for a bit but I'm not sure what I'm still doing wrong? |
| Posted by Keet at Nov 11, 2024, 10:23:52 AM |
|
Re: Help creating new object & light source from scratch Don't edit in Blender. The .obj and .mtl files are plain text files you can edit with a simple plain text editor. In the manuals section on dodecagon.nl there's a manual about changing material names that explains the process in detail. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Wendell_Burke at Nov 11, 2024, 6:21:43 PM |
|
Re: Help creating new object & light source from scratch When you say, Edit the light.obj file and change the line "usemtl room_1_1" to "usemtl light", my Light object file says… # # Generated by Sweet Home 3D - Mon Nov 11 11:50:56 EST 2024 # http://www.sweethome3d.com/ # mtllib Light.mtl g room_1_1 usemtl room_1_1 v 1312.6152 0.0 276.20166 v 1306.3107 0.0 273.36084 v 1298.4929 0.0 274.36957 v 1292.1882 0.0 280.9264 v 1290.1708 0.0 291.26602 v 1297.2319 0.0 305.13626 v 1307.8237 0.0 327.07642 v 1321.9462 0.0 366.41742 v 1329.2595 0.0 391.63602 v 1337.3295 0.0 432.2379 v 1339.5991 0.0 457.45654 v 1341.8689 0.0 468.80487 v 1347.417 0.0 478.64014 v 1354.7303 0.0 484.44043 v 1366.583 0.0 489.48413 v 1570.6014 0.0 489.73633 v 1579.6802 0.0 488.97974 v 1585.2283 0.0 485.19696 v 1589.011 0.0 479.14453 v 1589.011 0.0 473.34424 v 1586.7413 0.0 466.28302 v 0.0 0.0 0.0 vn 1.0 0.0 0.0 vn 0.0 1.0 0.0 f 1//1 1//1 21//1 f 21//2 1//2 20//2 f 20//2 1//2 19//2 f 19//2 1//2 18//2 f 18//2 1//2 17//2 f 17//2 1//2 16//2 f 16//2 1//2 15//2 f 15//2 1//2 14//2 f 14//2 1//2 13//2 f 1//2 2//2 13//2 f 3//2 4//2 2//2 f 4//2 5//2 2//2 f 5//2 6//2 2//2 f 6//2 7//2 2//2 f 7//2 8//2 2//2 f 8//2 9//2 2//2 f 2//2 9//2 13//2 f 9//2 10//2 13//2 f 13//2 10//2 12//2 f 12//2 10//2 11//2 …So is “mtllib Light.mtl g room_1_1 usemtl room_1_1” …the entire line that needs to be replaced with "usemtl light", or are these considered two or three different ‘lines’? When you say, “Edit the light.mtl file that was created along the light.obj file. Change the line "newmtl room_1_1" to "newmtl light". Save the mtl file.”, my mtl file says… # # Generated by Sweet Home 3D - Mon Nov 11 11:50:56 EST 2024 # http://www.sweethome3d.com/ # newmtl room_1_1 illum 1 Ka 0.2 0.2 0.2 Kd 1.0 1.0 1.0 Ks 0.0 0.0 0.0 Ns 1.0 Ni 1 d 1.0 …So do I just replace “newmtl room_1_1” with "newmtl light", or do I need to delete “newmtl room_1_1 illum 1”? Also, “Create your brace object by finishing the brace and inserting the light object. You can still change the color of your light part. Export the brace+light” When I import the brace, I can’t see anything in the file and nothing shows up when I try to select it, but when I saved the file, I could see the rotating shape of the light in the file pic. So, is there no object there to manipulate or is there? Also, I’m still trying to get the furniture library set up. |
| Posted by Keet at Nov 11, 2024, 8:17:58 PM |
|
Re: Help creating new object & light source from scratch You should really read the manual I have on the dodecagon.nl How-To's&Manuals page: How-To Change Material Names. With that you can understand what happens when you change material names, even with multiple parts and materials. In short; in the obj file: change only the line usemtl room_1_1 into usemtl light in the mtl file: change only the line newmtl room_1_1 into newmtl light All the rest remains as is. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Wendell_Burke at Nov 11, 2024, 10:51:07 PM |
|
Re: Help creating new object & light source from scratch Apologies. I jumped into this program kind of quickly and have been trying to juggle a lot of different threads, articles, and web pages since. I forgot about you mentioning that article. I'll go bookmark that now and start on it. Thank you again for answering my last questions. I do appreciate it. |
| Posted by Keet at Nov 11, 2024, 11:23:54 PM |
|
Re: Help creating new object & light source from scratch Apologies. I jumped into this program kind of quickly and have been trying to juggle a lot of different threads, articles, and web pages since. I forgot about you mentioning that article. I'll go bookmark that now and start on it. Thank you again for answering my last questions. I do appreciate it. No need for apologies. You are trying to do some things that can be done in Sweet Home 3D but are not really for beginners. The manuals on Dodecagon are pdf files you can download, sometimes with an additional zip that contains an example project.---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Wendell_Burke at Nov 14, 2024, 11:28:55 PM |
|
Re: Help creating new object & light source from scratch Just wanted to update: I went back and have read a number of the instructional files on Dodecagon. I do understand a little better now. I followed your instructions and I feel like my file is ready for Java. I have build 1.8.0_431-b10, but unfortunately the Furniture Library Editor still won't open for me. I found this article and am considering if this might be the problem, but I'm not terribly tech savvy and am hesitant to start messing about with my computer on this level. I know you said you weren't that familiar with Windows. I'm going to do some more reading and see if I can figure this out. https://stackoverflow.com/questions/30699600/...th-in-windows-path-system |
| Posted by Keet at Nov 15, 2024, 11:30:32 AM |
|
Re: Help creating new object & light source from scratch Read this thread concerning the same problem: https://www.sweethome3d.com/support/forum/vie...ead,1550_offset,240#63913 That is a similar problem on Linux but it shows the path parameters in a start-up script. On windows you will probably need something like a bat/command file instead of the sh script file. Take note of the parameter Emmanuel proposed, that seems to work for some users. You will have to try and see if it works on Windows. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Wendell_Burke at Nov 15, 2024, 10:41:27 PM |
|
Re: Help creating new object & light source from scratch Thanks, I'll get started. |
| Posted by Wendell_Burke at Dec 1, 2024, 5:21:55 AM |
|
Re: Help creating new object & light source from scratch Ok, so I did finally manage to get the Furniture Library Editor to open, and went back to your list of instructions, but this did lead me to another question. The brace (The object the light will be mounted in) is 6" wide. I wanted to make the light panel so that it illuminated both sides of the opening in the frame. I wasn't sure if this would work automatically like most bulbs in a normal socket, or if I had to change something to make it directional? Also, I wanted the light itself to sit flush with the brace on both sides, which would imply that I just make it 6" wide also. Would this be the proper approach? I went ahead and experimented before writing this and I thought that the ceiling and floor checkboxes may have something to do with this since it seemed relevant when I was building the light shape to start. I made two different light shapes, one ceiling and one floor. I followed all the other instructions. When I had both lights set in place in the brace, exported them as an object, them imported them as furniture, then finally imported them into the Furniture Library Editor, I couldn't drag and drop the brace. I had to import it with the button in the menu, but then it did appear. The "lightSourceMaterialName" was in the menu under preferences, but when I tried to check the 'displayed' box, it wouldn't let me. I saved the item as a library and imported it into Sweet Home 3D, and it said it worked, but when the brace appeared in my file, it scaled way too large and out of the alignment I thought I'd set for it in the other files. I know I had scaled it much smaller (The same size as the old brace I was using), so I'm not sure what's going on there? It was very difficult to manipulate into size and position and I eventually called it off because these other issues where starting to pile up, as no light setting control appeared on the newly imported library/ file. I was as careful with all of this as I could be so I'm not sure where I went wrong? When you said, "You can use a different name for 'light', just make sure you replace the same name in both the obj and mtl file and set that name for the lightSourceMaterialName in the Library Editor." I understood this with the obj. and mtl. files, but did you mean that I should change 'lightSourceMaterialName' to the name of each light, or one light if that's all I need? That seemed to be the name of the option so I didn't change that yet, but I didn't think this was the reason for the other problems I'm having. I didn't even get to taking a higher res pic of it in place yet. |
| Posted by Keet at Dec 1, 2024, 10:58:16 AM |
|
Re: Help creating new object & light source from scratch I wasn't sure if this would work automatically like most bulbs in a normal socket, or if I had to change something to make it directional? Light will be emitted in the direction the face points to. In other words a face (side) will emit light to the side where you see a color or texture. Use the material name of each side to turn it into a light using the Library Editor lightSourceMaterialName property. A larger area will emit more light simply because there is a larger area to emit the light. Directing light is more difficult because you will have to create a housing that contains the light so it doesn't go where you don't want it, for example by putting an open cylinder around it. I don't think you need it with your panel.If you use a room to create your panel it already has all around outward pointing faces (top,bottom,sides), all with the single material name room_1_1. Just export (only) the room and import it again. Tilt it 90° and give it a color. You will see that all sides get the same color and that are the faces that will emit light if you set it in the Library Editor. Just make sure that your level elevation is >0 otherwise you end up with a floor that has a height 0 and only the top will be a face that can be colored/texured, i.e. can be set as light. On the other hand, that might be exactly what you want: just a single side that emits light. You can mirror a copy of the object for the other side of the gap in the brace. That's what I would do because it has the advantage that it renders faster and you can control the color and power setting for each side independently. I couldn't drag and drop the brace. I had to import it with the button in the menu, I have the same happening sometimes, I don't know why. Sometimes it helps to just save the library before adding more objects. That is the only reason I sometimes have to use the import button, otherwise I only use drag&drop. Try to drop in the empty area below or beside the columns.I saved the item as a library and imported it into Sweet Home 3D, and it said it worked, but when the brace appeared in my file, it scaled way too large and out of the alignment I thought I'd set for it in the other files. I know I had scaled it much smaller (The same size as the old brace I was using), so I'm not sure what's going on there? Maybe you mixed up mm and cm? I often create objects 10 or 100 times as big as they should be because the details are too small to edit in Sweet Home 3D. When you import it in the Library editor you can use the x10 or ÷10 to resize the object for usage in Sweet Home 3D without having to resize the actual object itself. You can see the values in the modify dialog when you click one of the buttons. You can also set a default elevation.When you said, "You can use a different name for 'light'... In the Library Editor you set the lightSourceMaterialName to the material name as it is in the obj/mtl files. Most existing light models use 'light' for the material name so you enter light as the value for the lightSourceMaterialName.But sometimes you want multiple parts of the same object to act as a light, parts that have a different material name. You can multiple material names as the value for lightSourceMaterialName. Add multiple material names separated with a space. Be aware that multiple material names from the the same object will use a single power setting to control them all. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Wendell_Burke at Dec 2, 2024, 3:36:59 AM |
|
Re: Help creating new object & light source from scratch I have the same happening sometimes, I don't know why. Sometimes it helps to just save the library before adding more objects. That is the only reason I sometimes have to use the import button, otherwise I only use drag&drop. Try to drop in the empty area below or beside the columns. Ok. That one wasn’t a biggie. I just mentioned it just in case it might have been someplace where I was doing something wrong and wanted to catch it. Maybe you mixed up mm and cm? I often create objects 10 or 100 times as big as they should be because the details are too small to edit in Sweet Home 3D. When you import it in the Library editor you can use the x10 or ÷10 to resize the object for usage in Sweet Home 3D without having to resize the actual object itself. You can see the values in the modify dialog when you click one of the buttons. You can also set a default elevation. Turns out I did in fact forget to change the measurements to what I’ve been working in. Ah! I was wondering what those numbers meant on the controls. I also usually work bigger, but I have a hard time sometimes with the axis and angles trying to get an object into correct alignment. In the Library Editor you set the lightSourceMaterialName to the material name as it is in the obj/mtl files. Most existing light models use 'light' for the material name so you enter light as the value for the lightSourceMaterialName. But sometimes you want multiple parts of the same object to act as a light, parts that have a different material name. You can multiple material names as the value for lightSourceMaterialName. Add multiple material names separated with a space. Be aware that multiple material names from the the same object will use a single power setting to control them all. I have been using my file name and font case the same in the obj. and mtl files and now also in the light source value area. Originally I thought I had to delete ‘lightSourceMaterialName’ and put the name of my light in its place, but I now understand it was the value location where that belongs. I’m not sure I understand about the multiple parts of the same object above? Are you addressing my question about wanting light panels on both sides of the brace? What do you mean by ‘material names’? The brace currently was imported as one piece (the brace with the light panel on the inside right). I would be perfectly fine if both lights on the brace had to be controlled together with one control. So, I did finally manage to find where the Furniture Library Editor was burying the brace in the upper left menu, after sifting through every category, so at least I got that. I managed to get the brace correctly scaled and in place. There's even a light % control visible, which I set to 5% after an earlier recommendation, but I'm having other issues at this point, though I am very grateful it's getting closer to what I've been after. I've included some pics for you to reference. So far, I've just replaced one of the old braces with this new lit one (gold colored). This is at the far right of the image 'Brace error 1'. I colored it, scaled it, got it in place and even got the light panel showing on the right hand side of the brace (See ‘Brace error 4’), and that's all great, but what I was going for was to have each panel of light FLUSH with the outer surface of the brace on BOTH sides so that it looks like the reference picture in 'Brace error 3', with light illuminating from each side of the opening in the brace. In 'Brace error 2', you can see the right hand side light panel is shining up against the wall. (I knew it would be lit against the wall and that's fine. It's part of the design.) I did check the Mirrored Shape box to have the same thing happen on the left side, but that just seemed to flip the brace around the wrong way. Also, that brace light against the wall was set for 5%. I'm happy with it being cool white light, but it looks really intense for 5%. So, I'd like to... 1. Get the light PANELS to appear on both sides of the brace so it doesn't look like just an empty space from the left side. 2. Have them both light up. 3. Get the light to shine at a much lower intensity, again, like the reference pic from the show. Other Questions: 1. Is there a way to change the type of light that’s emitting? I saw in the Light library that there’s a ‘Fireglow light source’ and it might be nice to try that. 2. Do you have a coffee account or something I can kick you a couple bucks for all the help you're providing me with? I think I would have given up by now, trying to work through this on my own. https://www.dropbox.com/scl/fo/48u4rxd53i3vw2...&st=cujlbb1c&dl=0 |
| Posted by Keet at Dec 2, 2024, 12:33:11 PM |
|
Re: Help creating new object & light source from scratch So, I did finally manage to find where the Furniture Library Editor was burying the brace in the upper left menu, after sifting through every category, so at least I got that. Where your object is in the catalog depends on the preference you have set in the Preferences dialog. Set it to "Searchable List".In the catalog pane (top left) select the category you have set as the category in the Furniture Library Editor. In the Library Editor also set a few key words that identify your objects. They can be used for searching. In the catalog search box you can type a (partial) name you have set for your object or (partial) tag names. This search is smart and fast! Even without selecting a category you can find objects very fast by typing multiple (partial) names with a space between them. It filters the list on your search criteria. So, I'd like to... Either use a floor with the thickness of the brace which will create a light panel where both sides are flush with the brace or use two panels, one for each side.1. Get the light PANELS to appear on both sides of the brace so it doesn't look like just an empty space from the left side. 2. Have them both light up. 3. Get the light to shine at a much lower intensity, again, like the reference pic from the show. 1. Is there a way to change the type of light that’s emitting? I saw in the Light library that there’s a ‘Fireglow light source’ and it might be nice to try that. With the panels you have you can set a different color to the panel which changes the light. Another trick is to create semi-transparent panels (non-light) with one of the light sources from the catalog between the panels but I don't think that is the right solution for your panels, you won't get a nice even spread light on the panel.2. Do you have a coffee account or something I can kick you a couple bucks for all the help you're providing me with? I think I would have given up by now, trying to work through this on my own. Thank you but there is no need for that, it's all freely offered, just like everything on my Dodecagon.nl site is completely free and open source.---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Wendell_Burke at Dec 2, 2024, 5:43:14 PM |
|
Re: Help creating new object & light source from scratch Where your object is in the catalog depends on the preference you have set in the Preferences dialog. Set it to "Searchable List". In the catalog pane (top left) select the category you have set as the category in the Furniture Library Editor. In the Library Editor also set a few key words that identify your objects. They can be used for searching. In the catalog search box you can type a (partial) name you have set for your object or (partial) tag names. This search is smart and fast! Even without selecting a category you can find objects very fast by typing multiple (partial) names with a space between them. It filters the list on your search criteria. Wow, ok, this is much better! Thanks! I'll check out the tags thing in the Furniture Library Editor shortly. I haven't used those at all yet. Either use a floor with the thickness of the brace which will create a light panel where both sides are flush with the brace or use two panels, one for each side. I'm in my file right now but I can't see any way to alter the thickness of a floor. It only has an area to change thickness for the optional baseboard, which I didn't want or need on the light. Under Preferences I see an option to change the new level floor thickness, but but that doesn't seem to be what I want. I'm trying to modify the floor in the initial stage where I first created it. I also tried modifying it after I exported, and then imported it back into the program, but at that point, it's part of the whole object and the brace was already set for 6" thickness. What am I doing wrong here? With the panels you have you can set a different color to the panel which changes the light. Another trick is to create semi-transparent panels (non-light) with one of the light sources from the catalog between the panels but I don't think that is the right solution for your panels, you won't get a nice even spread light on the panel. Wait, so if I made the color of those panels bright red, I'd get a red light? It makes the color and surface of the panel automatically translucent? When I've been working with the light panels, when I rotate them a certain way, when I get to the opposite side of them, they often disappear or turn invisible, so I assumed that whatever 'color' I assigned them was just replaced by whatever the program uses to represent illumination? Like the working colored surface of the panel was just sort of a placeholder. But you're saying it's automatically translucent and I can change the color of the light by changing the color of the panel? When I'm creating light panels or objects like this, I have no need of bulbs or setting up the lighting when I'm done? I mean it already seems to be the case but I'd like to verify. Thank you but there is no need for that, it's all freely offered, just like everything on my Dodecagon.nl site is completely free and open source. Well thank you. I get really frustrated sometimes trying to work all this out. |
| Posted by Keet at Dec 2, 2024, 6:21:40 PM |
|
Re: Help creating new object & light source from scratch I'm in my file right now but I can't see any way to alter the thickness of a floor. It only has an area to change thickness for the optional baseboard, which I didn't want or need on the light. Under Preferences I see an option to change the new level floor thickness, but but that doesn't seem to be what I want. I'm trying to modify the floor in the initial stage where I first created it. I also tried modifying it after I exported, and then imported it back into the program, but at that point, it's part of the whole object and the brace was already set for 6" thickness. What am I doing wrong here? You set the floor thickness on the level. Double click the level tab and you can set the floor thickness. If you don't see a level tab or can't set the floor thickness just add a level and set its elevation to a negative value. Now you can double click the level where your floor is and set the floor thickness. Export/import only your floor object. Now it has a thickness you can adjust to your 6".Wait, so if I made the color of those panels bright red, I'd get a red light? It makes the color and surface of the panel automatically translucent? When I've been working with the light panels, when I rotate them a certain way, when I get to the opposite side of them, they often disappear or turn invisible, so I assumed that whatever 'color' I assigned them was just replaced by whatever the program uses to represent illumination? Yes, you would get a red light. But it doesn't change transparency so it doesn't become translucent. Your panel was created with a room with floor thickness 0 which means it only has one face (side): the top. If you rotate it the other side is simply 'nothing'.When you export the floor with a thickness (set the level floor thickness before export) it will have 6 sides after import. All with the material name room_1_1. This means that you automatically have a light panel for both sides after you placed it in the brace. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Wendell_Burke at Dec 2, 2024, 8:05:53 PM |
|
Re: Help creating new object & light source from scratch You set the floor thickness on the level. Double click the level tab and you can set the floor thickness. If you don't see a level tab or can't set the floor thickness just add a level and set its elevation to a negative value. Now you can double click the level where your floor is and set the floor thickness. Export/import only your floor object. Now it has a thickness you can adjust to your 6". I'm sorry. I'm really trying, but I'm getting more confused. If I needed to modify this floor (light) at the beginning, does that mean I should go back and delete the obj. and mtl. files that I modified for the one that ended up being only 2 dimensional and just start building the light from scratch, entirely separately from the brace, and then when I'm done creating both, separate objects, I just insert the light into the brace in the final stage after importing them into my Sweet Home 3d room I'm building? Tell me if this is correct, please? 1. I create the brace out of walls. I create the floor that will become the light. 2.I export each separately as obj. files. 3. I text edit the floor (light) obj. and mtl. files. 4. I import the floor (light) obj. file into the Furniture Library editor & modify the light source. 5. I export the floor (light) file as a piece of finished furniture. 6. I import the brace into Sweet Home 3d as furniture. 7. I bring each piece (The floor (light), and the brace into the room that I'm working on. 8. I insert the floor (light) into the hole in the brace. I'm finished, and they remain two separate pieces of furniture, just one is placed inside the other? They aren't actually merged at any point in the construction? When I click on the floor, I right click to 'add level'. When I do this, the floor disappears and I can't see or grab it anymore. It's just gone like I deleted it. If I right click, 'add level at same elevation', It remains visible at least, but double clicking still doesn't give me any dimensions to modify. There's nowhere I can see that allows me to insert any value for floor thickness. There are no tabs visible anywhere. There is nowhere to set the elevation of the floor. |
| Posted by Keet at Dec 2, 2024, 9:05:55 PM |
|
Re: Help creating new object & light source from scratch Yes, you will have to recreate your light. Assuming you still have your original walls that is easy, even the existing floor will get a thickness when you set it in the level properties. You can export it again. Your floor 'disappears' because you are on a different level. Look at the tabs, the one highlighted is your current tab. If you click the correct tab you will see your floor, is has not disappeared. With a set floor thickness you can export it again and perform the same edits as before. Import it and insert it into your brace. Export the brace with the panels and import it in your Furniture Library. That is when you set the lightSourceMaterialName. To make it clear: the lightSourceMaterialName is a property that is only available through the Furniture Library. If you add only the panels to your Library you can use them as lights but not add them to the brace and expect an export to still have the panels as lights. The obj/mtl files have no place to hold the lightSourceMaterialName so it is lost. In other words: add the lightSourceMaterialName value when you have the complete brace with panels in your Library. So: create the panels (the floor) with a thickness, export, edit the material name, import, place it in the brace. Export both brace and panels together. Import the resulting object in a library where you set the lightSourceMaterialName. Import the library and you have a brace with light panels in your catalog. Technical explanation: When you drag an object from the catalog into your 2D pane the program knows when that object is part of a library and has the extra properties as set in the library, properties that are not available in an obj file. Once you export such an object it goes outside the program resulting in a normal obj file and has lost any extra properties that came from the library. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Wendell_Burke at Dec 2, 2024, 11:08:57 PM |
|
Re: Help creating new object & light source from scratch ...I cannot believe the fight this piece is putting up to be created. Ok, I finally see the level tabs you were talking about. I haven't really seen any traditional tabs in this program so far like other ones, so I didn't know where to looked for it and missed it. So take a look at this screen cap. https://www.dropbox.com/scl/fi/xpkypxel4kiioy...&st=qcnxwaqb&dl=0 I got level 0 to be visible by getting on that tab, but I'm totally locked out of the floor thickness option and I have no idea why? I don't know why it's at 4 3/4" or why the elevation is at 5 3/4". The brace and the light are supposed to be 6" thick...or deep. It gets confusing because when they're finally in position, they're meant to be standing upright. Also, do you see the three pieces in the far uper left? Three different brace files. These have been accumulating with each of my failed efforts and it makes things more and more confusing. How do I delete them entirely? I figure you'd say to delete the libraries for each, but I'm having a hard time finding them. |
| Posted by Keet at Dec 3, 2024, 12:20:15 AM |
|
Re: Help creating new object & light source from scratch You're struggling with several basic concepts of Sweet Home 3D because you are trying to create a piece of furniture with several advanced aspects before you went through the more sedate process of learning Sweet Home 3D. No problem, kudos for what you already have achieved! Concerning the levels you should read the manual available at the manual page on Dodecagon.nl. That explains what levels do and how they are related to heights and floor thicknesses. The initial dimensions you get for a new level come from values in your preferences. Check them and you will recognize the values as they appear when you add a level. You can change those initial values by double clicking the level tabs to get to the Modify level dialog. For your situation start with renaming your Level 0 where I assume you have your walls and room to "Brace". Rename your level 1 to level -1. Change that level with an elevation -100 and height 94. The actual numbers don't matter in this case, they are just to create space for the floor on your Brace level. If you read the levels manual you will remember "A floor extends downward below the set elevation", i.e. it "sinks" into the level below. (If you were to export the walls again the resulting object will be 6" higher because walls too sink into the lower level. The extra 6" are added to the bottom of the walls so the top of the walls remain where they are.) Double click your Brace level and set the elevation to 0 if it's not already 0. Because of the -1 level you should be able to set the floor thickness to 6". Assuming you already have the brace itself we will recreate the light panels. Export the room. (With a floor thickness set to 6" it should produce an object 6" thick.) Edit the obj file to set the material name 'light' like you did before. Import the object. It should be as thick as the floor thickness: 6". If not you can still change the thickness to 6". Place the panel in the brace and export both brace and panel together. Import and rotate/tilt/resize/set colors and export the finished brace-with-panel. Using the Furniture Library Editor open the library with the old brace and delete the existing brace. Import the new brace. Still in the Library Editor double click the new brace to get the object properties. Set the following properties: Name: Brace (This is the name you will see in the catalog pane) Description: Your Library Name (The Description is shown in the catalog tooltip when you hover over an object in the list, this helps to show in which library your object resides) Keywords: Brace Panel Light (these are keywords you can use in the search box of the catalog) Creator: YourCreatorName (The creator name will show in the tooltip like "created by YourCreatorName"). License: add a license if you want but you can leave it empty. Category: you can choose one of the existing categories but you can also type a new category name. This is useful if you create a library with multiple objects that belong together and you want them to show in a special category. If you have imported my Shapes library you will see that a new category "Shapes" is added to the category list. This is how I created it. Adjust the size with the buttons if necessary. Elevation: you can optionally set a default elevation. Of course it can always be changed in your Sweet Home 3D project. In the list set the value for lightSourceMaterialName to light (assuming you changed the material name "room_1_1" to "light") Save the changes, save the library. In Sweet Home 3D right click on the three 'wrong' braces. You will probably see a "delete" option with two of the three objects. Delete them. The third is the one from your library. You can only delete that one by importing your new library and choose "Replace" in the import dialog. The old one will disappear and the new one should show. That should be it. Try it and let us know how it worked out. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Wendell_Burke at Dec 3, 2024, 4:57:42 AM |
|
Re: Help creating new object & light source from scratch You're struggling with several basic concepts of Sweet Home 3D because you are trying to create a piece of furniture with several advanced aspects before you went through the more sedate process of learning Sweet Home 3D. No problem, kudos for what you already have achieved! Thank you. And yeah, that's fair. I have some previous experience on home design software and a background with graphic software like Adobe and I figured there would be a good deal of overlap there, but maybe not as much as I'd hoped. Anyway... Concerning the levels you should read the manual available at the manual page on Dodecagon.nl. You know, I thought I had read them all but I missed this one. I'm looking at it now. I followed the rest of your instructions, but I must have gotten something else wrong again. I was really careful too. It's pretty close, but there are some issues. After modifying the brace in the Furniture Library Editor, I saved it back to the same file name I had previously, so I saved over the file I imported into that program. I didn't think that would be a problem. The Brace came through with the light control and that was great. I even got is sized correctly, though at the last import, it still managed to come in laying down instead of being upright, which I thought I had already adjusted for, but apparently not. When I made the last import into my project in Sweet Home 3d, it was laying on the floor instead of standing upright, and the light was no longer colored the right color. It was just white. When I started rotating the brace upright, the light object (Remember I went with a single 6" thick light object instead of two different panels) from one side appeared to be gone. From the other side it looked correct. This was something I got wrong before but I thought I had corrected for that. Also, even though I build the light from the automatic floor control, it doesn't quite fit right into the frame. There's some overlap on one end and it causes this odd static looking distortion when I'm moving it or looking at it from different angles. Also, I think I jumped the gun on something. I selected the two brace files that were old but there was no way at all to delete them. I tried with the furniture library editor and I thought I had deleted their libraries, but those copies are still in the Sweet Home program and I don't know how to get them out of there. You can probably see them on the far left of a few of the pics I'm sending. At this point, my head is swimming. I'm going to take a break. Below is a new link with my latest files and pics. Maybe you could take a look and see if you can see where I went wrong again? My final combined obj. file is called 'Structural Brace & light'. https://www.dropbox.com/scl/fo/48u4rxd53i3vw2...&st=cs5d5n5m&dl=0 |
| Posted by Keet at Dec 3, 2024, 7:31:51 AM |
|
Re: Help creating new object & light source from scratch When I made the last import into my project in Sweet Home 3d, it was laying on the floor instead of standing upright, and the light was no longer colored the right color. It's actually quite simple. Only when you have the brace&panel correct you do your last export. This means, in the correct position, set the correct colors, and have it in the right size. Only then export it. Basically, you import & export until the last export is 100% correct. This last export is what you import into your library.Also, I think I jumped the gun on something. I selected the two brace files that were old but there was no way at all to delete them. I tried with the furniture library editor and I thought I had deleted their libraries, but those copies are still in the Sweet Home program and I don't know how to get them out of there. You can probably see them on the far left of a few of the pics I'm sending. Click Menu>Help>About. On the dialog there is a button "Libraries", click it.The dialog shows three lists, the top one shows all the libraries you have installed. You probably have one or more old libraries with the brace still installed. If so click that library, it should open a file manager in the Sweet Home 3D directory where the libraries are installed. Simply removing the library .sh3f file will remove the library. Restart Sweet Home 3D and they should be gone. If you put the .sh3d and .sh3f file on dropbox I can take a look at them and see where it went wrong. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Wendell_Burke at Dec 4, 2024, 1:54:36 AM |
|
Re: Help creating new object & light source from scratch Assuming you already have the brace itself we will recreate the light panels. Export the room. (With a floor thickness set to 6" it should produce an object 6" thick.) Edit the obj file to set the material name 'light' like you did before. Import the object. It should be as thick as the floor thickness: 6". If not you can still change the thickness to 6". Place the panel in the brace and export both brace and panel together. Import and rotate/tilt/resize/set colors and export the finished brace-with-panel. I had to go back to your previous reply. I'm trying to narrow down where it keeps going wrong for me. Yes, in my current working file, I have a brace, still made of walls so it's not an object yet. I exported the 1 piece light, changed both the obj. and mtl. files, though you only said to do the obj. file, but previously you said that they both have to be changed whenever I change something? Then to test it, imported it back into the file as furniture. Yes, at THIS point, it's 6" thick, which is great, though the preview of the piece shows it as being black or grey? I don't know why that is. When it's imported, the sides are the correct color but the top is white. I Placed the panel in the brace and exported both brace and panel together at a new obj. file. I imported it back into this work file as furniture to check it before I go to the Furniture Library Editor. When I brought it in, both the light and the brace were the color I selected for the brace. Also the light part inside was no longer 6" thick. It reverted to a thin sheet like before, but now it's brown. It appears these are now entirely the same merged object so I didn't bother going forward with the FLE. Not sure what I did wrong. |
| Posted by Keet at Dec 4, 2024, 9:35:19 AM |
|
Re: Help creating new object & light source from scratch I exported the 1 piece light, changed both the obj. and mtl. files, though you only said to do the obj. file, but previously you said that they both have to be changed whenever I change something? Again, knowledge you would have gained when you had started of a slower instead of diving directly into advanced topics There's another manual on dodecagon.nl that explains changing material names. Reading that manual will make it more clear what happens when you change material names and the relation between "usemtl" in the obj file and "newmtl" in the mtl file. Make sure you have the level elevations as mentioned in my previous post. The Brace Export the walls that are the Brace or export the brace you already have if it is correct. Check the obj and mtl files and change the material name to "Brace" if you hadn't done that yet. Import the Brace obj file and check that it now only has one material name: "Brace". If you exported the walls again you will now probably have an object that is 6" higher. Change the height to the desired height. (The walls are higher because of the added floor thickness.) Not many users know this but since the brace only has one material you could simply remove all lines starting with "g " and all lines starting with "usemtl " except the first one of each at the top. Actually, only the "usemtl " line is necessary in this case. The panel Export the room and change the material name in the obj and mtl file to "light". Import it and check that it's height is correct and adjust it if not. If the height is 0 you have not set the level elevations correctly. Combine Insert the panel in the brace. Export both together. Import and check that you have an object consisting of both the brace and the panel with two material names: "Brace" and "light". Change the colors to what you want, turn/tilt it to the correct position, and export. This is the final correct Brace that you import into the library. You can import it to check that everything it correct. Import the final object into the library and set the properties as mentioned in my previous post, especially the lightSourceMaterialName. Some of your remarks let me think that at some point you used an older version instead of your latest export. Sort your filemanager by date so the ones on top are your latest export. Makes it easier to avoid using old versions. Even better, if you are sure which is which, only keep the latest brace, panel, and combination and move the rest to a subdir 'old'. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Wendell_Burke at Dec 6, 2024, 7:17:48 AM |
|
Re: Help creating new object & light source from scratch Again, knowledge you would have gained when you had started of a slower instead of diving directly into advanced topics laughing There's another manual on dodecagon.nl that explains changing material names. Reading that manual will make it more clear what happens when you change material names and the relation between "usemtl" in the obj file and "newmtl" in the mtl file. Yeah, I understand I was too ambitious and impatient. I was being honest when I said that I'd read those files before. At 1st pass, they didn't make sense to me at all, and yes, I was trying to work through the exercises as well, but the downloaded files appeared as if the exercises had already been done. The files had already been altered correctly.). At 2nd, I started to understand, but I got stressed. That never helps me learn. Going back over them a 3rd and 4th time, they do make more sense to me now, but I still don't fully get them. As much as I appreciate the manuals being brief and to the point, lacking a broader understanding has caused me problems. I'd been experimenting, limiting the adjustments to making the object into a light, but that hadn't worked at the time. That said, it looks like I’ve finally done it correctly. The lamp on the far right, I just grabbed from the library so I had something to compare my Brace lights to. Everything else are my brace lights at 1%. I’d set them that low before and they weren’t showing up but it must have been something else. Also the picture taking app in SH3D choked trying to take this picture. I finally had to leave it go for a while and came back to found it had finally finished. https://www.dropbox.com/scl/fi/ppa8d3sh7z5hpi...&st=lydlg0y6&dl=0 There were a number of places that I suspect were contributing to the problems I was having. I think maybe a significant part of my problems stemmed from how I was organizing my files. I don’t understand how the files work together. When I bring an item into Furniture Library Editor, is the program only drawing on the data stored in the SH3F file? If I have the brace open in the FLE, should I then delete the existing obj. & mtl. Files for that very object, or does the FLE modify those automatically? When I would bring an object into a project in SH3D or the FLE, I thought that they were still drawing data from the obj, & mtl, files of the object So I wasn’t deleting them. I thought I had misunderstood instructions. I think I understand how the obj. and mtl. Files work with each other, and that I have to use the same object name between them, but can the file name be something different? Can I use ‘Structural Brace with Light’ as the file name, and eventually what it’ll be listed as in SH3D, if I use ‘light’ and ‘brace’ for the internal file purposes within those files? I started deleting older files as I went a while back to try to narrow down the problems. I decided to run a full search in 2 of my drives about an hour ago and found at least two additional locations I had started storing files (including libraries) that I’d forgotten about. I think this was also why I was having so much trouble deleting files with the Furniture Library Editor. Make sure you have the level elevations as mentioned in my previous post. I went to check this. At one point I did have the level elevations you suggested, but I may have started a new file and lost it at some point. I checked this round and made sure to set up the Levels correctly again, as you mentioned. Check the obj and mtl files and change the material name to "Brace" if you hadn't done that yet. Something else I don't understand even after reading those manuals. I named the FILE:'Structural Brace' In the obj. file for it one of the top lines says, 'mtllib Structural_Brace.mtl' This is just a tag to find it in the library, isn’t it? I cut and paste the file name into the obj. text when needed. I don't know if my not using any underscores was causing a problem? Anyway, it’s done. I did it. Correctly. Finally. Thank you again for your help with this. That said, I now have some more questions where I didn’t find the answers in the manuals, but I need to take a beat. This was kind of exhausting. |
| Posted by Keet at Dec 6, 2024, 10:35:24 AM |
|
Re: Help creating new object & light source from scratch Great that you have managed to get your brace as you wanted it! I named the FILE:'Structural Brace' In the obj. file for it one of the top lines says, 'mtllib Structural_Brace.mtl' This is just a tag to find it in the library, isn’t it? I cut and paste the file name into the obj. text when needed. I don't know if my not using any underscores was causing a problem? I think I understand how the obj. and mtl. Files work with each other, and that I have to use the same object name between them, but can the file name be something different? Can I use ‘Structural Brace with Light’ as the file name, and eventually what it’ll be listed as in SH3D, if I use ‘light’ and ‘brace’ for the internal file purposes within those files? In general try to avoid spaces in object names. Use an underscore or use camel casing (i.e. "CamelCasing") by leaving out the spaces.The line "mtllib ..." in the obj file is a reference to the .mtl file. The object importer looks for the material references on the "usemtl" lines in the mtl file as mentioned in the "mtllib" line. If it doesn't find the mtl file all materials will be reduced to a single material "default" with a grey color. Generally file names with spaces are handled graciously but it's better to avoid problems in the first place by simply not using spaces. And don't forget that all names are case-sensive in obj and mtl files. The actual name that shows in the catalog is the name you give in the Furniture Library and that can be anything you want. Your obj and mtl file could be named xyz.obj and xyz.mtl and in the Library you can name it "Structural Brace", that's what will show in the catalog. In short, you could name your brace object 'brace', your light 'light', and the combination 'brace_and_light'. Then in the Furniture Library you can set the name you want to show in the catalog in Sweet Home 3D. Getting a bunch of old file names can get confusing. I often use the name 'tmp' while developing a piece of furniture or part of it and keep overwriting it until I get something that 'deserves' its own name. Then I start the next part and start using the 'tmp' name again. This avoids having an endless stream of old files but you have to know what you are doing because you are overwriting previous exports. You could lose something you didn't want to lose. I don’t understand how the files work together. When I bring an item into Furniture Library Editor, is the program only drawing on the data stored in the SH3F file? When you import an object into a Furniture Library a copy is added to the Library zip file (the .sh3f file). You could delete the original obj file and the Library would still retain it. The same happens with your project file (.sh3d) files, that's also a zip file that contains a copy of the objects you added to your project. Essentially that's why it grows in size when you add furniture. Both the Library and your project file add extra's: the library extra properties like the lightSourceMaterialName and the project file adds things like object size, position, elevation, colors you changed, etc.You will have to develop your own system in how you manage all the different files. Here's what I do but every designer has his own way of organizing. I create all furniture in parts, mostly using the name 'tmp' to avoid file clutter. Only when a part is finished I give it a name and start the next part using the same method. Working with parts makes it easy to change material names, either by manual edit or in Blender. In most cases there are steps where a few parts are combined to create a sub-part. All sub parts together form the endresult. That endresult is exported with a final name. Usually there are several edits in obj and mtl files and I often export/import between Sweet Home 3D and Blender for specific edits. I use Blender mostly to easily optimize objects by combining groups into a single group and to smooth surfaces. (Smoothing is something Sweet Home 3D can't do. It's primarily a house and interior design application, not a 3D modelling application.) When the endresult is really finished I zip the obj and mtl files along with the textures used in the object. That zip I move to a subdirectory 'zip'. When I'm ready to add furniture to a library I import the zipped objects from the zip directory and set the additional properties in the Library. At the end of each day I zip the complete project directory I have been working in with yyyymmdd added in the zip file name and backup the zip to two different drives, one external. Then I update the original project file with a new version number. (My project files are al named like 'ProjectFileName-v0.0.sh3d'. This method avoids having a bunch of project file copies in my working directory while I still have the old ones as backups if I ever need them. For any other questions not related to the Brace and Light start a new thread. Good Luck! ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
|
|
Current timezone is GMT Jan 30, 2026, 8:13:36 AM |