View frustum culling headache

Hi people.

I’m trying to make my own implementation of the view frustum culling. I have readed some tutorials and remember some concepts of matrices but my implementation doesn’t work.
It semms equal to other implementation in the readed tutorials but doesn’t work :frowning:

Well, here attach some classes, I greatly apreciate if someone can take a look at my code and give some light.

Thanks in advice.

PS:
The code show the X (red), Y(green) and Z(blue) axis and a point in coordinates (3,3,3). Then I update the view frustum and test if the point is inside it.

Hi,
This is my first post ^^
Well… for my first engine i look at the quake 1 source code to see how id do the frustum culling and it was easy to write in java =)

ftp://ftp.idsoftware.com/idstuff/source/q1source.zip

Im at my work now, but i see your code later in my house.

Hope this was useful for you. =)
Good Luck!

Ok, I just find my problem :).

Matrix multiplication are ok, the problem is with my Point3D class :frowning: I store the Y coordinate in a bad way and always contains a 0. Then when I wanted to test if the point were inside the view frustum the coordinates of the point were wrong.

PS: My english is so bad, sorry.

Well… if you still want some help, just count on me :slight_smile:

“PS: My english is so bad, sorry.”

Don’t worry… my too. :smiley:

A very good View Frustum Culling Tutorial.