🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Advertisement

Latest MousePicking Activity

OpenGL 4 mouse picking

I added in mouse picking. The bounding boxes need not be axis aligned, although I'm too lazy to rename them from AABBs to just BBs. I ended up breaking the game board into 8x8 cells, each with a bounding box, so triangle-ray intersection is speedy-ish.

The relevant code is:


void get_collision_locati…
2,440 views
Advertisement

@shaarigan  Yup that's essentially what I'm trying to implement, albeit in 3 dimensional space. From what I understand an R-Tree is just a specific kind of BVH that uses axis-aligned rectangles as the bounding volumes, with BVHs being a generalized superset of data structures. I'm trying to im…

12,429 views
Advertisement
Advertisement