Features

Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Help  | 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: 14
Posts: 14   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 7526 times and has 13 replies Next Thread
okh
Advanced Member




Joined: May 12, 2013
Post Count: 1287
Status: Offline
Reply to this Post  Reply with Quote 
Toggle visibility INSIDE grouped items

Grouping items that belong together is handy. Be it a door and frame, or different versions of a model. What would be nice, is if it were possible to check/uncheck visibility for items inside a group.

See thread 6333 as an example: Two different models (sofabed open and sofabed closed ) grouped together so they can be moved together. Only one should be visible at a time, but it does not seem possible to check/uncheck the visible boxes inside groups. (?) ok


[Nov 18, 2015 11:15:49 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 5837
Status: Offline
Reply to this Post  Reply with Quote 
Re: Toggle visibility INSIDE grouped items

As reported during version 5 development, I didn't allow this feature to avoid a too complicated management of the size and elevation of a partially visible group.
But maybe, we could find a reasonable way to make it happen. After all, when you hide some parts of a piece of furniture with the invisible material setting added in the coming version 5.2, its size visually changes too, but not its bounding box in the plan and its size elsewhere in the program. Maybe we could similarly consider that the size of a group could include all the visible and invisible items it contains and resizing of a group would change also proportionally its invisible items. Just wonder how users could guess that a group contains some invisible items when they view such a group in the plan with a larger bounding box most of the time...
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Feb 12, 2016 8:56:02 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.eteks.com [Link] Report threatening or abusive post: please login first  Go to top 
mazoola
Advanced Member
Member's Avatar

USA
Joined: Mar 25, 2015
Post Count: 153
Status: Offline
Reply to this Post  Reply with Quote 
Re: Toggle visibility INSIDE grouped items

Do users rely on the 2D/bounding box view for placement? It probably has to do with my using primarily imported or custom furniture objects (I have to be able to show my layout can be achieved with off-the-shelf items and/or meets our local, persnickety building codes), but I find myself positioning things in 3D as often as 2D. (I could probably make better use of magnetism than I do, as well.)
[Feb 12, 2016 9:10:02 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: 5837
Status: Offline
Reply to this Post  Reply with Quote 
Re: Toggle visibility INSIDE grouped items

The bounding box of an individual piece is used to select it, and the bounding box of pieces and groups is used to place objects along walls that depends on magnetism when it's active, and in other things like alignment menu items.
Maybe I could display invisible objects of a visible group with a surrounding box drawn with a very light gray? I'm going to see how it could look like.
And there are other things to consider: if you make all objects of a group invisible, should this group be automatically considered as invisible in the furniture list too (keep in mind that the group may be collapsed in the list)? When you toggle the visibility of a group itself, should it change the visibility of all its child objects too?

It's not a so easy subject! wink
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Feb 12, 2016 2:13:15 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.eteks.com [Link] Report threatening or abusive post: please login first  Go to top 
mazoola
Advanced Member
Member's Avatar

USA
Joined: Mar 25, 2015
Post Count: 153
Status: Offline
Reply to this Post  Reply with Quote 
Re: Toggle visibility INSIDE grouped items

The translucent bounding box idea sounds promising -- although I'm not sue how it would work with a situation like the one OK mentions with the multiple states of a single item. Showing both visible and invisible group members sounds like it could be confusing, while showing only the visible ones doesn't answer the problem that started you down this path (i.e., possible confusion from bounding box larger than visible items).

I am definitely a supporter of being able to toggle visibility of objects in a group without having to explode the group. Personally, I think making the bounding box as large as its maximum possible size regardless of the visibility of objects contained shouldn't be too confusing. I also like the touch of having the group go invisible if all contents items go invisible.

Reluctantly, I'd have to say the inverse does not hold: Togging visibility on a group should leave its contents unchanged. This might seem illogical when toggling an all-invisible group to visibility at the group level, and I'd entertain an argument to toggle all group items on in this case only, but I'd prefer SH3D not change group member visibility at all.
[Feb 12, 2016 6:50:06 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Ceciliabr
Advanced Member
Member's Avatar

Denmark
Joined: Jul 7, 2013
Post Count: 205
Status: Offline
Reply to this Post  Reply with Quote 
Re: Toggle visibility INSIDE grouped items

Unless I have misunderstood the problem:

I have solved this for my own part by using a transparent png to make objects invisible within a group. There are three options when you open the Modify-window, Color, Texture and Modify. Normally models have more than one color or texture, so we use the Modify-option for modifying. I'm simply using the Texture-option to make the whole model transparent. And I can change back at any time by selecting the Modify-option.
[Feb 20, 2016 7:36:27 AM] Show Printable Version of Post    View Member Profile    Send Private Message    http://cecprojects.wordpress.com [Link] Report threatening or abusive post: please login first  Go to top 
mazoola
Advanced Member
Member's Avatar

USA
Joined: Mar 25, 2015
Post Count: 153
Status: Offline
Reply to this Post  Reply with Quote 
Re: Toggle visibility INSIDE grouped items

I hadn't thought of that -- I assume you're applying the texture to the entire model under 'Color and texture.' I can see two potential issues, though: First, you still have the problem Emmanuel is currently wrestling: Namely, the 2D bounding box is potentially larger than the maximum dimensions of all currently visible objects. (It's undoubtedly not a problem for you, since you're explicitly "invisible-ing" objects and would be aware of the disconnect.) Second, under some circumstances invisible textures aren't always invisible, as shown in this comment. But, with those caveats, your approach is definitely worth giving a try.
[Feb 21, 2016 9:35:34 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: 1287
Status: Offline
Reply to this Post  Reply with Quote 
Re: Toggle visibility INSIDE grouped items

Using a transparent image, of course, works, but is just a bit to cumbersome. In practice I tend to use two levels - i.e. a new "same level" with an alternative view. On the primary level I put door frames and all the fixed furniture - a bare room if you like. On the misc-other-stuff level I put doors and other stuff that will clutter my visualisation of the room.

Or - I sometimes to get a visual impression use a semi-transparent texture. Can be good for planning.


[Feb 21, 2016 11:22:39 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Ceciliabr
Advanced Member
Member's Avatar

Denmark
Joined: Jul 7, 2013
Post Count: 205
Status: Offline
Reply to this Post  Reply with Quote 
Re: Toggle visibility INSIDE grouped items

It might not be a very sophisticated solution, but what I have done is to a create a square (100 X 100) pixels in Photoshop, reduced the layer opacity to zero, and exported it as a png with transparency.
I have so far never seen any trace of an object after applying this texture to it.
[Feb 21, 2016 2:25:54 PM] Show Printable Version of Post    View Member Profile    Send Private Message    http://cecprojects.wordpress.com [Link] Report threatening or abusive post: please login first  Go to top 
okh
Advanced Member




Joined: May 12, 2013
Post Count: 1287
Status: Offline
Reply to this Post  Reply with Quote 
Re: Toggle visibility INSIDE grouped items

I think the visible invisible objects may have to do with surfaces of the object. I still trying to figure out wrongly oriented normal, double surfaces and two sided exports, but most decent models (even with some formal errors) will vanish nicely in SH3D with an invisible texture (probably very similar to yours, only 64×64 - as, apparently, some Wavefront (.obj) implementations may run into trouble if the pixel size is not a multiplier of 2 - but now I am really out of my depth).

But just for the record - the picture of the sofabed was intended show the ghost fold-out (20% opacity) - easier to see whether there is enough space when planning. If I apply an invisible texture - my ghost bed also vanishes (at least from the 3D view).

ok
[Feb 21, 2016 2:40:25 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 14   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-2017 eTeks - All rights reserved