Hello!
Trying to make a sort of mini-map for a high rise building. The mini-map renders the floors as simple boxes stacked on top of each other. I want the canvas height to be dynamic depending on how many floors there are, and I want the canvas to fit the stacked boxes as perfectly as it gets. For each added floor the canvas should grow to accommodate.
Right now I’m having some troubles with the calculations for the canvas height and frustum… relying on some magic numbers to account for the viewing angle but its not working well for tall buildings.
You can checkout my minimal example here: Three Js Start (forked) - StackBlitz
Feels like there has to be better solution that actually works for every scenario…
Any help would be appreciated!