confused I exported the scene made in the Sweet Home 3d in separate .obj but i have problem with the walls

This topic has been viewed 6785 times and has 2 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
chicosRV
Posts: 14
Joined: Fri May 25, 2012 4:37 pm

I exported the scene made in the Sweet Home 3d in separate .obj but i have problem with the walls

Post by chicosRV »

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
Lynn22
Posts: 31
Joined: Wed May 23, 2012 1:28 pm
Contact:

Re: I exported the scene made in the Sweet Home 3d in separate .obj but i have problem with the walls

Post by Lynn22 »

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

Re: I exported the scene made in the Sweet Home 3d in separate .obj but i have problem with the walls

Post by Puybaret »

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
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests