Original Post
I just want to do a box-box intesection check. I thought it's simple, but it turned out that it's not. It is the box-box intersection check, not the box-box collision test. The box-box collision test (which return true or false that the boxes intesect each other and doesn't give out the intesection points) is simple, as the separating axis algorithm (for OBB/OBB) appears to be the best and most popular one out there. But I rarely find any "globally" similar algorithm that does the same thing and also return the intersection points? Even in the very good book "Real-time collision Detection" I still cannot find any bits about that (or I just missed it?) I thought of several approaches... The "blind-test" doing tri-tri works well, i'm currently using the "brute-force" method which ends up at doing all 144 tri-tri tests. It's too slow (for multiple detection) even using the fastest Muller tri-tri test. If I divide the box into several bits (faces) and do overlap tests for each set of bits before doing tri-tri tests then it will be faster... but is there any different ways? I even tried to do a full test, which consider all possible vertex-face, edge-edge tests but it's quite hacky and I felt confusing after a while doing the "if-if and if" things... Anybody who did that can you help me out of the box? I saw some demos from MrRowl and b34r that did the work quite well. I thought there's must be other ways than the "blind" way I'm doing.