The Pinhole Camera Model from Scratchapixel ADDED: Jan 23, 2017 - Single triangle rasterization, using linear barycentric interpolation for colors (Rasterization: a Practical Implementation chapter) Jan 27,2017 - Single triangle rasterization, using perspective correct interpolation and checkboard pattern Hope you enjoy it ! Instructions: Keyboard Keys Left, Right, Up and Down rotates the picture Buttons Left, Right, Up and Down rotates the camera (not the picture) Buttons In and Out change the focal distance of the camera, zooming the picture In and Out Buttons 16:9 and 4:3 change the device screen format Buttons Fill and Overscan fill the picture inside the screen format or overscan it Previous and Next buttons shows the different pictures (only three by now, a boat and a Christmas tree used in a previous project and a rasterized triangle. Triangle does not rotate or zoom) Speaker plays music or stops it
Trying to enhance my understanding of Computer Graphics to produce an R/C airplane game. Found a great website, WWW.SCRATCHAPIXEL.COM, very much recommended. This is the implementation of its Pinhole Camera Model. I decided to create some graphic interface to better understand the various features. It still has some glitches with respect to clipping the picture, but won't spend more time on it now as I want to move on to their next chapter Hope you enjoy it.