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

Add scene.hdr camera angle adjustability #482

Closed
etoni044 opened this issue Oct 31, 2023 · 1 comment
Closed

Add scene.hdr camera angle adjustability #482

etoni044 opened this issue Oct 31, 2023 · 1 comment

Comments

@etoni044
Copy link
Collaborator

etoni044 commented Oct 31, 2023

HDR generated images of the scene from running scene.saveImage() automatically set the view angle to be from the East/West. This works well for south-facing tilted arrays, but results in images that are not particularly useful for visualizing east-west oriented arrays. For example, I am running E-W vertical systems, which result in images like the following:
scene-hdr-EW-vertical_3m

It would be useful to add some simple ways to adjust the camera angle for images generated with scene.saveImage.

@etoni044 etoni044 changed the title Add scene viewpoint adjustability Add scene.hdr camera angle adjustability Oct 31, 2023
@cdeline
Copy link
Contributor

cdeline commented Sep 17, 2024

Yes, this is already possible using scene.saveImage - the view input is passed as a parameter into saveImage, which is the name of a view file in your \views\ directory. The default value is 'side.vp'.

Custom view files can be created and saved to the \views\ directory.

Details on the syntax for .vp files is viewable in the rpict man page:

| -vtt: | Set view type to t. If t is ’v’, a perspective view is selected. |
| -vp x y z: | Set the view point to x y z . This is the focal point of a perspective view or the center of a parallel projection.|
|-vd xd yd zd: | Set the view direction vector to xd yd zd . The length of this vector indicates the focal distance as needed by the -pd option, described below. |
|-vu xd yd zd: | Set the view up vector (vertical direction) to xd yd zd .|
|-vh val: | Set the view horizontal size to val. For a perspective projection (including fisheye views), val is the horizontal field of view (in degrees). For a parallel projection, val is the view width in world coordinates.|
|-vv val: | Set the view vertical size to val.|

As an example, the default text for 'side.vp' is:
rvu -vtv -vp -10 1.5 3 -vd 1.581 0 -0.519234 -vu 0 0 1 -vh 45 -vv 45 -vo 0 -va 0 -vs 0 -vl 0

@cdeline cdeline closed this as completed Sep 17, 2024
@shirubana shirubana reopened this Sep 17, 2024
This issue was closed.
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

3 participants