camera and ray generator