I found a tutorial on frustum culling in OpenGL and tried to implement it. One function extracts the frustum, I’ll assume that one works for now(should the D value for each plane be ALOT higher than the other three? usually the other three are one or so and the last is 256 or so.)
Anyhow assuming that one works the next function tests for a cube in the frustum.
It works like so:
if ((F[i]*x) + (F[i]*y) + (F[i]*z) + F[i]) > 0)
//repeat that for every point in the box
(I’m sorry if that doesn’t show up to well, there is no preview button)
Anyhow the problem is that no point make it through there. Am I doing something wrong? I’m tired of staring at a 3dfx logo because that function doens’t let any points through!