Print at Dec 16, 2025, 5:02:12 AM
Posts: 12   Pages: 2   [ 1 2 | Next Page ]
View all posts in this thread on one page
Posted by son87a at Oct 29, 2021, 4:34:28 AM
confused   How to add new 3d models for SweetHome3D JS?
Hey guys,
I want add some 3dmodels for SweetHome3D JS.
I checked file DefaultFurnitureCatalog.json but it's hard to read.
I can't read the format type.
Any suggest here or i just missing something ?
Thank you

Posted by hansmex at Oct 29, 2021, 1:06:53 PM
Re: How to add new 3d models for SweetHome3D JS?
Have you thought of using libraries (*.sh3f) ??

H
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by son87a at Oct 29, 2021, 1:21:23 PM
Re: How to add new 3d models for SweetHome3D JS?
How to import *sh3f with SweetHome3D JS ?
I thought *.sh3f file only using for Desktop version. Am I wrong ?

S

Posted by hansmex at Oct 29, 2021, 1:49:28 PM
Re: How to add new 3d models for SweetHome3D JS?
Sorry, I missed the "JS"in your message... :-(


H
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by Puybaret at Oct 29, 2021, 2:01:29 PM
Re: How to add new 3d models for SweetHome3D JS?
In a way Hans wasn't completely wrong, because reading the DefaultFurnitureCatalog.json generated file and PluginFurnitureCatalog.properties file coming from SH3F (zipped) files, you should quickly understand own to build your own catalog (I would suggest to start by creating your own DefaultFurnitureCatalog.json).
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by son87a at Oct 30, 2021, 6:37:15 AM
Re: How to add new 3d models for SweetHome3D JS?
Hi Puybaret,
How to I can get the new DefaultFurnitureCatalog.json from my own *.sf3f file ?

Posted by son87a at Oct 30, 2021, 6:52:48 AM
Re: How to add new 3d models for SweetHome3D JS?
I looking the PluginFurnitureCatalog.properties and see this:

id#293=Scopia#football-goal
name#293=Football goal
tags#293=Outdoor, Garden, Soccer, Hockey, Sport
creationDate#293=2019-07-02
category#293=Exterior
icon#293=/scopia/football-goal.png
model#293=/scopia/football-goal/football-goal.obj
multiPartModel#293=true
width#293=152.4
depth#293=89
height#293=120
dropOnTopElevation#293=-1
movable#293=true
doorOrWindow#293=false
creator#293=Scopia

So, I just need convert them to json type, its right ?
One more question, I have MyOwnFurnitureCatalog.json, how to add it to sweethome3djs ?
Thank you

Posted by Puybaret at Oct 31, 2021, 9:49:01 AM
Re: How to add new 3d models for SweetHome3D JS?
You can convert a .sh3f file to a .json file with PropertiesToJson application.
Adding more furniture libraries to SweetHome3DJSApplication can be done with the furnitureCatalogURLs optional parameter. See the HTML source code of the SweetHome3DJSApplication used on sweethome3d.com for a real example.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by son87a at Oct 31, 2021, 10:39:51 AM
Re: How to add new 3d models for SweetHome3D JS?
Thank you helping me you're the best, Puybaret!

Posted by son87a at Nov 9, 2021, 3:10:30 AM
Re: How to add new 3d models for SweetHome3D JS?
Hi Puybaret,
How to run PropertiesToJson.java class ?

Posts: 12   Pages: 2   [ 1 2 | Next Page ]