api-issue-tracker icon indicating copy to clipboard operation
api-issue-tracker copied to clipboard

Safe frames (Camera#aspect_ratio) do not work with Two Point Perspective and Parallel Projection

Open noelwarren opened this issue 4 years ago • 2 comments
trafficstars

This behavior is true for all sketchup versions (2021 and below) This behavior is true for both mac and windows

When toggling "save frames" on via a command like the one below, SketchUp will display an area of the viewport with desired aspect ratio. This feature is meant to achieve two goals.

  1. Give the user a clear idea of how their model is going to appear when used with 3rd party visualization tools
  2. Ensure this output is the same when opened on another instance of sketchup (with a different viewport aspect ratio)

The second is not being achieved in the following circumstances a) when the camera is parallel projection and the viewport aspect ratio is less than the safe frame aspect ratio (horizontal bars) b) when the camera is two point perspective and there is a 2d offset (Camera#center_2d achieved by panning after switching to two point perspective)

Sketchup.active_model.active_view.camera.aspect_ratio = 1

The following file contains 3 scenes, all with safe frames enabled. The first is perspective and works fine. The second is parallel. Resize the sketchup window such that the safe frame bars appear top and bottom and watch Sumelle slide to the left. The third is two point perspective. Resize in any direction and watch Sumelle fall out of view

safe_frames.zip

This is a big problem four users that have multiple people working on the same file, as render output can not be guaranteed.

noelwarren avatar Mar 30 '21 11:03 noelwarren

Logged as: SKEXT-3038

sketchupbot avatar Apr 12 '21 06:04 sketchupbot

Is there any update on this? Any plans to prioritise it?

noelwarren avatar Jul 01 '25 11:07 noelwarren