France
Joined: Nov 7, 2005
Post Count: 9417
Status:
Offline
Re: Export to HTML5 plug-in
Maybe you moved or didn't include the lib folder that contains the JavaScript program required by the HTML page?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
France
Joined: Nov 7, 2005
Post Count: 9417
Status:
Offline
Re: Export to HTML5 plug-in
If you look at the source code of your html file, you'll see that it consists of a few HTML5 and JavaScript tags. Searching how to integrate JavaScript and how to integrate a canvas in Wordpress should give you a solution.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
Russia
Joined: Apr 4, 2017
Post Count: 18
Status:
Offline
Re: Export to HTML5 plug-in
It will be too cumbersome to implement. Can then show this code in a frame? And how to make the 3D object rotate with fingers on mobile devices? I do not spin.
Russia
Joined: Apr 4, 2017
Post Count: 18
Status:
Offline
Re: Export to HTML5 plug-in
On desktop PCs, the rotation is performed by the mouse. How to implement 3D object rotation on mobile devices? Http://free-pc.ru/3D/septic/kolca/viewHome-2.html
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: 9417
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 developer
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: 9417
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 developer