Download

Online

Gallery

Blog

  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: 141
Posts: 141   Pages: 15   [ Previous Page | 1 2 3 4 5 6 7 8 9 10 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1661853 times and has 140 replies Next Thread
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

is there a way of zooming the aerial view and moving the virtual visitor without mouse/keyboard
Pinch!

There's nothing to change the elevation of the visitor, but adding buttons for that should be quite easy. Just need some documentation to explain how to do it!
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Apr 14, 2016, 9:21:30 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
okh
Advanced Member




Joined: May 12, 2013
Post Count: 1545
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

Pinch!
Yes, well, I did try pinching, but cannot get it to work with either Opera or Chrome - pinching inside the canvas just rotates (and otherwise zooms the entire page). Under Win 8.1 pinching seems to zoom the page, regardless how much I try to focus inside the canvas. Maybe just me or my setup. Will try further. Either way, I suspect it is possible that I am not the only one having trouble (I hope), so buttons may be a good idea for a future release, just in case :-)

ok
[Apr 14, 2016, 9:45:35 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
swave
Member




Joined: Sep 15, 2015
Post Count: 40
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

I'm currently looking into home automation, what hardware systems there are and what GUIs they offer. If there was a possibility to add triggers to lamps, furniture etc in SH3D that can call external scripts in the HTML export and also get notified on changes (e.g. light switches) you'd have a kick-ass home automation GUI that no other can beat :)
[Apr 14, 2016, 11:21:12 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: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

Hi,

I just released the version 1.0 of the Export to HTML5 plug-in, with a little add-on to the Free 3D models page as a surprise.
Along with the Java source code included in the plug-in file, I published the source Javascript files in the new SweetHome3DJS project and generated the JSDoc of the API if you're interested.
swave, you may access to the information of a home through this API, and even... modify a loaded home. Just retrieve the HomePreviewComponent instance returned by viewHome and have fun! For your information, the API of the Javascript classes is some kind of subset of the Java API of Sweet Home 3D, but using a script language here will help to program small additional features much faster. For the 3D view itself, the main missing feature might be an API to manage picking, but that should come soon.

Okh, I added in this release the navigationPanel parameter that lets you display the navigation arrows or completely customize them if needed. I also added the viewerControlsAdditionalHTML parameter to customize the zone below the 3D view, for example to add Forward and Backward buttons displayed in the gallery examples only under Android, where pinch isn't supported in Javascript yet!

Note that the Javascript "minified" core-min.js, geom-min.js, triangulator-min.js, viewhome-min.js and viewmodel-min.js files were renamed with a dot instead of an hyphen and navigationPanel.png was added. So be sure to clean your lib folder if you deploy this new version, and update the <script> tags that reference these files if needed.
See you soon for more information about this release smile
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Apr 19, 2016, 12:49:28 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
okh
Advanced Member




Joined: May 12, 2013
Post Count: 1545
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

..add-on to the Free 3D models page as a surprise...
Nice!
Okh, I added in this release the navigationPanel parameter that lets you display the navigation arrows or completely customize...
That should do the trick for unhelpful software.

The canvas approach really is a huge improvement to SH3D presentations in terms of simplicity and compatibility. Congratulations!

ok
[Apr 19, 2016, 8:59:24 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: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

Sorry, during my last tests of the viewer, it looks like I forgot IE 11 where it fails (under Windows, I mainly use Edge).
Therefore, I had to release the new version 1.0.1 to fix this issue. Only Javascript files were modified.
Thanks okh for reporting the issue.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Apr 19, 2016, 12:52:58 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: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

For your information, I just released a new version 1.0.2 that fixes various issues, mainly for developers interested to use SweetHome3DJS API.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Apr 21, 2016, 6:01: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 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

Tonight, the version 1.0.3 fixes a bug in the plug-in that could generate reduced images with a wrong color profile in the exported home. If you saw some issues on the textures of your home while viewing it in a browser (too dark images or mixed with a pink color), then you should export it again with this new version.
Otherwise, this update fixes also an issue on selection management in the Javascript code, but that sould interest you only if you started to use SweetHome3DJS API.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Apr 23, 2016, 8:59:47 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: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

The last version 1.1, announced also in this article of the blog, fixes bugs on the position of the navigation panel when the user scrolls in the window where a canvas is displayed, brings a better management of the canvas when the window is resized, and also brings the new method getClosestItemAt in HomeComponent3D class to handle picking. In the current version, all objects in a home are pickable except the transparent parts of doors or windows, allowing you to pick objects visible through window panes!

Once I found out how to run the plug-in on a headless web server (as explained here), I also decided to add a new service on sweethome3d.com that lets registered users upload their .sh3d files on the web server to view them in 3D, like in this example. This should help the ones among you who wants to show their designs without the need to have their own web server or even run the Export to HTML5 plug-in on their computer.
At the moment, this service allows .sh3d files with a maximum size of 15 MB which should be enough for small to medium designs. Don't forget to save and compress your .sh3d files with Sweet Home 3D before uploading them, to avoid useless upload traffic and to be able to upload larger designs.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
----------------------------------------
[Edit 1 times, last edit by Puybaret at May 5, 2016, 6:35:42 PM]
[May 5, 2016, 5:52:26 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: 136
Status: Offline
Reply to this Post  Reply with Quote 
Re: Export to HTML5 plug-in

1.1 very great!!!!!!!!!!!
[May 7, 2016, 5:11:44 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: 141   Pages: 15   [ Previous Page | 1 2 3 4 5 6 7 8 9 10 | 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 2006-2024 eTeks - All rights reserved