Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 153
Posts: 153   Pages: 16   [ Previous Page | 7 8 9 10 11 12 13 14 15 16 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3486490 times and has 152 replies Next Thread
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9430
Status: Offline
Reply to this Post  Reply with Quote 
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
[Jul 19, 2021, 1:07:17 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
mba089
Newbie



Germany
Joined: Jul 18, 2021
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
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
[Jul 20, 2021, 8:49:11 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
imortalreis
Newbie




Joined: Feb 8, 2022
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

Hello,
Is it possible insert some option to the user change the items?
Example: checkboxes inputs that remove/add bed + tv

Thank you
[Feb 8, 2022, 4:42:09 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9430
Status: Offline
Reply to this Post  Reply with Quote 
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
[Feb 8, 2022, 5:34:44 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
YGYL
Advanced Member
Member's Avatar


Joined: Feb 5, 2013
Post Count: 156
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

Hey Joe!

Perhaps this one can solve your problem: https://wordpress.org/plugins/embed-sweethome3d/

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)
[Feb 27, 2022, 2:55:49 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
YGYL
Advanced Member
Member's Avatar


Joined: Feb 5, 2013
Post Count: 156
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

The system environment is
WINDOWS SERVER 2019
WordPress 5.6
Nginx 1.21.1
MySQL 8.0.25
PHP-7.4
[Feb 27, 2022, 3:01:50 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9430
Status: Offline
Reply to this Post  Reply with Quote 
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
[Mar 9, 2022, 2:31:54 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
YGYL
Advanced Member
Member's Avatar


Joined: Feb 5, 2013
Post Count: 156
Status: Offline
Reply to this Post  Reply with Quote 
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)
[Mar 10, 2022, 12:41:43 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
KelvinUceta
Member
Member's Avatar

Belgium
Joined: Dec 26, 2021
Post Count: 28
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

Hi Gildaniel,

Did you succeeded to get the viewer in full screen? Reading through this post isn't quite clear and if did how did you proceeded?

Also tried "SweetHome3DJSViewer-6.4" but I can't get it.

Thx in advanced,

Kelvin
----------------------------------------
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
[Dec 17, 2022, 12:54:46 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
KelvinUceta
Member
Member's Avatar

Belgium
Joined: Dec 26, 2021
Post Count: 28
Status: Offline
Reply to this Post  Reply with Quote 
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
[Dec 18, 2022, 6:27:56 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 153   Pages: 16   [ Previous Page | 7 8 9 10 11 12 13 14 15 16 | Next Page ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved