|
Sweet Home 3D Forum » List all forums » » Forum: Installation » » » Thread: The SH3D file failed to load on the web using Sweet Home 3D Viewer |
|
| Print at Jan 17, 2026, 12:08:27 AM | |
| Posted by yizhou at Apr 16, 2011, 6:51:19 PM |
|
The SH3D file failed to load on the web using Sweet Home 3D Viewer Hi all, while open the file "SweetHome3DViewer.html" in the web browser to check if it works correctly, the message like this:正在加载家具模型...,but the SH3D file wasn't loaded successfully in the past 12 hours. What can I do? Thanks a lot~ |
| Posted by Puybaret at Apr 17, 2011, 1:55:09 AM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer I don't know if your problem is bound to the same problem as the one mentioned in this thread, but the version 3.1 of the viewer is buggy. Please, use the previous version 3.0, until the version 3.2 is released. By the way, a translation of 正在加载家具模型 (even if partially accurate) would be helpful. ![]() ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by yizhou at Apr 17, 2011, 8:50:31 AM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer Thanks a lot Puybaret. Everything is fine now. BTW, I want to edit the she3d file online, what can I do? |
| Posted by yizhou at Apr 18, 2011, 4:34:02 PM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer Ping... |
| Posted by Puybaret at Apr 18, 2011, 10:08:21 PM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer Editing the SH3D file is more complicate, because you have to decide how to load the file from the server, how to save it and who should be allowed to do these operations (that's why I don't distribute a compiled version Sweet Home 3D applet until now). I can give you some hints but if you have no knowledge about web server programming technologies like PHP, JSP or ASP, this is going to be very difficult for you. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by yizhou at Apr 19, 2011, 6:35:31 AM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer Hi Puybaret, thanks for your response~ Hmm,I think I have knowledge about web server programming technologies like PHP, JSP and ASP,so could you give me some hints? thanks again~ |
| Posted by Puybaret at Apr 19, 2011, 3:50:35 PM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer You should download Sweet Home 3D source code, read its README.TXT file, run applet Ant target, test SweetHome3DApplet.html script, adapt readHome.php and writeHome.php files to your needs after reading SweetHome3DApplet parameters. Reading also this thread and that one should be useful. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by yizhou at Apr 19, 2011, 6:28:10 PM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer Thanks a lot Puybaret. Will do. |
| Posted by yizhou at Apr 20, 2011, 8:14:27 PM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer Hi Puybaret, while building Sweet Home 3D(http://prdownloads.sourceforge.net/sweethome3d/SweetHome3D-3.1-src.zip) with Ant,here no SweetHome3DApplet.jar in deploy/lib but SweetHome3D.jar. While testing SweetHome3DApplet.html, the error message like this:can't find class com.eteks.sweethome3d.applet.SweetHome3DViewer.Look like the class "applet" is missing in SweetHome3D.jar,right? Thanks a lot~ |
| Posted by Puybaret at Apr 20, 2011, 10:57:11 PM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer You have to run applet Ant target to build SweetHome3DApplet.jar file, for example with the command: ant applet---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by yizhou at Apr 22, 2011, 6:30:47 PM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer Great!!!The SweetHome3DApplet.html is working now.Thanks for your very useful response~ But Only problem is I have no furniture in the applet.I just edited the SweetHome3DApplet.html like this: var parameters = {java_arguments:"-Xmx512m -Dcom.eteks.sweethome3d.deploymentInformation=Online",Then uncompressed these zip files and placed the png/modle into it from sweethome3d.eu and then again zipped in the same way. But while testing the SweetHome3DApplet.html if they work on or not, there is no 3D model and icon files in the applet still. What can I do? thanks |
| Posted by yizhou at Apr 23, 2011, 6:24:15 PM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer Hi Puybaret,there is no 3D model and icon files in the applet,but I have changed their extension from zip to sh3f, and checked that the models listed in them appear in Sweet Home 3D catalog. Also can access the url "E:/SweetHome3D/deploy/3dr/texturesCatalog.zip". So could you give me some advice? Thanks a lot. |
| Posted by Puybaret at Apr 25, 2011, 12:27:02 PM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer I downloaded the files furnitureCatalog.zip, additionalFurnitureCatalog.zip and texturesCatalog.zip. Did you change these files?Then uncompressed these zip files and placed the png/modle into it from sweethome3d.eu and then again zipped in the same way. Could you give an example of a piece of furniture you defined once modified.Did you also try the furnitureResourcesURLBase and texturesResourcesURLBase parameters available in SweetHome3D applet? See how they are configured in Sweet Home 3D Online for a real world example. By the way, I recall that you mustn't reference 3D model and icon files hosted on sweethome3d.com server, to avoid consuming too much bandwidth. You must host them elsewhere. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by yizhou at Apr 25, 2011, 6: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",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 140x190texturesCatalog.zip!\PluginTexturesCatalog.properties name#1=Wooden floor4. 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 |
| Posted by Puybaret at Apr 26, 2011, 1:26:30 AM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer If you use furnitureResourcesURLBase and texturesResourcesURLBase parameters and keep the same models and textures folders, you won't have to modify icon#, model# and image# values. From the examples you gave, it can't work because something starting with "E:/SweetHome3D-3.0-src" can't be an URL. You should add "file:///" in front of it. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by yizhou at Apr 27, 2011, 5:56:00 AM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer Yes. By adding "file:///" in front of "E:/SweetHome3D-3.0-src",I saw the models and icons on the applet finally,haha ~ I'm so excited for this. A big thank to Emmanuel. yizhou |
| Posted by yizhou at Apr 27, 2011, 7:12:20 PM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer New problem is I can't do some options such as "new/edit/save/" on the applet, coz there are no such menu/toolbar.So when will you distribute a compiled version Sweet Home 3D applet? Best regards yizhou |
| Posted by Puybaret at Apr 27, 2011, 7:30:13 PM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer I don't think there's a need to distribute a compiled version of the applet, but there's surely a need for a step by step documentation about applet deployment. In fact, I didn't expect that some people would want to deploy Sweet Home 3D applet on their own server, and once a few ones started to ask some support about this, I expected one of them would start that doc themselves. Maybe it will be you??? ![]() Anyway, if your applet doesn't display new/open/save buttons, it's again because you didn't read the existing doc. I know that SweetHome3DApplet javadoc isn't as much fun to read as a good novel, but come on, it's not so long!!! By the way, describing to the community why you intend to deploy Sweet Home 3D applet would be much appreciated... ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by yizhou at Apr 28, 2011, 4:50:50 PM |
Re: The SH3D file failed to load on the web using Sweet Home 3D ViewerHi Emmanuel,I'd like to tell you that I'm a college student, and my major is software engineering.Recently, I was learning Java applet.So I just deployed Sweet 3D applet on my localhost.Thanks again for your patient response and it is so kind of you~ Sincerly yizhou |
| Posted by yizhou at May 6, 2011, 1:52:26 AM |
|
Re: The SH3D file failed to load on the web using Sweet Home 3D Viewer Hi Emmanuel,here ,I just did like this:import furniture->find modles->ok ,but no response.And you? thanks. |
|
|
Current timezone is GMT Jan 17, 2026, 12:08:27 AM |