Archived

This topic is now archived and is closed to further replies.

BeanDog

Got D3D WORKING! How to do camera?

Recommended Posts

BeanDog    1065
I got D3D working - as in, I can pass in an array of "Transformed, lit vertices" and have it draw a bunch of triangles. Question is, how do I pass in an array of 3d vertices and have it transform them into 2d for me? Like, I have a bunch of vertices between (0,0,0) and (800,800,50), and I want a camera at (100, 100) facing southeast (or whatever). How would I pull this off?

Share this post


Link to post
Share on other sites
zerwit    122
You need to setup the appropriate world, view, and projection matrices. Look in the sdk about the geometry pipeline, it explains all of them.

*** Triality ***

Share this post


Link to post
Share on other sites