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 3486522 times and has 152 replies Next Thread
Gildaniel
Advanced Member
Member's Avatar

Russia
Joined: Aug 11, 2017
Post Count: 135
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

There is very nice feature of centering 3d-view by pressing left button of with middle buton drag in the desktop application

Is there a way to recenter 3d view online in HTML5 tool?
[Dec 20, 2022, 1:16:42 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Gildaniel
Advanced Member
Member's Avatar

Russia
Joined: Aug 11, 2017
Post Count: 135
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

Hi Kelin!

Yep, i've managed to make full browser screen canvas view
You can check https://regard-house.ru/3dplan/szp/4i.html and get this file to make the same feature
[Dec 20, 2022, 1:21:15 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Carabao
Newbie
Member's Avatar

Germany
Joined: May 25, 2022
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
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.

Is Firefox for IOS not supported?

Regards
Martin
[Mar 31, 2023, 8:02:02 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
CinemaWalls
Newbie




Joined: Jun 3, 2023
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

The generated HTML files do not open in the browser. Plugins for reading from local disk do not help. What to do? Doesn't anyone have a problem?
[Jun 3, 2023, 8:44:52 AM] 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 
confused Re: Export to HTML5 plug-in

The generated HTML files do not open in the browser. Plugins for reading from local disk do not help. What to do? Doesn't anyone have a problem?


Hi CinemaWalls,

And if you right-click on them and choose "Open with" kind of option? What happens?

Cheers,

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
[Jun 4, 2023, 4:25:16 AM] 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

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
[Jun 4, 2023, 12:49:35 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1442
Status: Offline
Reply to this Post  Reply with Quote 
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
[Aug 30, 2024, 5:13:40 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1442
Status: Offline
Reply to this Post  Reply with Quote 
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.)

This is the onclick code I have in my web page:
onclick='viewHomeInOverlay("content/3dview/model.zip", {roundsPerMinute:1,widthByHeightRatio:4/3,navigationPanel:"none"})'

----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects
[Sep 1, 2024, 9:14:00 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 - 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
[Sep 2, 2024, 6:36:33 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1442
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in - Bug

You can try what I did here .

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 smile
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects
[Sep 2, 2024, 7:42:33 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