Print at Dec 21, 2025, 12:45:40 PM View all posts in this thread on one page
Posted by chicosRV at Mar 13, 2013, 8:32:20 PM
confused   I exported the scene made in the Sweet Home 3d in separate .obj but i have problem with the walls
I exported the scene made in the Sweet Home 3d in separate .obj (each element is a diferent .obj) and using a xml file i construct the scene for open it in other application (the xml file has the format that use the other application, it contains the position of each object , scale, etc) but i have a problem obtaining the position of the walls, it never shows in the same position the were in Sweet Home. I tried saving all the walls together and each one like a diferent obj but it doesn't work. The room(all the walls together) never is positioned in the same position; and saving each wall as diferent obj file, its encapsuled in a bounding box that is bigger(a bigger rectangle) and i can't obtain the position of the center of this bounding box

Posted by Lynn22 at Mar 14, 2013, 5:19:25 PM
Re: I exported the scene made in the Sweet Home 3d in separate .obj but i have problem with the walls
The pivot point of an obj room is fixed in the 2D plan at point 0-0 (top left of the view port)
If you start drawing at location 0-0 and expand to the right and down, the pivot point is at the center of the bottom corner of the back wall.

If you need your house to have its pivot point in the center then you should move all your walls to have the location 0-0 at the center of your house.

Hope this helps

Posted by Puybaret at Mar 14, 2013, 5:19:42 PM
Re: I exported the scene made in the Sweet Home 3d in separate .obj but i have problem with the walls
Please provide some examples because it's difficult to understand differences of behavior if you don't show them.
For your information, walls (lines starting by "s wall_") are cited in the OBJ file in the order they were added to home. If the vertices indices their faces refer to (lines starting by "f") don't appear in the same order for the same collection of walls, it could be due to the way Java 3D stores them.

The bounding box you mention at the end of your message represents the ground. From version 4.0, you'll be able to avoid generating this ground if needed.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator