Hi , you might have a look at the header section of the file 'rayinit.cal', here all predefined variables can be found.. The general ray direction e.g is Dx, Dy, Dz (which of course correponds to the view direction for the primary view rays.) -cb