Netherlands
Joined: Sep 26, 2009
Post Count: 4000
Status:
Offline
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
---------------------------------------- spiral staircase.sh3d
(142447 bytes)
(Download count: 2604)
France
Joined: Nov 7, 2005
Post Count: 9423
Status:
Offline
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
Netherlands
Joined: Sep 26, 2009
Post Count: 4000
Status:
Offline
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
France
Joined: Nov 7, 2005
Post Count: 9423
Status:
Offline
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
France
Joined: Nov 7, 2005
Post Count: 9423
Status:
Offline
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
Netherlands
Joined: Sep 26, 2009
Post Count: 4000
Status:
Offline
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
France
Joined: Nov 7, 2005
Post Count: 9423
Status:
Offline
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
Netherlands
Joined: Sep 26, 2009
Post Count: 4000
Status:
Offline
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