Skip to main content
gamedev.net
🔒 Locked

Help with matrices

Started by Pacifist 3 replies 400+ views
Original Post
Pacifist
Pacifist
I want to create a projection matrix that causes everything to be aligned parrallel to the camera. Currently in my code whenever something gets to the edge of the screen it appears at a slight angle, i don''t want this (it''s a top down shooter). I currently have the FOV set to a really low number to overcome this, but this means that the objects have to be drawn at a really large distance, so obviously this isn''t ideal. Any ideas?
My games: www.spiralfast.com/pacifist
boebi
boebi
Look into setting an ortho projection. I don''t know what API you''re using, but do a search in your docs for some version of "OrthoLH".
Pacifist
Pacifist
Hmmm the ortho matrix killed my Z-Distance-Values.
They are now meaningless for everything.
Is there a way to create a matrix where things still get shrunk as their Z-Distance increases?

[edited by - Pacifist on June 7, 2004 11:07:38 PM]
My games: www.spiralfast.com/pacifist
boebi
boebi
the only projection matrix that shrinks things along z is the normal perspective matrix as far as I know.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.