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 getters for camera parameters #1419

Open
Nokse22 opened this issue May 3, 2024 · 2 comments
Open

Add getters for camera parameters #1419

Nokse22 opened this issue May 3, 2024 · 2 comments
Labels
help wanted Please help with this issue! source:libf3d type:enhancement New feature or request

Comments

@Nokse22
Copy link
Contributor

Nokse22 commented May 3, 2024

Is your feature request related to a problem? Please describe.
When using libf3d and an external window you will need to use yaw, azimuth, elevation to move but to get them in degree you would need to calculate them from the camera position.

Describe the solution you'd like
It could be useful to have getters for these parameters. I know they are not actually parameters, but ways to manipulate the camera, but a getter for yaw/elevation that returns the angle of the camera to the model can be useful, also distance from the model etc.

Contribution
I'm sorry, I don't know C++

@mwestphal mwestphal added type:enhancement New feature or request source:libf3d help wanted Please help with this issue! labels May 3, 2024
@mwestphal
Copy link
Contributor

but a getter for yaw/elevation that returns the angle of the camera to the model can be useful

I suppose they could be computed for easier usage of the class indeed.

distance from the model etc.

This one is way more complex, unless you mean distance to the focal point.

@Nokse22
Copy link
Contributor Author

Nokse22 commented May 4, 2024

This one is way more complex, unless you mean distance to the focal point.

Yes, from the focal point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Please help with this issue! source:libf3d type:enhancement New feature or request
Projects
Status: To do
Development

No branches or pull requests

2 participants