Print at Dec 19, 2025, 4:45:49 AM

Posted by bellskar at Apr 29, 2010, 6:52:37 PM
Re: How to import furniture in Applet
I just did following but Applet is still loading without any feature.
Added the following parameters in SweetHome3DApplet.html
var parameters = {java_arguments:"-Xmx512m -Dcom.eteks.sweethome3d.deploymentInformation=Online",
showMemoryStatus:"true",
userLanguage:"en",
furnitureCatalogURLs:"/online/furnitureCatalog.zip /online/additionalFurnitureCatalog.zip",
texturesCatalogURLs:"/online/texturesCatalog.zip",

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

};


- I downloaded the same Catalogs from in zip archives you linked above.
- Then uncompressed these zip files to modify the reference URLS to my own server and then again zipped in the same way.
- I downloaded one or two models from the sweethome3d.eu as were linked in the *catalog.properties and placed on my own server with the same directory structure. I selected only one or two items/models to test the working.

the final *.properties files were as below. I am not disclosing the actual URL considering the privacy. but I tested the urls after placing the models if they work on direct access or not. and they are actually working.
furnitureCatalog.zip!\PluginFurnitureCatalog.properties
name#1=Bed 140x190
category#1=Bedroom
icon#1=http://my_url/models/bed140x190.png
model#1=jar:http://my_url/models/bed140x190.zip!/bed140x190.obj
width#1=158
depth#1=208
height#1=70
movable#1=true
doorOrWindow#1=false

name#2=Chest
category#2=Bedroom
icon#2=http://my_url/models/chest.png
model#2=jar:http://my_url/models/chest.zip!/chest.obj
width#2=100
depth#2=55
height#2=80
movable#2=true
doorOrWindow#2=false

name#3=Bedside table
category#3=Bedroom
icon#3=http://my_url/models/bedsideTable.png
model#3=jar:http://my_url/models/bedsideTable.zip!/bedsideTable.obj
width#3=38
depth#3=38
height#3=50
movable#3=true
doorOrWindow#3=false

texturesCatalog.zip!\PluginTexturesCatalog.properties
name#1=Wooden floor
category#1=Floor
image#1=http://my_url/textures/woodenFloor.jpg
width#1=42.5
height#1=42.5

additionalFurnitureCatalog.zip!\PluginFurnitureCatalog.properties
name#1=Triple window
category#1=Doors and windows
icon#1=http://my_url/models/contributions/DianaWindow.png
model#1=jar:http://my_url/models/contributions/DianaWindow.zip!/DianaWindow.obj
width#1=389.6
depth#1=25.6
height#1=210.0
movable#1=false
doorOrWindow#1=true
creator#1=Artist373



lastly, is there any way to download all the models from sweethome3d.eu in an archive rather than downloading them each individually. Ofcourse if it's authorised by sweethome3d.eu.

thanks