The Pinhole Camera Model from Scratchapixel ------------------- INSTRUCTIONS ------------------- * Use arrows to rotate the object. This will change visualization to "fast wire" (only 70 triangles shown), so it can be processed real time. * Up, Down, Left and Right buttons move the camera around * Press the texture button to choose a different texture (several available). Use the next button to choose a different texture. Press READ so project uploads the texture * Press Render to render the object with the chosen texture When viewing objects press the previous and next buttons to change the object * Press texture map to see the texture mapping in 2D provided by the .obj file * Press the perspective button to choose between perspective or ortographic projections * Press the 16:9 and 4:3 buttons to change the camera format. Press the fill button to change between fill and overscan views when in 16:9 * Press the shade button to render with or without shade
Many thanks to MartinBraendli and Sureornot for the inspiration. 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 and associated rasterization projects. I decided to create some graphic interface to better understand the various features. Most of glitches from older project have been fixed, but there may be some around... Hope you enjoy it