Print at Dec 29, 2025, 11:02:00 PM

Posted by yizhou at Apr 25, 2011, 4:42:44 PM
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer
Hi Emmanuel,thank you for the quick response.
I just did following:
1.I just Added the following parameters in SweetHome3DApplet.html

var parameters = {java_arguments:"-Xmx512m -Dcom.eteks.sweethome3d.deploymentInformation=Online",
showMemoryStatus:"true",
userLanguage:"en",
furnitureCatalogURLs:"E:/SweetHome3D-3.0-src/deploy/online/furnitureCatalog.zip",
furnitureResourcesURLBase:"E:/SweetHome3D-3.0-src/deploy/models/",
texturesCatalogURLs:"E:/SweetHome3D-3.0-src/deploy/online/texturesCatalog.zip",
texturesResourcesURLBase:"E:/SweetHome3D-3.0-src/deploy/textures/",

listHomesURL:"",
readHomeURL:"",
writeHomeURL:""

};

2. I downloaded the files furnitureCatalog.zip, additionalFurnitureCatalog.zip and texturesCatalog.zip.
3. Chanaged the files like this:
furnitureCatalog.zip!\PluginFurnitureCatalog.properties
name#1=Bed 140x190
category#1=Bedroom
icon#1=E:/SweetHome3D-3.0-src/deploy/models/bed140x190.png
model#1=jar:E:/SweetHome3D-3.0-src/deploy/models/bed140x190.zip!/bed140x190.obj
width#1=158
depth#1=208
height#1=70
movable#1=true
doorOrWindow#1=false

texturesCatalog.zip!\PluginTexturesCatalog.properties
name#1=Wooden floor
category#1=Floor
image#1=E:/SweetHome3D-3.0-src/deploy/textures/woodenFloor.jpg
width#1=42.5
height#1=42.5

4. Ran the Sweethome3dApplet.html and no 3d models and icons there.

Ps: I downloaded one or two models from the sweethome3d.eu and placed them to the path like E:/SweetHome3D-3.0-src/deploy/models/.
And placed one or more the jpg to E:/SweetHome3D-3.0-src/deploy/textures/.

I also changed their extension from zip to sh3f, and checked that the models listed in them appear in Sweet Home 3D catalog. And also can access the url "E:/SweetHome3D/deploy/3dr/texturesCatalog.zip".

thanks