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: 1
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 108 times and has 0 replies Next Thread
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1488
Status: Offline
Reply to this Post  Reply with Quote 
Tricking the 2D view/scroll area and fixing zoom shifting

When you open an existing project the 2D field doesn't always display all objects in the 2D pane and you can't scroll far enough to objects on the left edge. Previously I "fixed" this by dragging a random object top, left, bottom, and right to a larger value and ctrl-Z it back to its original position. That resized the 2D area and now zooming doesn't shift the 2D view. This mostly occurs when you have multiple objects that combined do not center at 0,0 and span a large area. I suspect that this is caused by a display area calculation that looks at the existing visible objects and calculates an area for display. That calculation doesn't work correctly when the needed area is too big. The "zoom-shifting" probably occurs because the calculated area doesn't center on 0,0.
Since I have to do this every single time I open a project that became a little tedious and I decided to find a solution to fix this permanently. I found a solution, not perfect but it works.

Add 4 boxes to the 2D view in a separate level and place them as corners of a square around the rest of your project. Set the marker coordinates so they form a square around the 0,0 position and generously surround your project objects. Close and open your project again and the 2D field calculates its area using the corner markers thus solving the view/scroll/zoom problem.

The level with the markers must be visible for the field area calculation. Once calculated you can make the level invisible and the calculated area size remains. You can also place the markers in your work level and make them invisible after the view area is recalculated.

I have added a "Marker" object to the DodecagonShapes library. This is a simple box edited to have a single material "Marker" in bright red. The advantage is that it shows in your furniture list as a red box with the name "Marker". This makes it easy to see the difference between regular boxes and markers if you want the markers to remain visible.

I now add markers to every project that doesn't have them yet and so far it does exactly what I want them to do.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects
[Aug 15, 2025, 9:51:24 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ 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