Advertisement

Determining if a polygon is visible

Started by June 16, 2002 08:45 PM
2 comments, last by Graham 22 years, 8 months ago
I need help figuring out how to see if a polygon is visible by the camera. I know how to do this if a vertex from the polygon is in the view frustum. The problem I am facing is a camera that is extremely close to the polygon so that all the polygons vertices are outside the view frustum, but the camera can still see the inner part of the polygon. In my current system it would report the polygon as not visible, but this would be untrue. Go on an Intense Rampage
Go on an Intense Rampage
Calculate the visibility of the polygon based on the normal of the polygon and your view direction (dot-product).

Gero
Advertisement
See this. Go near the bottom and look for the section "Testing Triangles and Other Polygons".

Thanks for the answers. I now know what to do.

Go on an Intense Rampage
Go on an Intense Rampage

This topic is closed to new replies.

Advertisement