Jump to content
  • Advertisement
Sign in to follow this  
schupf

Normalizing plane required?

This topic is 3554 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

Hi, I have written AABB <-> view frustum culling code, which uses this line:
[source lang="cpp"if(D3DXVec3Dot( &(frustumPlanes.normal), &vmin) + frustumPlanes.distance > 0 ) 
   return INTERSECT_RESULT_OUTSIDE; 
This is just the normal plane equation and I check for the sign. If I just want to know on which half space a point is placed relative to a plane, does the plane then have to be normalized? (normalizing plane: normal = normal / |normal|, d = d / |normal|)

Share this post


Link to post
Share on other sites
Advertisement
If you are just checking the sign, you don't have to normalize your plane. Your code will return the distance from your plane to vmin times the length of your normal, the results sign isn't affected.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!