Sign in to follow this  
GaryNas

Projection Transform Confusion

Recommended Posts

I'm confused over what happens when I apply the projection transform in my scene. Some documents say that the projection transform will put my vertices into a cuboid shape which extents of (-1, -1, 0) and (1, 1, 1). However, the output of the projection transform is never within that range. For example, I have a vertex whos object-space position is (0.5, 0.5, 0.5, 1.0). After the projection transform (from my vertex shader) its position is (0.969, -4.479, 9.034, 9.134). Now, I'm guessing the homogenous divide takes place after the vertex shader and that's what brings the coordinates into the cuboid range. So in this case, the x,y,z values get divided by 9.134. Here's my question... what do the (0.969, -4.479, 9.034, 9.134) values actually mean? I have PIX loaded up and I'm looking at the mesh in it, but I don't understand how the "Post-Vertex Shader" window is rendered... where's the origin? How does it relate to the Viewport? Can anyone help me out? :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this