Source code for pbrt, the renderer described in the third edition of "Physically Based Rendering: From Theory To Implementation", by Matt Pharr, Wenzel Jakob, and Greg Humphreys.
In the AnimatedTransform constructor that computes motion derivate terms, there's a mismatch between the names of some variables and the array indexes they're used to store.
The first six assignments look correct, but it looks like the last four don't match the array index they're using (i.e. they should be named q0x, q0y etc.).
Either that, or the variable names are correct and the array index is wrong (i.e. perhaps they should be accessing R[1]).
I don't understand the code well enough to know what the intention is here, just noticed that there was a mismatch.
In the AnimatedTransform constructor that computes motion derivate terms, there's a mismatch between the names of some variables and the array indexes they're used to store.
Lines 418 to 427 contain:
The first six assignments look correct, but it looks like the last four don't match the array index they're using (i.e. they should be named
q0x
,q0y
etc.).Either that, or the variable names are correct and the array index is wrong (i.e. perhaps they should be accessing
R[1]
).I don't understand the code well enough to know what the intention is here, just noticed that there was a mismatch.