Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can lookAt look at an arbitrary volume? #2307

Open
azaroth42 opened this issue Jun 12, 2024 · 1 comment
Open

Can lookAt look at an arbitrary volume? #2307

azaroth42 opened this issue Jun 12, 2024 · 1 comment

Comments

@azaroth42
Copy link
Member

azaroth42 commented Jun 12, 2024

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.

@vincentmarchetti
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants