Confused on graphics rendering

by Ryan J.S   Last Updated October 19, 2019 00:13 AM - source

Implementing a viewport is just a rectangular space on the back buffer usually a 2d texture set to the size of the client window that we render to.

However in direct3d when we describe the viewport it asks for the window width and heights and the top left X,Y position

From what I understand normalized device coordinates for the top left would be represented by 1,-1 and if I chose another type of device coordinate would be represented by 0 , 0.

How does this translate To a coordinate system for primitives I draw on screen from some file formats like wavefronts OBJ format their are coordinates that are out of range from -1 to 1.

enter image description here

Related Questions

Should UI be part of the game-loop?

Updated May 01, 2015 21:05 PM

Moving camera, or camera with discrete "screens"?

Updated July 19, 2015 19:05 PM

How many versions of a model should I have

Updated April 09, 2015 19:05 PM