Results 1 to 9 of 9

Thread: Poly->Poly Collision Challenge

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Instead of GPU you can also draw the collision test polygons in TCanvas, for example of a TBitmap. You can still draw them on GPU to for the looks but like said, it's propably not fast to read the results from it. And if you draw to GPU they need to be convex.

    Overall, unless the polygons consist of hundreds of vertices, the math way will propably be more efficient.

    edit: For the math way, if it's ruled that polygon must be convex, then isn't the only scenario such that at least 1 vertex must always be inside other polygon? I recall reading of doing this test with just dot product.
    Last edited by User137; 19-08-2011 at 06:15 PM.

  2. #2

    What about XOR?

    Seems to me that because the computer only uses ones and zeros the fastest way to detect a collision would be to filter the polygons with XOR but I'm kind of a newbie on pascal programming, I used to program a bit of assembler on the commodore 64.

    Oh, hello everybody.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •