Re: SweetHome3DJS - Porting plugin - ARM architecture support

by Puybaret » Wed Feb 28, 2024 5:42 pm

A SH3D file is actually a ZIP file containing texture images, furniture 3D models and icons, as well as an entry named [font=courier new]Home.xml[/font] which describes the designed home respecting this DTD. If you look at an example of [font=courier new]Home.xml[/font], you'll see that the [font=courier new]model[/font], [font=courier new]icon[/font] and [font=courier new]image[/font] attributes are equal to a number matching another entry in the SH3D file or a URL matching data on the server.

You'll find here instructions about how to add more furniture and textures libraries to the catalogs using the tool PropertiesToJson. Note that you can obtain also a JSON version of an existing SH3F or SH3T library file with the version 2.0 of the Furniture Library Editor and Textures Library Editor if you save it as a file ending by [font=courier new].json[/font]. This is easier than using PropertiesToJson but you'll probably have to change [font=courier new]furnitureResourcesURLBase[/font] and [font=courier new]texturesResourcesURLBase[/font] in application configuration (or adapt the relative URLs of [font=courier new]icon#[/font], [font=courier new]model#[/font] and [font=courier new]image#[/font] properties in generated JSON files).