|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Import .obj file to Blender |
|
| Print at Dec 18, 2025, 8:13:39 PM | |
| Posted by Mitsaki at Nov 4, 2011, 1:31:32 PM |
|
Import .obj file to Blender Hello, I have created an .obj file in Sweethome3d and now I would like to import it to Blender 2.59, but I would like the furniture to be imported as individuals so that I could recognize them in blender. Has anybody experienced the same problems? I also have tried to import it with different settings, but still I don't have any improvement. Thanks in advance Mitsaki |
| Posted by hansmex at Nov 4, 2011, 1:45:48 PM |
|
Re: Import .obj file to Blender Mitsaki, If you want to import individual pieces of furniture in Blender, you should export individual pieces of furniture from SH3D. It is not possible to separate the furniture pieces in Blender. Delete all furniture except one model, then use Export to OBJ format, then use Undo to get the other pieces of furniture back. Repeat this process until all pieces have been exported. Hans ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by Mitsaki at Nov 4, 2011, 1:59:32 PM |
|
Re: Import .obj file to Blender Are you sure that there is no option in blender for doing that? Is there any already-made script that I could use to do that programmatically? Mitsaki |
| Posted by hansmex at Nov 4, 2011, 3:15:06 PM |
|
Re: Import .obj file to Blender Mitsaki, Those are questions you should ask on the Blender forum... SH3D produces OBJ files; these are "simple" text files that describe X,Y,Z coordinates, faces of triangles, etc. The entire model that you export is treated as ONE object, and cannot distinguish between individual parts. The method I described is the only one. Hans ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by Puybaret at Nov 4, 2011, 3:44:53 PM |
|
Re: Import .obj file to Blender Sorry Hans, but you're wrong. In the Outliner view of Blender, you'll have all the various parts that define the exported object if you select the Group option of the Separate objects by OBJ section during importation. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by Mitsaki at Nov 6, 2011, 11:12:56 AM |
|
Re: Import .obj file to Blender Thanks, both of you:))) Especially Puybaret, who can solve my problem:) |
| Posted by Mitsaki at Nov 7, 2011, 2:36:07 PM |
|
Re: Import .obj file to Blender Well, you were right that the furniture could be selected individually, but the problem is that now I could select all the meshes, so in order to select one piece of furniture I have to select all the meshes used for the composition of the furniture. Is there any other option that I could change to have the desirable result. |
| Posted by Mitsaki at Nov 16, 2011, 9:35:27 AM |
|
Re: Import .obj file to Blender I still haven't figured out, how I can have the same furniture as an object, I don't understand why I can't have eg. a sofa, as an object and I have to select all the meshes:( |
| Posted by Puybaret at Nov 16, 2011, 10:24:38 AM |
|
Re: Import .obj file to Blender I don't think that OBJ format was designed with this kind of grouping in mind, and OBJWriter class just writes a "g" line for each Java 3D shape whatever it comes from a part of a piece of furniture, a wall or a room. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by Mitsaki at Nov 16, 2011, 3:12:35 PM |
|
Re: Import .obj file to Blender So, what you are suggesting is either change the OBJWriter of Sweethome3d or somehow group the meshes from the same furniture after importing the .obj file to blender? |
| Posted by Ferraro at Oct 24, 2014, 9:03:27 PM |
|
Re: Import .obj file to Blender I have been looking into this as well. Ideally OBJ groups should be created by individual pieces of furniture. The OBJ writer appears to write g + objectName and then falls back to the nodeName. g being the obj files designation for group. Could it be that the nodeName being used for all furniture is simply "mesh" Line 344 of OBJWriter.java mentions a unique name that is "human readable". Ideally the furniture library name should be inserted here. However, on closer examination of the output file it appears it only writes groups by the textures used. As a workaround, I am thinking perhaps I should build my models with a single image texture map from now on. Any thoughts on an implementation that passes the furniture library name as nodeName? |
| Posted by unitedwewillwin at Dec 24, 2021, 3:45:09 PM |
|
Re: Import .obj file to Blender I was facing the same issue and found a great, efficient way to separate objects in Blender (only takes a few seconds!) To do that, just select the imported object in Blender, go into Edit Mode (pressing the "tab" hotkey on your keyboard), then press "P" on your keyboard. A small tab opens and you can choose to separate the items either by Material or by Loose Parts. Here is the Youtube tutorial I found that explains it: https://www.youtube.com/watch?v=P_C3xkVT044 The only downside is that in the Blender Outliner, the different parts don't take the name they had in Sweet Home 3D. For example "Table" is called "ProjectName.001", but this can be manually changed. Hope this helped! |
|
|
Current timezone is GMT Dec 18, 2025, 8:13:39 PM |