Germany
Joined: May 25, 2022
Post Count: 3
Status:
Offline
Re: Export to HTML5 plug-in
Hello.
I have Firefox for IOS on my iPhone 11 and this is my default browser. If I open the link to my plan in Firefox (hosted on an external server), I get an "Error: Script Error" have to click "OK" about 60 - 70 times, otherwise Firefox does not work anymore. In Safari it works as expected.
France
Joined: Nov 7, 2005
Post Count: 9430
Status:
Offline
Re: Export to HTML5 plug-in
The generated HTML files do not open in the browser.
You probably have to allow your browser to read local files. As it depends on the browser and system you use, you’ll have to search the solution on Internet.
Plugins for reading from local disk do not help.
I’m not aware of such plug-ins. It’s generally a parameter or a menu item of your browser which allows to read local files.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Netherlands
Joined: Apr 8, 2022
Post Count: 1442
Status:
Offline
Re: Export to HTML5 plug-in
A (possibly impossible) wish: Deformations in the HTML view like the Pan3Dview plugin does in Sweet Home 3D: allow deformation in the 3Dview but now of course in the HTML view.
Deformations is one of the great things that sets Sweet Home 3D apart from other design programs. Showing this ability on a web page is great advertising. I would like to integrate it on Dodecagon.nl to give a 3Dview of some models.
---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects
Netherlands
Joined: Apr 8, 2022
Post Count: 1442
Status:
Offline
Re: Export to HTML5 plug-in - Bug
Bug found:
From the viewHomeInOverlay.html file:
activateCameraSwitchKey: true, /* Switch between top view / virtual visit with space bar if not false or missing */
You can leave out or set the activateCameraSwitchKey parameter to false but it doesn't do anything. The space bar still switches to the virtual visit, which I do not want in my case. There are no camera's apart from the default observerCamera and topCamera. This problem was already present in the previous versions. (My overlay views are just one or two models in an otherwise empty space. There's nowhere to go with a virtual visit.)
France
Joined: Nov 7, 2005
Post Count: 9430
Status:
Offline
Re: Export to HTML5 plug-in - Bug
Strange, I tried again the activateCameraSwitchKey parameter and it seemed to work on my side. When set to false, pressing the space bar has no effect.
About deformations in the viewer, you can already modify the transformations of a piece of furniture at screen in a animation for example controlled with a call to setInterval JavaScript function. The transformations array requested in setModelTransformations method must contain instances of Transformation class, and the easiest way to create such objects is to deform an object in Sweet Home 3D and retrieve the matching transformation values in the <transformation> tags of its saved Home.xml entry.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Images with a 3D icon after the caption can be clicked for a 3D view. You can look at the page source code to see what parameters are used.
The first image has activateCameraSwitchKey:"false" The second image has activateCameraSwitchKey:false And the other images have no activateCameraSwitchKey parameter.
Neither should respond to the space bar but all do. (Debian Linux with Firefox). The whole page moves up with the space bar which is normal to scroll a page up but it should not interfere with the overlay view by switching it to a virtual visit. -- Great that transformations are possible! I'll have to study the information you pointed me to. I just have to find the time between all other Sweet Home 3D activities
---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects