karansher / computer-graphics-ray-casting

Computer Graphics Assignment about Ray Casting
1 stars 0 forks source link

viewing_ray, is the width / height the number of pixels? #24

Open DerekCresswell opened 1 year ago

DerekCresswell commented 1 year ago

The camera has a WH for the image plane. So in the viewing ray function are the given parameters for width and height the number of pixels?

panuelosj commented 1 year ago

Yes, the const int params are the # of pixels. The camera.width and camera.height are the physical sizes of the image plane in worldspace at distance d from the camera