# Camera position for certain visible plane size

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

## Recommended Posts

I want to set up my camera so that the far plane, when seen on screen, is x units high.

How can I calculate how far from this plane my camera must be so that I can only see a rectangle with this height?

Thanks!

##### Share on other sites
You're always looking at the center of the far plane. Assuming a 45 degree yFov, the far plane is 2 * Far units high. You'll have to do some more trig (ie, SOHCAHTOA) if your yFov is different.

##### Share on other sites
No I'm wrong! With a yFov of 45, the quad is 2 * (tan(22.5 degrees) * far dist) units tall.

##### Share on other sites
thank you, i will try that and post if it works!

##### Share on other sites
works good, thanks!

1. 1
2. 2
3. 3
Rutin
15
4. 4
khawk
13
5. 5
frob
12

• 9
• 11
• 11
• 23
• 12
• ### Forum Statistics

• Total Topics
633663
• Total Posts
3013232
×