Archived

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

Where did my line go?

This topic is 4985 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have written a drawing program. I was using "TransformedColored" vertices, and everything worked great. I switched to "PositionColored" vertices and my lines and polygons vanished. How can I create a simple set of matrices so that I can see my lines. The vertices I want to see are (x,y,z) were z = 0.5 x = a value bettween 0 - 2000 y = a value bettween 0 - 1600 Thank you for your time, Arrummzen

Share this post


Link to post
Share on other sites
Well you need to set some matrix. Your lines are now defined in model space, to convert to world space you set the world matrix. You then need to decide the point the world is being veiwed from (camera) so need to apply a matrix to transform from world into view space. The last transformation is fro view space into screen space and is performed by the projection matrix.

Share this post


Link to post
Share on other sites