Russia
Joined: Aug 11, 2017
Post Count: 135
Status:
Offline
Re: Export to HTML5 plug-in
Hello! This is a great tool, thank you very much!
I have some problem in HTML-view, could you please help me 1. Choose levels box in aerial view is inactive, so I always can see only whole house, no way to see only fist floor. I've even copied all the script settings from your example at http://www.sweethome3d.com/blog/2017/09/06/sweet_home_3d_5_5.html, but no way
The second problem (may be it all the one case): I cannot use for html-view .sh3d file like you do ("viewerCanvas2", "SweetHome3DExample7.sh3d"), I can use only exported zip-file (("viewerCanvas2", "SweetHome3DExample7.sh3d",)), otherwise I get "Error: ReferenceError Ground3D is not defined"
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Export to HTML5 plug-in
Until version 1.2 of the Export to HTML5 plug-in, the levels drop down list was active only in virtual visit mode on purpose. It's not the case in the version 1.3 that was released tonight. This new version supports also rotation of objects around an horizontal axis, and other new features proposed in Sweet Home 3D 5.5.
Note that this plug-in is less useful now since it's possible to view a sh3d file directly with Sweet Home 3D JS Viewer. Both viewers use the same JavaScript code available in SweetHome3DJS project. The additional processing performed by the Export to HTML5 plug-in reduces the home data handled by the viewer by removing plan icons and reducing the textures larger than 256x256 pixels.
For those interested, I also updated Export to XML/OBJ plug-in to version 1.3.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
United States
Joined: Oct 12, 2017
Post Count: 1
Status:
Offline
Re: Export to HTML5 plug-in
I tried to install this Plug-in and then restarted SweetHome, but the option never appeared under the TOOL menu. I tried to re-install, and got the message that it was already installed. If I go to "About Sweet Home 3D" and click on "Libraries", it is not listed in the Plug-Ins. I downloaded version 1.3 of the tool, with Sweet home 5.3.1 with OSX 10.11.6 . It's strange, there are no error messages, and it completes the install successfully with the message about it being available after the next launch. I'm using the Viewer for now, but thought you might want to know.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Export to HTML5 plug-in
I just released the version 1.3.1 of Export to HTML5 plug-in and the version 5.5.2 of Sweet Home 3D JS Viewer to fix an issue that could prevent viewing SH3D files containing 3DS or DAE files.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: May 12, 2013
Post Count: 1545
Status:
Offline
Re: Export to HTML5 plug-in
..almost all browsers except Firefox (until now) don't allow to read local files by default, for security reasons!!!
In case anyone wondered, off-line view still works with the apparently re-written Firefox Quantum. Alas, I have yet to find any other browser (except Seamonkey) that will display a test website with the html5 plugin. ok
Germany
Joined: Nov 23, 2017
Post Count: 1
Status:
Offline
Re: Export to HTML5 plug-in
Thank you so much for providing the HTML5 plugin! Would you mind uploading the unminified sources to Github/Gitlab/Bitbucket etc.? That way other people might contribute to the development more easily.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Export to HTML5 plug-in
I'm happy you like it You can generate the unminified files with the generatedLibraries Ant target of the build.xml file available in the source code of SweetHome3DJS. I won't copy these files in another repository myself, because this would require to update it too and managing the release of each version in one place is already a quite heavy task.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Japan
Joined: Aug 31, 2017
Post Count: 22
Status:
Offline
Re: Export to HTML5 plug-in
Hi,
I tried to use your Blender import script, but it failed. The error was that it couldn't find a file. I'm guessing it was because the file has a space in the name. The error message said it couldn't find "Grand%20Piano.dae.obj". That file does exist, but %20 is a space instead.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Export to HTML5 plug-in
I'm not the author of the Blender import script, but when you know that the 3D model of a piece of furniture is stored in its model attribute, it shouldn't be difficult to find the place in the script where the path of a model is used and adapt its urlencoded notation to the one required by Blender. Then don't forge to contribute your fix in the https://github.com/lcgamboa/sh3dtoblender project
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator