France
Joined: Nov 7, 2005
Post Count: 9430
Status:
Offline
Re: Export to HTML5 plug-in
Hello Matthias, Reducing the total file size is a good way to help it work, but it could also be due to the size or the complexity of a 3D model you're using, even if I'm quite astonished you experienced this bug also on a Windows computer. As the 3D model of invisible furniture isn't exported, you could try to export again your home after hiding its largest models (the 3D model size of each piece of furniture can be displayed in furniture list by choosing Furniture > Display column > Model size menu item). Once it works, try to find the culprit by showing the invisible furniture one after the other.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Germany
Joined: Jul 18, 2021
Post Count: 2
Status:
Offline
Re: Export to HTML5 plug-in
Hi Emmanuel,
Thank you so much for the quick response! I solved it and got it working thanks to your Tipps, yet I still have no clue what the Problem was.. In the end it now works with a filesize of 28MB, I only had to leave out one single model (a carpet - nothing special). I identified it by deleting several groups after each other and then trial and error… Anyway, really happy that it works now and thanks again - also for this amazing plug-in! Kindly Matthias
France
Joined: Nov 7, 2005
Post Count: 9430
Status:
Offline
Re: Export to HTML5 plug-in
You can modify the generated HTML file to add all the scripts you want. The API of the JavaScript code exported from this plug-in is a subpart of Sweet Home 3D JS API. HomePreviewComponent object returned by viewHome function will let you access to all the data of the loaded home, with the ability to hide furniture objects with their setVisible method.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
I tried the embed-sweethome3d plugin and inserted the short code, I got the message: "Error: ReferenceError Ground3D is not defined" at run time.
Thank you for the wordpress plugin. However, I got an error while viewing the page ReferenceError Ground3D is not defined There is no problem running the exported viewHome.html directly on the site. Embedded in the wordpress website article will be an error
This has been raised by several people and has not been responded to. I tried Export to HTML5 plug-in 1.4 and 1.6 both are the same. The ZIP used is inside the ZIP
Translated with www.DeepL.com/Translator (free version)
France
Joined: Nov 7, 2005
Post Count: 9430
Status:
Offline
Re: Export to HTML5 plug-in
If Ground3D is not defined, it must mean that some JS files are missing or have been truncated. Did you check in the JS debugger of your browser what JS files are available?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Feb 5, 2013
Post Count: 156
Status:
Offline
Re: Export to HTML5 plug-in
JS debugger I don't know how to use. But the Export to HTML5 plug-in exported viewHome.html is working. The same site and browser, the wordpress SH3D plugin doesn't work ================= document.registerElement is deprecated and will be removed in M73, around March 2019. Please use window.customElements.define instead. See https://www.chromestatus.com/features/4642138092470272 for more details. module.exports.registerElement @ aframe-v1.0.4.min.js?ver=5.9.1:901 107.../utils/ @ aframe-v1.0.4.min.js?ver=5.9.1:899 o @ aframe-v1.0.4.min.js?ver=5.9.1:1 (anonymous) @ aframe-v1.0.4.min.js?ver=5.9.1:1 108../a-entity @ aframe-v1.0.4.min.js?ver=5.9.1:901 o @ aframe-v1.0.4.min.js?ver=5.9.1:1 (anonymous) @ aframe-v1.0.4.min.js?ver=5.9.1:1 112.../../lib/three @ aframe-v1.0.4.min.js?ver=5.9.1:909 o @ aframe-v1.0.4.min.js?ver=5.9.1:1 (anonymous) @ aframe-v1.0.4.min.js?ver=5.9.1:1 155.../package @ aframe-v1.0.4.min.js?ver=5.9.1:995 o @ aframe-v1.0.4.min.js?ver=5.9.1:1 r @ aframe-v1.0.4.min.js?ver=5.9.1:1 (anonymous) @ aframe-v1.0.4.min.js?ver=5.9.1:1 (anonymous) @ aframe-v1.0.4.min.js?ver=5.9.1:1 (anonymous) @ aframe-v1.0.4.min.js?ver=5.9.1:1 aframe-v1.0.4.min.js?ver=5.9.1:995 A-Frame Version: 1.0.4 (Date 2020-02-05, Commit #2b359246) aframe-v1.0.4.min.js?ver=5.9.1:995 three Version (https://github.com/supermedium/three.js): ^0.111.6 aframe-v1.0.4.min.js?ver=5.9.1:995 WebVR Polyfill Version: ^0.10.10 sweethome3dembed-public.js?ver=1.0.0:14 ReferenceError: Ground3D is not defined at HomeComponent3D.createGroundNode (viewhome.min.js?ver=1.0.0:20) at HomeComponent3D.createSceneTree (viewhome.min.js?ver=1.0.0:20) at HomeComponent3D.createComponent3D (viewhome.min.js?ver=1.0.0:20) at new HomeComponent3D (viewhome.min.js?ver=1.0.0:20) at HomePreviewComponent.createComponent3D (viewhome.min.js?ver=1.0.0:20) at Object.homeLoaded (viewhome.min.js?ver=1.0.0:20) at HomeRecorder.parseHomeXMLEntry (viewhome.min.js?ver=1.0.0:20) at Object.zipReady (viewhome.min.js?ver=1.0.0:20) at XMLHttpRequest.<anonymous> (viewmodel.min.js?ver=1.0.0:20)
Belgium
Joined: Dec 26, 2021
Post Count: 28
Status:
Offline
Re: Export to HTML5 plug-in
Hi all,
Ok, I found it, I was searching for answers but didn't look at html code, sorry for the question.
In the <head><style type="text/css"> of viewHome.html file:
<style type="text/css"> /* The class of components handled by the viewer */ .viewerComponent { } /* To display the viewer in full screen, uncomment the 3 following styles */
---------------------------------------- Dubito, ergo sum
Mobo: ASUS TUF GAMING Z690-PLUS CPU: Core i9-12900K RAM: 32 GB DDR4 3200 Ghz GPU: MSI GeForce GTX 1660 SUPER 6G OS: Win 11 Pro 3D: SH3D 6.6.1 and Blender