Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
Stuff like Unity has nice built-in functions a-la
Camera.TransformPoint to do quick calculations between world and screen space. Assuming I dont have access to it but I do have access to:
- target object’s position
- camera’s object position and angle/rot
- camera nearClipZ and farClipZ values
- camera FOV
- aspect ratio/resolution (fixed in this case)
Is it enough for me to calculate projection matrix and do the transformations?