Print at Dec 17, 2025, 9:07:00 PM

Posted by Puybaret at Feb 28, 2024, 10:31:16 AM
Re: SweetHome3DJS - Porting plugin - ARM architecture support
In your case, you should set serverUserPreferences to null.
User preferences on server side are useful to reduce the size of the saved SH3D file, by replacing the furniture and textures stored in a SH3D file by URLs if they exist in the preferences catalogs too. This is the case in HomeTest.sh3d where you'll see that the size is smaller after the first call to writeHomeEdits.jsp, because it contains some furniture of the default catalogs (but also some furniture and textures not found in it). But keeping a larger SH3D file on the server is not an issue, it will be just more data to send to the client when reading the home it contains. Anyway, if the designed home is built from scratch on the server which is probably what you want to propose, the Home.xml entry in its SH3D file will contain only URLs and will be as small as possible.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator