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: 45
Posts: 45   Pages: 5   [ Previous Page | 1 2 3 4 5 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 69132 times and has 44 replies Next Thread
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9388
Status: Offline
Reply to this Post  Reply with Quote 
Re: Staircase generator plug-in

Special cases can be created by assembling intermediate staircases.
For example, if you need a handrail with brackets along a wall then a handrail with a balluster, you can assemble an intermediate straight staircase, two intermediate square spiral staircases and a simple straight staircase.



Happy New Year to you all smile
----------------------------------------
Attachment StaircaseWithStorageRoom.sh3d (186509 bytes) (Download count: 440)

----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jan 16, 2023, 5:32: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 
captaincook
Advanced Member
Member's Avatar

France
Joined: Oct 20, 2017
Post Count: 233
Status: Offline
Reply to this Post  Reply with Quote 
Re: Staircase generator plug-in

Bonjour Emmanuel.

Et bien j'ai suivi vos conseils à la lettre et le résultat est pratiquement identique à mon escalier d'origine.
J'ai simplement recopier la rambarde d'origine sur le nouveau.



Bonne journée et encore un grand merci.
[Jan 17, 2023, 4:20:32 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: 1065
Status: Offline
Reply to this Post  Reply with Quote 
Re: Staircase generator plug-in

The staircase generator sets the system PC user as the creator of the generator staircase. This is NOT something you want to happen if you share your created home here on the site.
I suggest that the generator dialog includes a field to set the creator name.

Oh, and the Roof generator does the same. Something for Dorin to fix wink
----------------------------------------
Dodecagon.nl
750+ 3D models, manuals, and projects
[Mar 11, 2023, 7:31:08 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: 1065
Status: Offline
Reply to this Post  Reply with Quote 
Re: Staircase generator plug-in

Daniels118 found the source of the problem:
HomePieceOfFurniture roofPiece = new HomePieceOfFurniture(new CatalogPieceOfFurniture(null, roofName, null, iconContent, modelContent, size.x, size.z, size.y, 0, true, null, System.getProperty("user.name"), true, null, null));

(In the roof generator thread: https://sweethome3d.com/support/forum/viewthread_thread,11330_offset,150#57817 )

Dorin tested with replacing the value with null which worked and will be avialable in the next update.
Maybe the same solution could be used for the roof generator.
----------------------------------------
Dodecagon.nl
750+ 3D models, manuals, and projects
[Mar 12, 2023, 11:26:40 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: 9388
Status: Offline
Reply to this Post  Reply with Quote 
Re: Staircase generator plug-in

I consider that when you want to share a model, you prefer to have some kind of credit.
If you fear your login may be disclosed, just edit the OBJ file and replace your login by whatever you want.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Mar 12, 2023, 10:19:25 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: 1065
Status: Offline
Reply to this Post  Reply with Quote 
Re: Staircase generator plug-in

I consider that when you want to share a model, you prefer to have some kind of credit.
If you fear your login may be disclosed, just edit the OBJ file and replace your login by whatever you want.
Sorry, but I see that the other way around: never disclose a login name, it's a security leak. In many cases it will not be the name you want to use to get credit with anyway. If I want credit under a specific name I can edit the object file to insert that name but I don't want to edit EVERY object I want to share, and again with updates.
My username is different on PC and laptop and none are 'Keet', the name I would use to get credit for a shared object. Similar situations will go for most users I believe.

To explain the severity of the problem besides it being a security leak: For several years now I am creating dozens of different houses for a valley/island with most of the furniture, doors, windows, etc. custom made. This problem means I will have to edit every single house. When I have shared the projects (in a year or two) I will have to do all of that again every time I have updated houses and share again.

I'm a software developer. I can create a script or program to run over all houses and do the editing but most other users will not be capable to correct something that the software shouldn't have done in the first place. It's also easy to forget such a last run over the projects before sharing.
If I ever disclosed usernames in software output I would be out of business, please change this to something else. The most perfect way would be to have a preference setting where you can set a name for credit in exports but anything other than a login name would do. Changing 'System.getProperty("user.name")' to '"creator"' is probably the easiest bug fix you have ever done smile
----------------------------------------
Dodecagon.nl
750+ 3D models, manuals, and projects
[Mar 13, 2023, 8:10: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 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9388
Status: Offline
Reply to this Post  Reply with Quote 
Re: Staircase generator plug-in

As some other plug-ins may use this way of doing and you don’t want it, you could try to set the user.name property to another value with the Java option -Duser.name=myname (this option can be set using the same way as the -Xmx option used to increase memory and explained in the FAQ).
This should fix this way of doing that you consider as a security leak.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Mar 13, 2023, 4:09:54 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: 1065
Status: Offline
Reply to this Post  Reply with Quote 
Re: Staircase generator plug-in

As some other plug-ins may use this way of doing and you don’t want it, you could try to set the user.name property to another value with the Java option -Duser.name=myname (this option can be set using the same way as the -Xmx option used to increase memory and explained in the FAQ).
This should fix this way of doing that you consider as a security leak.
That works! (Although I'm still of the opinion that it's a serious security leak that should not have been introduced in the first place.)

I also found a second way around this which might be usefull for other users: Use the furniture library editor for every single object you create where you can set the creator name for each object. Once you add furniture in your plan that is imported through a furniture library the name is used as set in the library. This also allowes to use multiple different creator names if you wish to do so.
----------------------------------------
Dodecagon.nl
750+ 3D models, manuals, and projects
[Mar 13, 2023, 6:09: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 
Tungmeister
Newbie



UK
Joined: Jul 29, 2023
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Re: Staircase generator plug-in

I might provide a longer list of materials in a coming version since some of you think it's really necessary. I'll update the translation at that moment.

Could you share how to set randomized coordinates for the textures as you did for the threads and risers?
Source code is included in the plug-in so you can have a look by yourself. It's just a random offset added to x and y texture coordinates, a different offset being drawn for each tread and riser...


Could you help me remove the random values please? My stairs have a stair runner on them so I need the texture to be uniform across all the steps. I downloaded the source and replaced the random values with 0s however after compiling and adding the plugin sweethome just hangs on the splash screen and I can't work out what I'm doing wrong.
[Jul 29, 2023, 9:34:43 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: 9388
Status: Offline
Reply to this Post  Reply with Quote 
Re: Staircase generator plug-in

Did you compile the plug-in with Java 8 or options to generate Java bytecode compatible with Java 8 (or Java 11 or 15 if you use Sweet Home 3D with those versions)?
You could also create the stair runner with a smaller staircase without stringers and handrails. Just elevate it a bit to make it appear on top of the stairs of the main staircase, like in the following example.


----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
----------------------------------------
[Edit 1 times, last edit by Puybaret at Jul 29, 2023, 8:55:08 PM]
[Jul 29, 2023, 6:47:31 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 45   Pages: 5   [ Previous Page | 1 2 3 4 5 | 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