Joined: Sep 17, 2025
Post Count: 1
Status:
Offline
Forge .sh3d file with AI help
Ok here is the use-case: I'm looking for a new home. So I have some "on paper" plans.
To play with them, I got an idea: try to quickly reproduce them in sh3d with help of AI.
AI can generate a seems-good Home.xml file, leaded by by description or on image. Then I zip Home.xml (in UTF-8 without BOM) and rename it in .sh3d. And it does not work.
All my tries finish in "Unable to open" ("Impossible d'ouvrir le logement" in French).
I don't know where is the problem: - in AI output? - in zip compression? - other?
Netherlands
Joined: Apr 8, 2022
Post Count: 1511
Status:
Offline
Re: Forge .sh3d file with AI help
The problem is not with the Home.xml file. The problem arises when you try to use a stand-alone Home.xml file for a .sh3d project file. There are no resources (i.e. furniture) to display the home. The best you can do is a Home.xml file with only non-resource dependend data. For example level definitions, non-textured walls and floors, etc. Furniture (including doors, windows, etc) need the obj/mtl resource files. If these are referred in the Home.xml file but are not included in the .sh3d project zip than the project can not load because it can't find the resources. Strictly it should be able to load the project but with big red crosses where the furniture is assumed. Your Home.xml file is probably invalid to begin with.
Extract an existing .sh3d zip an look at the definitions it contains in the Home.xml file and how it relates to the other resources that were extracted. I doubt it very much that AI will be able to generate a functional .sh3d file with the current state of AI technology.
What AI can do is generate a furniture file (obj/mtl) from an image. This has already been proven by our valued member GaudiGalopin who has experimented with this. Taking that a little further, a series of AI instructions could theoretically create all resource parts (furniture,doors,windows,..) and then combine them in a zip with a Home.xml file. You would need an AI specifically trained to do that.
ETA: I did a little testing about what you can list in Home.xml without requiring extra resourses. (A texture is also a resource so only colors!) You can list levels, walls, rooms, dimension lines, poly lines, and a texts. You can leave out the starting nodes that you find in a regular Home.xml file and it will open correctly in Sweet Home 3D. Of course the listed nodes must conform to the structure as used by Sweet Home 3D. Once opened and save in Sweet Home 3D the default lines will be added automatically.
This Home.xml zipped and renamed as .sh3d will open in Sweet Home 3D:
If you can teach an AI the structure rules for the mentioned elements (level, wall, etc.) than it could possibly create a Home.xml. But only if it can recognize the correct element from an image and translate it to the correct xml node. It will have to ignore everything it can't map from the image to a correct xml node.
---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects
----------------------------------------
[Edit 1 times,
last edit by Keet at Sep 19, 2025, 4:22:57 PM]