api icon indicating copy to clipboard operation
api copied to clipboard

Can `lookAt` look at an arbitrary volume?

Open azaroth42 opened this issue 1 year ago • 1 comments

e.g. create a cube around something (a bounding box) and then have the camera lookAt that volume such that it's all within the viewport

Can look at a group (e.g. embedded scene) with multiple objects, but not at a volume around a part of a model.

azaroth42 avatar Jun 12 '24 16:06 azaroth42

A cubic -- or bounding box -- "Selector" is probably useful for some things, but I think it's only a partial solution to the lookAt question. I can't think of many presentations where a content developer would want to look at a volume from just any randomly selected direction. I propose that the 'lookAt' target which fits a lot of uses but is not overspecified, is a selector which describes a positioned and oriented rectangle in the model space. That rectangle would not be rendered but as the target of an annotation, whose body is a Camera, the Camera could be specified to look face-on at the rectangle, with the rectangle filling the viewport. Whatever interesting part of the model which is coincident with the (invisible) rectangle would be in the camera view.

vincentmarchetti avatar Jun 13 '24 21:06 vincentmarchetti

From TSG discussion, Yes - Annotation URI, PointSelector or WKTSelector are all lookAt targets.

Closing as answered, no new spec needed.

tomcrane avatar Mar 17 '25 17:03 tomcrane