I have a problem…
Imagine a cube, defined by 6 planes!
Ok, now, is there a way to find if a point is inside that cube, with the point coordinates(x,y,z) and the 6 planes equations ?
The point is not in any planes, he is just surrounded by the six planes.
Thanks
Hey, I might be a bit silly, but I still know what frustum culling is. I just meant that the creator of this discussion intended to do collision detection (which includes some tests of frustum culling…). My bit.
I’d just like to know what was wrong with the answer I gave above? Are people not able to read it because of a problem with the font? My answer above succinctly says what that whole thread says.
Well, I stated I know that one uses all the collision stuff in culling too (at least in unoptimized culling). It’s just that beginners like to have an answer to their question, not to another related question (and I know that sine I ask often… )
DFrey, I think we can be happy when we agree that you said all.
However what do you mean with P(N,d)? I never saw such a representation of a plane. Is that actually the thin for both the normal representation and the coordinate representation (then I would basically understood what you talked about)
aren’t you basically saying (p-q)*n? Enlighten me!!! Thanks!
I first came across the P(N,d) nomenclature for a plane in an Analytic Geometry class.
It is just a convienient way of saying plane P’s normal is N and displacement is d.
aren’t you basically saying (p-q)*n?
Not exactly, but then again, I’m not certain what your p and q are.
But you wouldn’t get the time and the point of the intersection with the plane, which you need to reflect the vector the ball is moving along.
DFrey, are my mathematical understandings understandable to you?
Where you write (|p|-|q|), did you intend to write (|p-q|)? Because otherwise, I can’t see what relationship was used to arrive at that point. I’m also a little unclear by your value for n, is it the shortest vector from the origin to plane, or the shortest vector from the plane to the test point? Geometry is very difficult in text I wish they would enable the img tags or html on this board, for at least the advanced forum anyway.
Where q is the place vector a point on the plane. p is the point to test the distance. n is the normal, n0 the normalized (unit?) normal.
Basically the first term I mention is the angle beween the normal starting in q and the vector from q to the test-point p. Now, if you imagine the normal going through the test point, you’ll see exactly the same angle again. Where the cosine is cos alpha = Ankathete(don’t know what this is in english)/Hypothenuse(see above…). Okay, the Ankathete is the distance! So you can bascialle set the both terms equal (=) and solve to d, the distance. What comes out is:
d = (p-q)*n
I also replaced n/|n| with n0, means it’s normalized (length of 1). I wonder if this attempt is similar to yours! Cheers!