Jump to content
  • Advertisement

DX11 Simplified frustum testing

Recommended Posts

Hi Guys,

I am wondering if there is a simple way to test if a point is in the view frustum. 

I have a camera that is always facing the same direction and moves in all axes. No rotations involved, it is always facing x, y, z+1. FOVY is always set to 60.

Is there a basic way to test if a point is within the view? I am happy to even ignore the near and far planes for simplicity sake.

Thanks in advance :)


Share this post

Link to post
Share on other sites

Alternatively, you can just transform your point by your combined view + projection matrix and ensure that the resulting XYZ coordinates are between -W and +W (or 0 and +W for the Z component if using D3D conventions for your projection matrix).

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!