karansher / computer-graphics-ray-casting

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

Number of Pixels and width/height #1

Closed zuoyuwang closed 1 year ago

zuoyuwang commented 1 year ago

In this assignment, the number of pixels along X/Y matches the width/height given right? So we don't have to do width divided by number of pixels X when calculating coordinates.

panuelosj commented 1 year ago

Please write your code for the general case here. i.e., your program should be able to work such that if width/height changes, the image plane will change accordingly (and print out a corresponding image).