|
Sweet Home 3D Forum » List all forums » » Forum: Wishlist » » » Thread: Export OBJ without floor |
|
| Print at Jan 14, 2026, 5:43:09 PM | |
| Posted by hansmex at Feb 15, 2010, 5:17:40 PM |
|
Export OBJ without floor Emmanuel: Is it possible to add a (small?) feature? When exporting a model with walls, SH3D automatically includes the floor. Is it possible to add a check box in the export window so that the floor is not included? The advantages are: - Avoid "floor collisions" when importing a model with a floor. (see example) - It would make it easier to build models consisting of more than one floor. - It would make it easier to build custom furniture using SH3D (which probably many people do). Hans ---------------------------------------- ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by Puybaret at Feb 22, 2010, 11:40:44 PM |
|
Re: Export OBJ without floor Reading version history again, I see that I programed Export to OBJ (version 1.4) before room's floor (version 1.5). Then, as users can now create surfaces at floor level in Sweet Home 3D, I would suggest to simply remove this automatically computed floor in export to OBJ, instead of adding an option. What do you think? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by hansmex at Feb 23, 2010, 1:13:43 AM |
|
Re: Export OBJ without floor Emmanuel: Floors can only be applied to the ground level. So I think I would like to be able to export my "second floor object" WITH a floor texture. But what I don't like is that SH3D automatically inserts a rectangular floor that has the size of the largest objects. So, if a house has a bay window, not only does the bay window have a floor, but the entire side of the house gets an "external" floor that has the depth of the bay window and the length of the largest wall. Using a textured box instead is not an option, I think: floor textures repeat, but object textures do not repeat. Ideally, only user defined floors (meaning: rooms) should be included in the exported object. By the way, thank you for the stream of new features. Not a day passes or you have a new version with new features! Applause!! Hans ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by Puybaret at Feb 23, 2010, 9:56:07 AM |
|
Re: Export OBJ without floor Hans, Here is a simple tip to remove this rectangular floor in the current version: 1. Edit the generated OBJ file with any text editor 2. Search the first line starting by "g wall" 3. Remove all the lines that precede that line and start by a f letter 4. Save and import your edited OBJ file. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by hansmex at Feb 23, 2010, 10:44:41 AM |
|
Re: Export OBJ without floor Emmanuel: Thank you! So, if I find "g wall" twenty times, only the first time I delete it, together with the preceding f-lines? g wall_5_185; g wall_6_201; etc etc The first instance has approx. 44 f-lines before it; the other ones only two f-lines. Hans ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by Puybaret at Feb 23, 2010, 11:05:48 AM |
|
Re: Export OBJ without floor Don't remove the line starting with "g wall", remove only the ones starting with a "f" and preceding that line. A f-line defines a face and the number of f-lines to delete depends on the shape of the rooms you created. The simplest ground is a rectangle made of two triangles i.e. only two f-lines. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by hansmex at Feb 23, 2010, 12:53:13 PM |
|
Re: Export OBJ without floor Emmanuel: Let us assume that I delete ALL the f-lines from the OBJ-file. That means I would create an object that has no "bottom" faces, and therefore also doesn't have the unwanted "extra" floor. The price is that I also lose those floors that I DO want to have. If I were to create an in-between layer that consists only of the textured floors, then again I have the problem of the extra floor that follows the extreme points in the design. The only advantage would then be, that there are less floors, and it might be easier to find out which floor is the unwanted one. I shall keep this in mind, and maybe experiment a bit. Hans ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by Puybaret at Feb 23, 2010, 2:16:10 PM |
|
Re: Export OBJ without floor I you remove all the f-lines from an OBJ file, you create an empty model! "f" means face not floor. If you removed the f-lines I indicated to you, you won't remove the floor of the rooms you created with Create rooms tool. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by hansmex at Feb 23, 2010, 3:43:42 PM |
|
Re: Export OBJ without floor Emmanuel: I'm afraid I can't follow your explanation :-( When I open a file, I find many-many lines that start with "g wall_xx_xx" where xx_xx are numbers. In that particular file the first "g wall" is preceded by 44 lines that start with "f". I assume those are the faces of the walls I have drawn at the start of the project. All the other occurences of "g wall" are preceded by only 2 lines that start with "f". So, how can I determine which f-lines to delete? Should there be one (and one only) wall that starts with "g wall" and has no numbers following? I don't have the patience to use the trial-and-error method and delete each (pair of) f-line(s) to find out which line is the unwanted floor. Sorry for that. Hans ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by Puybaret at Feb 23, 2010, 5:38:16 PM |
|
Re: Export OBJ without floor As I wrote before, remove only the f-lines before before the first "g wall" line. For example, the file: # should become: # ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by hansmex at Feb 24, 2010, 3:33:06 PM |
|
Re: Export OBJ without floor Emmanuel: I created a completely new design part and exported it as OBJ. Immediately I edited it and indeed (to my surprise) there were only TWO f-lines before the first g-wall. I deleted those and I now have an imported object without a floor. Thank you for your patience. Hans ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by Puybaret at Apr 16, 2010, 11:37:30 PM |
|
Re: Export OBJ without floor I just released a new plug-in that allows to copy the selection as a new piece of furniture into clipboard. This plug-in is available at http://www.sweethome3d.eu/plugins/CopyAsNewFurniturePlugin-1.3.1.sh3p Quick user guide: - Install plug-in, - Select in the plan the walls, rooms and furniture you want to group as a new piece of furniture, - Choose Tools > Copy as new furniture, - Choose Edit > Paste to paste the new piece of furniture in the existing home or an other home. I hope it will satisfy your needs. ![]() Note: This plug-in was updated to version 1.3.1 on August 28, 2024 This plug-in was updated to version 1.3 on November 18, 2020 to handle the copy of groups, standalone rooms (only if at a upper level), furniture elevation at different levels, texts and polylines visible in 3D This plug-in was updated to version 1.2 on February 4, 2015 This plug-in was updated to version 1.1 on December 30, 2010 ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by hansmex at Apr 17, 2010, 4:35:07 PM |
|
Re: Export OBJ without floor Emmanuel: Nice feature, thanks a lot. It's very nice to be able to export/use a model without the extra floor. However... it's still a bit buggy. (1) It doesn't work correctly with the sh3d.jnlp version. First time I tried it asked for a browser location, the second time it dodn't work at all. (2) The installed version of SH3D works correctly. However, it seems you changed something in the coding of the Export to OBJ format routine. The quality of the rendering of the exported object is much lower than the quality of the original. And the applied texture isn't correct on at least one side of the combined object. It doesn't matter whether you use Tools --> Copy or 3D View --> Export , both give exactly the same result. Hans ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by Puybaret at Apr 17, 2010, 5:03:37 PM |
|
Re: Export OBJ without floor Thank you for your tests. (1) It doesn't work correctly with the sh3d.jnlp version. First time I tried it asked for a browser location, the second time it dodn't work at all. This plug-in can't work with Java Web Start (JNLP) version of Sweet Home 3D. Normally, a message explaining this is supposed to appear, but I forgot to test that. I fixed it.(2) it seems you changed something in the coding of the Export to OBJ format routine. This bug already existed when you exported/imported manually (this new plug-in just automates this process). It's the same bug as the one Yafeng reported. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by Puybaret at May 26, 2010, 6:24:39 PM |
|
Re: Export OBJ without floor The bug about textures change mentioned above was fixed in the version 2.4. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by Puybaret at Nov 18, 2020, 12:05:09 PM |
|
Re: Export OBJ without floor I updated the CopyAsNewFurniture plug-in was updated to version 1.3 to handle the copy of - furniture groups, - standalone rooms (only if at an upper level), - furniture elevation at different levels, - texts visible in 3D, - polylines visible in 3D. Therefore, if you select all at all levels (and possibly unselect a few items after that), this plug-in will copy the selected items respecting their global elevation. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by goldenjet50 at Dec 27, 2023, 9:56:19 PM |
|
Re: Export OBJ without floor Is it possible to use this tool to select everything in one plan and then copy it to a new plan? Live example: I created a main level for a house design and then (because of my lack of knowledge about levels) created a new plan for the basement which I now wish was in the "main house" plan as a "-1" level. Another issue with this is that the basement plan was created with a different compass orientation than was the main plan. That is: The "North" side in the basement plan is actually the "West" side in reality, so if I was able to "move" it to the other plan as a level, I would need to shift it 270 degrees so that it would line up. Is that as simple as changing the compass setting in the basement plan? ... I know .... more than one question ... but they are related. |
| Posted by Keet at Dec 27, 2023, 10:33:37 PM |
|
Re: Export OBJ without floor First install the Plugin Manager and use that to install the Advanced Edit plugin. This will add a few functions in the toolbar. Create the -1 level in your new project if you haven't done that already. In your old project make the basement level the only one visible, select all (Ctrl-A) and copy. Go to the new -1 level and paste, but make sure everything remains selected after the paste. Use the rotate function to rotate everything that is selected 270°. You can use the move functions if necessary to move everything at the same time. If rotation doesn't work perfectly try again but now first group all furniture before you copy/paste/rotate. Still use Ctrl-A to select everything because grouping doesn't include walls, floor, dimensions, etc. That's also why you have to use the rotate and move functions because you can't do that with the mouse or keyboard if a selection includes walls, rooms, etc. In my experience it's easier and more exact to copy the walls from your level 0 in the new project and paste those to level -1. This ensures that the walls are exactly in the same position. It's probably not too much work to add/remove/rearrange any necessary differences. Then copy/paste the grouped furniture from your old project. While it is grouped you can use the rotate handle at one of the corners of the group to rotate or use the rotate function. It's also easy to move the whole group with the cursor keys. Un-group after you're done so you can reposition individual furniture if necessary. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by nick2k3 at May 12, 2025, 12:23:05 PM |
|
Re: Export OBJ without floor hi everyone, I have a problem using this plugin (replicated also by exporting some elements in OBJ and reimporting it as furniture). I am creating a simple wall 170cm wide and 60 cm high (to be used as countertop in a kitchen). Once I copy it as furniture (or trough the usual procedure), it turns out to be 12,1 cm higher, so 170x72,1. ![]() I never noticed before because I was not applying texture, but here with the texture is super visible. does anyone know why/how to avoid it? thanks! |
| Posted by Keet at May 12, 2025, 1:04:23 PM |
|
Re: Export OBJ without floor When you export a wall its height will include the floor thickness, that's why your exported wall is higher than 60 cm. Use the bottom level to avoid the added floor thickness and make the wall height 1mm less than what you need it to be (the system adds 1mm). Since a few weeks there is a better option for what you want: the panel-with-a-hole generator on dodecagon.nl. See this topic for more info: https://www.sweethome3d.com/support/forum/viewthread_thread,13936 You set the dimensions you want for the countertop and the size and position of the hole. After you generated the object you can download and import it. Of course you can set a texture on it. Check it out here . ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
|
|
Current timezone is GMT Jan 14, 2026, 5:43:09 PM |