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

Fixed ray differentials for analytical sphere #764

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mariasoroka
Copy link
Contributor

@mariasoroka mariasoroka commented Jun 2, 2023

Description

Fixes ray differentials for the analytical sphere shape.

For a point $p = \begin{pmatrix} x \\ y \\ z \end{pmatrix} = \begin{pmatrix} r \cos(2\pi u) \\ r\sin(2\pi u) \\1 - 2v \end{pmatrix}$ the differential $\frac{dp}{dv}$ should be equal to $2 \begin{pmatrix} \cos(2\pi u) \frac{z}{r}\\ \sin(2\pi u) \frac{z}{r} \\ -1 \end{pmatrix}$.

@wjakob wjakob force-pushed the master branch 3 times, most recently from 3f3b8d0 to 1bdea6e Compare October 12, 2023 19:49
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