Skip to content

Apply translate and rotate to user_defined cameras. #470

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

Open
wants to merge 1 commit into
base: release/v3.8.0
Choose a base branch
from

Conversation

mccoyn
Copy link

@mccoyn mccoyn commented Feb 18, 2025

user_defined cameras don't apply transformations to the user defined functions. This makes them more difficult to work with when moving the camera. This commit will apply transformations, if present, after the user defined functions.

You can see some discussion of the issue here. It can be worked around. For rotations, the work around makes the user defined functions much more complicated.

http://news.povray.org/povray.general/thread/%3CXnsA9E3A3F647A49seed7%40news.povray.org%3E/
http://news.povray.org/povray.binaries.images/thread/%3C5cec7461%40news.povray.org%3E/

The patch creates a transform in the camera to store the transformations as they are applied to the camera. When the rays are calculated, the user defined function is applied first, followed by the transform.

@mccoyn mccoyn changed the title Release/v3.8.0 Apply translate and rotate to user_defined cameras. Feb 18, 2025
@mccoyn mccoyn changed the base branch from master to release/v3.8.0 February 18, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant