|
Sweet Home 3D Forum » List all forums » » Forum: Installation » » » Thread: How to import furniture in Applet |
|
| Print at Dec 17, 2025, 9:42:19 AM | |
| Posted by MrMarkie at Apr 15, 2010, 3:25:59 PM |
|
How to import furniture in Applet Hi I'm playing around with Sweet Home 3D and have managed to serve it as an applet from a webserver. Only problem is I have no furniture in the applet, how and where do I put which files to remedy this? Best Regards Markus Larsson |
| Posted by Puybaret at Apr 18, 2010, 1:56:46 PM |
|
Re: How to import furniture in Applet Short answer: read the information about parameters named furnitureCatalogURLs and texturesCatalogURLs in SweetHome3DApplet javadoc. If you look at the source code of the Online version hosted on sweethome3d.eu, you'll see these two parameters are the files furnitureCatalog.zip, additionalFurnitureCatalog.zip and texturesCatalog.zip. The PluginFurnitureCatalog.properties and PluginTexturesCatalog.properties contained in these zip files reference all the icon and 3D model files hosted on this server. You can edit them and replace the code base http://www.sweethome3d.eu/ by the one of your server and copy all the 3D model and icon files you want on your server. Important note: in no case, I give you (or other people reading this thread) the authorization to host unmodified versions of the files furnitureCatalog.zip, additionalFurnitureCatalog.zip and texturesCatalog.zip on your server. You must reference 3D model and icon files hosted on your server, and not files on sweethome3d.eu server. Don't host the files furnitureCatalog.zip, additionalFurnitureCatalog.zip and texturesCatalog.zip on your server if you don't understand the exact meaning of the required changes. [01/18/2011 - Update from developer : In version 2.4, the two furnitureResourcesURLBase and texturesResourcesURLBase parameters were added to SweetHome3DApplet class to simplify catalogs deployment. Thus, the furnitureCatalog.zip, additionalFurnitureCatalog.zip and texturesCatalog.zip hosted on this server don't contain absolute URLs anymore but URLs relative to the furnitureResourcesURLBase and texturesResourcesURLBase parameters I added to the applet of the Online version. Feel free to use these files unmodified now, as long as you take care to change the URL base to avoid using models hosted on sweethome3d.com server in your applet.] ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by MrMarkie at Apr 19, 2010, 9:16:07 AM |
|
Re: How to import furniture in Applet I see, thank you for the quick response. I will make those changes and make sure all things point where they should point. Thanks again for the response and for this very useful application. Sincerly Markus Larsson |
| 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",- 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 140x190texturesCatalog.zip!\PluginTexturesCatalog.properties name#1=Wooden flooradditionalFurnitureCatalog.zip!\PluginFurnitureCatalog.properties name#1=Triple windowlastly, 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 |
| Posted by Puybaret at Apr 29, 2010, 9:08:31 PM |
|
Re: How to import furniture in Applet The first thing I would do is to simply import the ZIP files you created in the offline version of Sweet Home 3D after changing their extension from zip to sh3f, and check if the models listed in them appear in Sweet Home 3D catalog. If this succeeds, you should check if http://my_url/online/furnitureCatalog.zip is accessible. As you kept a slash in front of "/online/furnitureCatalog.zip", online directory should be at root. If you remove the first slash from "/online/furnitureCatalog.zip", online will be relative to applet "codebase" attribute. 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. The two things that forbids me to do this is time and bandwidth. Time is a concern since I would have to update this archive each time I add models in additionalFurnitureCatalog.zip, and this would be one more task I shouldn't forget. Bandwidth is my main concern since this archive weights 32 MB at this time, and I'm always frightened by the idea of hosting such a big file (Sweet Home 3D installers are big files too but they are hosted on SourceForge.net servers). If you feel comfortable with regular expressions, you can transform the lines containing ".zip" and ".png" in PluginFurnitureCatalog.properties into wget commands, taking care of subdirectories. If not, the only solution I see at this time is to create that file on demand and publish it temporarily. If you don't have a better idea, send me a private message or an email. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by bellskar at Apr 30, 2010, 3:19:01 PM |
|
Re: How to import furniture in Applet The first thing I would do is to simply import the ZIP files you created in the offline version of Sweet Home 3D after changing their extension from zip to sh3f, and check if the models listed in them appear in Sweet Home 3D catalog. If this succeeds, you should check if http://my_url/online/furnitureCatalog.zip is accessible. As you kept a slash in front of "/online/furnitureCatalog.zip", online directory should be at root. If you remove the first slash from "/online/furnitureCatalog.zip", online will be relative to applet "codebase" attribute. Great!!! it was the slash. I actually was using a specific folder named SH3D as the application on the root. but didn't remove the "/". after your post I just got that and removed the "/" before "online" to use it as relative to "codebase" which in my case was "http://my_url/SH3D/" 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. The two things that forbids me to do this is time and bandwidth. Time is a concern since I would have to update this archive each time I add models in additionalFurnitureCatalog.zip, and this would be one more task I shouldn't forget. Bandwidth is my main concern since this archive weights 32 MB at this time, and I'm always frightened by the idea of hosting such a big file (Sweet Home 3D installers are big files too but they are hosted on SourceForge.net servers). I got that. it's understandable. If you feel comfortable with regular expressions, you can transform the lines containing ".zip" and ".png" in PluginFurnitureCatalog.properties into wget commands, taking care of subdirectories. Won't it be the other part from downloading the catalogs from sweethome3d server. the hell is actually to download each zip file :P any ways. the use of regular expressions in "*.properties" is also a good for me but ofcourse I would have to download the zip files separately each. If not, the only solution I see at this time is to create that file on demand and publish it temporarily. If you don't have a better idea, send me a private message or an email. I'll contact you via email. That would be great and so kind of you. Thanks a lot. |
| Posted by Carina2011 at May 25, 2012, 10:16:01 AM |
|
Re: How to import furniture in Applet Hello, i have make this like your description, but my furniture shows not in the sweethome3d when it starts. urls like this http://my_url/online/furnitureCatalog.zip works and found my zip i have also tested this with a backslah / or not or with the relativ url. must i make other changes in another class of sweethome 3d ? |
| Posted by Puybaret at May 25, 2012, 10:51:41 AM |
|
Re: How to import furniture in Applet Could you paste here the properties of one of your object, as well as the params you used in your applet? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by ndhduong at Jun 20, 2012, 11:42:06 AM |
|
Re: How to import furniture in Applet I use source v3.5 downloaded from here (3.5 src ) I tried to run the code locally as an applet within Eclipse, and v3.5 source is a little different from what is explained in this post: 1.There is no zip files for catalog or texture. All the models and textures are individual files in io/resources folder. The .properties files are located in io folder 2.Parameters has to be set in Run Configurations option of Eclipse So I followed the instructions and did the following: 1.Change path for models and textures in .properties files, as icon#1=./resources/bed140x190.png model#1=./resources/bed140x190.obj2.Set parameters as followed: Name:pluginFurnitureCatalogURLs Value:"./io/" Name:pluginTexturesCatalogURLs Value:"./io/" However, the applet run without any models on the top left section. I have intentionally changed the path for models to a wrong one then Eclipse produced error of "Unknown resource", which means the paths I used above should be processed properly. About the parameters, I have tried both relative and absolute path (C:/...) but none worked. Please give me some inputs. Thank you |
| Posted by Puybaret at Jun 20, 2012, 6:10:13 PM |
|
Re: How to import furniture in Applet The program doesn't handle paths but URLs. I hoped that the URL suffix in the parameter names would be enough to suggest it. ![]() ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by santhosh.chellamani at Oct 27, 2015, 6:19:33 AM |
|
Re: How to import furniture in Applet Hi, Sorry for the inconvenience, i tried all the above steps. i am not able to import the catalogs on my server. Kindly Suggest step by step procedure. Thanks in advance. Regards, Santhosh |
| Posted by santhosh.chellamani at Oct 27, 2015, 6:22:27 AM |
|
Re: How to import furniture in Applet i have downloaded the furniture.zip and textures.zip from the mentioned URL and included them in my root folder. i also added the params in the .html file and tried to load online. the libraries did not load, only the blank template of sweet home loaded. Regards, Santhosh |
| Posted by paddygowda72 at Oct 27, 2015, 7:32:52 AM |
Re: How to import furniture in Appletupdate to Santhoshs escalation Sweethome is deployed in a folder named 3D and furniturecatalog.zip and texturecatalog.zip is in the same level of the folder, along with sweethome3dapplet.html. the parameters are as below..... questions are, where are we going wrong ? and do we have to download separate model libraries ? if Yes then should it be in the same folder as furniture catalog ? var attributes = {codebase:".", code:"com.eteks.sweethome3d.applet.SweetHome3DApplet", archive:jars, width:"100%", height:"95%", name:"SweetHome3DOnline"}; // Complete list of available parameters described in the javadoc // of com.eteks.sweethome3d.applet.SweetHome3DApplet class var parameters = {jnlp_embedded: "PD94bWwgdmVyc2lvbj0iMS4wIj8+CjwhLS0KICAgU3dlZXRIb21lM0RBcHBsZXQuam5scCAKICAgCiAgIFN3ZWV0IEhvbWU gM0QsIENvcHlyaWdodCAoYykgMjAxMyBFbW1hbnVlbCBQVVlCQVJFVCAvIGVUZWtzIDxpbmZvQGV0ZWtzLmNvbT4KICAgCiAgIFR oaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOyB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5CiAgIGl0IHV uZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgYXMgcHVibGlzaGVkIGJ5CiAgIHRoZSBGcmV lIFNvZnR3YXJlIEZvdW5kYXRpb247IGVpdGhlciB2ZXJzaW9uIDIgb2YgdGhlIExpY2Vuc2UsIG9yCiAgIChhdCB5b3VyIG9wdGl vbikgYW55IGxhdGVyIHZlcnNpb24uCiAKICAgVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQ gd2lsbCBiZSB1c2VmdWwsCiAgIGJ1dCBXSVRIT1VUIEFOWSBXQVJSQU5UWTsgd2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJ hbnR5IG9mCiAgIE1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4gIFNlZSB0aGUKICA gR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0YWlscy4KC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tZDY0IHg4Nl82NCI+CiAgICA8amFyIGhyZWY9ImxpYi9saW51eC94NjQvamF2YTNkLmphciIvPgogIDwvcmVzb3V yY2VzPgoKICA8cmVzb3VyY2VzIG9zPSJTdW5PUyI+CiAgICA8ZXh0ZW5zaW9uIGhyZWY9Imh0dHA6Ly9kb3dubG9hZC5qYXZhLm5 ldC9tZWRpYS9qYXZhM2Qvd2Vic3RhcnQvcmVsZWFzZS9qYXZhM2QtMS41LWxhdGVzdC5qbmxwIi8+CiAgPC9yZXNvdXJjZXM+Cgo gIDxhcHBsZXQtZGVzYyBtYWluLWNsYXNzPSJjb20uZXRla3Muc3dlZXRob21lM2QuYXBwbGV0LlN3ZWV0SG9tZTNEQXBwbGV0IiA KICAgICAgICAgICAgICAgbmFtZT0iU3dlZXRIb21lM0RPbmxpbmUiIHdpZHRoPSI2MDAiIGhlaWdodD0iNjAwIi8+Cjwvam5scD4 =", java_arguments:"-Xmx640m -Dcom.eteks.sweethome3d.deploymentInformation=Online -Djnlp.packEnabled=false", showMemoryStatus:"true", userLanguage:"en", furnitureCatalogURLs:"furnitureCatalog.zip", texturesCatalogURLs:"texturesCatalog.zip”, listHomesURL:"", readHomeURL:"", writeHomeURL:"", javaDisabled:'"><p align="center" style="margin:30px"><font color="#FF0000">Enable Java in the preferences of your browser<br>and/or install <a href="http://java.com">Java</a> to run Sweet Home 3D Online.</font></p><dummy att="'}; |
| Posted by santhosh.chellamani at Oct 30, 2015, 7:38:11 AM |
|
Re: How to import furniture in Applet Hi, Can Somebody help me please i am stuck at this point and not able to proceed with this. Thanks & Regards, Santhosh C |
| Posted by Puybaret at Oct 30, 2015, 3:32:15 PM |
|
Re: How to import furniture in Applet Did you deploy your own furnitureCatalog.zip and texturecatalog.zip files or the ones available on sweethome3d.com? Did you set the furnitureResourcesURLBase and texturesResourcesURLBase attributes and deployed the furniture icons and models on your server? Or maybe you want to show your own models/textures? You ask quick support but don't tell us anything about your project. It would be nice to give some details about what you want to achieve... ![]() By the way, pay attention that applets are a dying technology: not available under iOS and Android, not available under Chrome and Edge browsers, difficult to use under Safari. Among the main browsers, only IE and Firefox still support them with the only requirement that the user must install a JRE and accept applet certificate at launch. For how long??? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by santhosh.chellamani at Oct 31, 2015, 5:50:23 AM |
|
Re: How to import furniture in Applet Hi, Thanks for replying. I want to embed sweet home 3d on my website as a online version. I was successful in launching it online in my server. However there is no furnitures on it, i want to include the furniture catalog in my server, i would like use the one available on sweet home website itself. I have not created my own furniture, i will use the one available on web itself. Kindly suggest. Regards, Santhosh C |
| Posted by Puybaret at Nov 1, 2015, 7:48:00 PM |
|
Re: How to import furniture in Applet Be sure to read all the comments at the beginning of this thread, and upload the models you want on your server. By the way, don't expect more support on the Online version, because I prefer to spend more time on the future features of Sweet Home 3D. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by santhosh.chellamani at Nov 4, 2015, 11:56:13 AM |
|
Re: How to import furniture in Applet Hi, Sorry to bother you again, Can we get paid support on this ? If yes, how much we should pay ? what kind of support do we get ? whom to contact ? Because everything is working fine on the server except the libraries and this is very crucial for our project. Hence requesting your support. Regards, Santhosh C |
| Posted by Puybaret at Nov 6, 2015, 8:32:41 AM |
|
Re: How to import furniture in Applet Sorry, I don't provide paid support for cloning the Online version. But all the information required to deploy the libraries on your server is available in this thread and other ones on this forum. Just read it closely. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by Puybaret at Nov 15, 2015, 4:51:42 PM |
|
Re: How to import furniture in Applet In case you missed it, Mozilla announced also that they will stop supporting plug-ins in Firefox by the end of 2016. But as shown in the surprise of the birthday page of Sweet Home 3D, this doesn't necessarily mean the death of the Online version of Sweet Home 3D. More about this in the coming weeks... ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by paddygowda72 at Nov 16, 2015, 4:59:35 AM |
|
Re: How to import furniture in Applet Thanx Emmanuel We will continue to work on online version, because, it is one of the key part of our project, which will empower the common man to build his dreams. Not sure how successful we will be, but we will put our best efforts ........ We are thankful to sweethome3d and you for all that you are providing to us. |
| Posted by paddygowda72 at Nov 20, 2015, 6:06:42 AM |
|
Re: How to import furniture in Applet Dear Forum Can any java gurus in this forum help us with our situation - please ? Situation is we are unable to load model furniture libraries, rest is fine. Please let us know what details you would want to help us...... Regards Paddy |
| Posted by slaredo at Dec 26, 2015, 7:59:31 PM |
|
Re: How to import furniture in Applet Sorry to ask again the question, I tried to look a bit on the forum but not sure of the answer. Do I understand well that there is NO WAY to use the ONLINE version with Chrome or Edge ? (Running windows 10, noway to get IE) So I would have to install Mozilla ? To share some 3 vizualisation with my Architect, it would be fine to have this feature, but he has also only Chrome and Edge |
| Posted by Puybaret at Dec 27, 2015, 2:05:12 PM |
|
Re: How to import furniture in Applet Do I understand well that there is NO WAY to use the ONLINE version with Chrome or Edge ? Yes, Edge never supported Java plugin and Chrome stopped supporting it (Java plugin is a NPAPI plugin).Running windows 10, noway to get IE As far as I understood, Edge is the default browser under Windows 10. That doesn't mean that IE doesn't work under that system. I just tried again Sweet Home 3D Online with IE 11 and it worked without problem.So I would have to install Mozilla ? Firefox will remove support for plugins too at the end of 2016, so until then it should work.---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 17, 2025, 9:42:19 AM |