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: 12
Posts: 12   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 25878 times and has 11 replies Next Thread
son87a
Newbie




Joined: Oct 28, 2021
Post Count: 12
Status: Offline
Reply to this Post  Reply with Quote 
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
[Oct 29, 2021, 2:34: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 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 3948
Status: Offline
Reply to this Post  Reply with Quote 
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
[Oct 29, 2021, 11:06:53 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
son87a
Newbie




Joined: Oct 28, 2021
Post Count: 12
Status: Offline
Reply to this Post  Reply with Quote 
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
[Oct 29, 2021, 11:21:23 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 3948
Status: Offline
Reply to this Post  Reply with Quote 
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
[Oct 29, 2021, 11: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 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
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 developer
[Oct 29, 2021, 12:01:29 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
son87a
Newbie




Joined: Oct 28, 2021
Post Count: 12
Status: Offline
Reply to this Post  Reply with Quote 
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 ?
[Oct 30, 2021, 4:37:15 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
son87a
Newbie




Joined: Oct 28, 2021
Post Count: 12
Status: Offline
Reply to this Post  Reply with Quote 
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
[Oct 30, 2021, 4:52:48 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: 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 developer
[Oct 31, 2021, 8:49:01 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
son87a
Newbie




Joined: Oct 28, 2021
Post Count: 12
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to add new 3d models for SweetHome3D JS?

Thank you helping me you're the best, Puybaret!
[Oct 31, 2021, 9:39:51 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
son87a
Newbie




Joined: Oct 28, 2021
Post Count: 12
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to add new 3d models for SweetHome3D JS?

Hi Puybaret,
How to run PropertiesToJson.java class ?
[Nov 9, 2021, 2:10: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 
Posts: 12   Pages: 2   [ 1 2 | 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