actually i have just a (short) question. i'm using Typo3 and it was easy to integrate the html5-view to the cms. also the view itself works basically responsive, not final modified yet. but the question is: how powerful are the libs for the view? i'd like to integrate some of my models, to be on the safe side, i copy each model to an own folder with all the libs and adjust the path. in terms of a cms id would make more sense to place the libs to ONE place and just point the path to the model - this will also allow easier update, if the libs might be modified (and btw. easier to create an extension for typo3). but can the libs handle more models at the same time? and what do you think, should be the largest size for an unique model? would be fine to get some ideas and suggestions, because in the near future i prepare models/workshop for the "victoriaturm/mannheim/germany" and also for the "messeturm/frankfurt/germany" to show the power of SH3D. you might find the early stages from now on here to get an impression: https://factor118.de/architektur/ https://factor118.de/architektur/
Power of html5-View?
This topic has been viewed 3066 times and has 3 replies
- Pixelwizard
- Posts: 31
- Joined: Mon Sep 10, 2012 7:54 pm
- Contact:
Power of html5-View?
from time to time 
actually i have just a (short) question. i'm using Typo3 and it was easy to integrate the html5-view to the cms. also the view itself works basically responsive, not final modified yet. but the question is: how powerful are the libs for the view? i'd like to integrate some of my models, to be on the safe side, i copy each model to an own folder with all the libs and adjust the path. in terms of a cms id would make more sense to place the libs to ONE place and just point the path to the model - this will also allow easier update, if the libs might be modified (and btw. easier to create an extension for typo3). but can the libs handle more models at the same time? and what do you think, should be the largest size for an unique model? would be fine to get some ideas and suggestions, because in the near future i prepare models/workshop for the "victoriaturm/mannheim/germany" and also for the "messeturm/frankfurt/germany" to show the power of SH3D. you might find the early stages from now on here to get an impression: https://factor118.de/architektur/ https://factor118.de/architektur/
actually i have just a (short) question. i'm using Typo3 and it was easy to integrate the html5-view to the cms. also the view itself works basically responsive, not final modified yet. but the question is: how powerful are the libs for the view? i'd like to integrate some of my models, to be on the safe side, i copy each model to an own folder with all the libs and adjust the path. in terms of a cms id would make more sense to place the libs to ONE place and just point the path to the model - this will also allow easier update, if the libs might be modified (and btw. easier to create an extension for typo3). but can the libs handle more models at the same time? and what do you think, should be the largest size for an unique model? would be fine to get some ideas and suggestions, because in the near future i prepare models/workshop for the "victoriaturm/mannheim/germany" and also for the "messeturm/frankfurt/germany" to show the power of SH3D. you might find the early stages from now on here to get an impression: https://factor118.de/architektur/ https://factor118.de/architektur/
WIN10 Pro 64bit * 16 GB RAM * AMD FX 6100 * Geforce GTX 660
Re: Power of html5-View?
Thanks for showing your work 
As explained in this thread, the home files created with the Export to HTML5 plug-in contain a [font=courier new]Home.xml[/font] entry that respects this DTD. This XML file stores the 3D models, texture images and icons used by furniture and other objects in the attributes named [font=courier new]model[/font], [font=courier new]icon[/font], [font=courier new]planIcon[/font] and [font=courier new]image[/font]. The value of this attribute can be a file stored in the same ZIP file as [font=courier new]Home.xml[/font] (for example "4/model.obj"), or a URL of a file stored on the same server as the ZIP file (security might prevent to reference a file on another server). This URL can reference directly a file like in
[font=courier new]http://www.sweethome3d.com/textures/ete ... ercles.png[/font]
or reference a file within a zip file like
[font=courier new]jar:http://www.sweethome3d.com/models/contr ... tterie.zip!/batterie.obj[/font]
when it starts with [font=courier new]jar:[/font] (the previous URL references the file [font=courier new]batterie.obj[/font] in the ZIP file [font=courier new]http://www.sweethome3d.com/models/contr ... tterie.zip[/font]).
Hope this can help you to organize your data.
As explained in this thread, the home files created with the Export to HTML5 plug-in contain a [font=courier new]Home.xml[/font] entry that respects this DTD. This XML file stores the 3D models, texture images and icons used by furniture and other objects in the attributes named [font=courier new]model[/font], [font=courier new]icon[/font], [font=courier new]planIcon[/font] and [font=courier new]image[/font]. The value of this attribute can be a file stored in the same ZIP file as [font=courier new]Home.xml[/font] (for example "4/model.obj"), or a URL of a file stored on the same server as the ZIP file (security might prevent to reference a file on another server). This URL can reference directly a file like in
[font=courier new]http://www.sweethome3d.com/textures/ete ... ercles.png[/font]
or reference a file within a zip file like
[font=courier new]jar:http://www.sweethome3d.com/models/contr ... tterie.zip!/batterie.obj[/font]
when it starts with [font=courier new]jar:[/font] (the previous URL references the file [font=courier new]batterie.obj[/font] in the ZIP file [font=courier new]http://www.sweethome3d.com/models/contr ... tterie.zip[/font]).
Hope this can help you to organize your data.
Emmanuel Puybaret, Sweet Home 3D creator
- Pixelwizard
- Posts: 31
- Joined: Mon Sep 10, 2012 7:54 pm
- Contact:
Re: Power of html5-View?
many thanks for this information. gives me some new ideas ,)
guess, my issue is a little bit simpler at all. after export to htm5, i get a zip, which contains a zip. when i extract the first zip, i will find also the lib-folder(s).
these libs are the same for all exported files(?) and referenced in the html-files for showing the model.
i'd like to place the libs on a unique place, change the reference to this path and later i just need to change - one - line in the html to point the zip of the model.
i'll try it this way, create approx 10-15 models and ask some friends to call the diffrent models at the same time to see what happens.
guess, my issue is a little bit simpler at all. after export to htm5, i get a zip, which contains a zip. when i extract the first zip, i will find also the lib-folder(s).
these libs are the same for all exported files(?) and referenced in the html-files for showing the model.
i'd like to place the libs on a unique place, change the reference to this path and later i just need to change - one - line in the html to point the zip of the model.
i'll try it this way, create approx 10-15 models and ask some friends to call the diffrent models at the same time to see what happens.
WIN10 Pro 64bit * 16 GB RAM * AMD FX 6100 * Geforce GTX 660
Re: Power of html5-View?
The easiest way should be to use a unique name for each OBJ file. Therefore, in the [font=courier new]Home.xml[/font] file, you could easily replace each [font=courier new]xxx/objectName.obj[/font] by an URL similar to [font=courier new]jar:http://server/path/object.zip!/objectName.obj[/font].
It's more or less what is done in the Export action of the Exported homes manager that tries to reduce the size of each sh3d file exported on sweethome3d.com, by referencing URLs to free models as often as possible.
It's more or less what is done in the Export action of the Exported homes manager that tries to reduce the size of each sh3d file exported on sweethome3d.com, by referencing URLs to free models as often as possible.
Emmanuel Puybaret, Sweet Home 3D creator
Who is online
Users browsing this forum: No registered users and 1 guest