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

Layout::SketchUpModel need camera location methods

Open 3dmod opened this issue 3 years ago • 4 comments

Layout::SketchUpModel is missing the ability to view/set the camera location in relationship to the bounds.

This means that not all Layout::SketchUpModel are looking at same location.

By dragging the edges of a view with preserve_scale_on_resize = true, the camera location could be paned anywhere along the initialized scene camera plane.

The screen shot below shows 3 different Layout::SketchUpModel all with the same scene and scale.

Screen Shot 2021-06-02 at 07 54 52

Maybe the Layout::SketchUpModel should have a 2D camera transformation?

3dmod avatar Jun 02 '21 12:06 3dmod

I think we need both a getter/sett for the viewport "centroid" point and a camera placement API similar to that of the SketchUp Ruby API. I don't know how difficult this would be to implement though as I haven't worked with the Ruby API.

@ackarkka what are your thoughts?

Eneroth3 avatar Jun 02 '21 12:06 Eneroth3

We definitely need to add API for camera positioning control of Sketchup viewports in LayOut models. However, we are considering changing how the internal architecture of LayOut's camera overrides for SketchUp viewports, so we don't want to write an API that will become either restrictive for us in making changes or obsolete.

ackarkka avatar Jun 21 '21 20:06 ackarkka

Makes perfect sense!

(Feel free to keep me posted about the architectural changes)

Eneroth3 avatar Jun 22 '21 06:06 Eneroth3

@ackarkka

Is this up for discussion yet?

3dmod avatar Jun 29 '23 15:06 3dmod