It should be that * 2, actually. Nuke's NDC coordinates are -1 to +1 from the center (size of 2). Also, you should multiply the whole thing by -1, since moving the filmback to the left will result in the image moving to the right.
So, you'd want something like: -offset_in_pixels / (width_in_pixels / 2) or -offset_in_pixels / width_in_pixels * 2 On Thu, Apr 28, 2011 at 2:32 PM, [email protected] < [email protected]> wrote: > offset/width? > > On Thu, Apr 28, 2011 at 2:26 PM, John RA Benson < > [email protected]> wrote: > >> While we're on the subject of cameras and a little matrix math - >> >> does anyone have the math for converting pixel values of the offset of a >> filmback into the window u value for the camera? >> >> Say I want to offset the image by 15 pixels, I'd need to adjust the window >> u by ... ? >> >> thanks! >> JRAB_______________________________________________ >> Nuke-python mailing list >> [email protected] >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python >> > > > _______________________________________________ > Nuke-python mailing list > [email protected] > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > >
_______________________________________________ Nuke-python mailing list [email protected] http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
