Netherlands
Joined: Apr 8, 2022
Post Count: 1349
Status:
Offline
Re: create own 3D models with opening
Yes, you need an OBJ file. When you export a model from SH3D it produces an OBJ and a MTL file. The OBJ file is the model description, the MTL file is the material file.
In short, you edit the OBJ file with a plain text editor. You have to find which g group(s) is/are the axis for your deformation and you prefix the g name(s) with "sweethome3d_hinge_1_" (or "sweethome3d_rail_1_" for a slider or "sweethome3d_ball_1_" for a ball deformation). See also this thread where new deformation options and chaining are explained: http://www.sweethome3d.com/support/forum/viewthread_thread,11818. After you have added the prefix for the axis you determine every g group that has to move using the defined axis. For every one of those g groups you rename them by prefixing them with "sweethome3d_opening_on_hinge_1_" (or rail or ball). Import the OBJ file and the deformation should work.
You can also use Blender to rename the groups. That might be easier because you can select a group to see what it is. After changing the group names in Blender, export as OBJ file and import it in SH3D. I usualy set different temporary textures in SH3D to guide me to which group is what and edit the OBJ file with a text editor but you might find the Blender way easier.
To get an example simply export a door from SH3D (one that has the modify openings option) and view the OBJ file that is created. You will see the prefixes as mentioned in the forum threads. You should also download the examples mentioned in that post to review how it is done. Especially if you want to have multiple different deformations in a single object and/or have chained deformations. Once you understand it it's not that difficult.
By-the-way, for deformations the furniture library is not a requirement, just the prefixes in the OBJ file.
---------------------------------------- Dodecagon.nl 1000+ 3D models, manuals, and projects
Joined: Dec 26, 2022
Post Count: 6
Status:
Offline
Re: create own 3D models with opening
@keet thx for all the information, it is highly appreciated :) SH3D and Blender are the apps to be used in such cases.
I read that there could be even several openings per model, couldn't it? It's more of a theoretical question, but I could create blinds and each element could be movable and rotatable?
Netherlands
Joined: Apr 8, 2022
Post Count: 1349
Status:
Offline
Re: create own 3D models with opening
I read that there could be even several openings per model, couldn't it? It's more of a theoretical question, but I could create blinds and each element could be movable and rotatable?
Yes, that is certainly possible. Check the MultiAxesTest and flexible hose examples mentioned in this thread: http://www.sweethome3d.com/support/forum/viewthread_thread,11818. The trick to have multiple opening in the same object is to give them increasing numbers like sweethome3d_hinge_1_, sweethome3d_hinge_2_, etc. Numbering must start at 1 and you can't skip numbers.
The flexible hose is a good example to show the increasing numbers for chained deformations but even without chaining you need to increase the number per type of deformation.
You can create a cabinet with 2 drawers and 2 doors where each drawer and door can be opened individually. The object will contain "g sweethome3d_rail_1_*" and "g sweethome3d_rail_2_*" for the drawers and "g sweethome3d_hinge_1_*" and "g sweethome3d_hinge_2_*" for the doors. One drawer will have all it's parts prefixed with "g sweethome3d_opening_on_rail_1_" and the second drawer will have all it's parts prefixed with "g sweethome3d_opening_on_rail_2_". For the doors it's similar: one door will have all of it's parts prefixed with "g sweethome3d_opening_on_hinge_1_" and the second door with "g sweethome3d_opening_on_hinge_2_".
---------------------------------------- Dodecagon.nl 1000+ 3D models, manuals, and projects
Joined: Dec 26, 2022
Post Count: 6
Status:
Offline
Re: create own 3D models with opening
thx again for the information :) :)
It goes a bit off topic but 1) is there a good library of times like handles etc.? I tried https://www.bimobject.com/ but it seems not ideal for this purpose. 2) is it easily feasible to generate texture from pictures? I would like to have you wooden floor available as texture.
Lastly, what is the recommended application (if there is one) if you want to create models outside SH3D?
Netherlands
Joined: Apr 8, 2022
Post Count: 1349
Status:
Offline
Re: create own 3D models with opening
1) is there a good library of times like handles etc.? I tried https://www.bimobject.com/ but it seems not ideal for this purpose.
I don't know of a specific library for handles. What I usually do is find a model with the handle that I like and use that to get the handle: import the model in SH3D, modify the properties by making every part invisible except the handle, export the partial model, import the handle. That way you get a model of just the handle.
2) is it easily feasible to generate texture from pictures? I would like to have you wooden floor available as texture.
You can import an image to use as a texture. There's an Import button on the modify window after you click to change the texture.
Lastly, what is the recommended application (if there is one) if you want to create models outside SH3D?
I create most of my models with SH3D with the occasional usage of Blender for those things SH3D is not capable of doing. If you read through this forum you will see that Blender is the most used program for creating models but it's a lot more difficult to learn than SH3D.
---------------------------------------- Dodecagon.nl 1000+ 3D models, manuals, and projects