Export OBJ without floor

This topic has been viewed 110348 times and has 19 replies
Thread status: Active
Features you would like to see [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
User avatar
hansmex
Posts: 4027
Joined: Sat Sep 26, 2009 11:36 am
Country: Netherlands

Re: Export OBJ without floor

Post by hansmex »

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
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Export OBJ without floor

Post by Puybaret »

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/CopyA ... 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
User avatar
hansmex
Posts: 4027
Joined: Sat Sep 26, 2009 11:36 am
Country: Netherlands

Re: Export OBJ without floor

Post by hansmex »

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.


Image

Hans
Hans

new website - under constuction
hansdirkse.info
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Export OBJ without floor

Post by Puybaret »

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
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Export OBJ without floor

Post by Puybaret »

The bug about textures change mentioned above was fixed in the version 2.4.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Export OBJ without floor

Post by Puybaret »

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
goldenjet50
Posts: 6
Joined: Thu Dec 07, 2023 9:59 pm
Country: Canada

Re: Export OBJ without floor

Post by goldenjet50 »

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.
User avatar
Keet
Posts: 1807
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: Export OBJ without floor

Post by Keet »

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
nick2k3
Posts: 2
Joined: Mon Mar 31, 2025 10:42 am

Re: Export OBJ without floor

Post by nick2k3 »

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.


Image
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!
User avatar
Keet
Posts: 1807
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: Export OBJ without floor

Post by Keet »

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/for ... read,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
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest