LinePick - possible speedup?

Blitz3D Forums/Blitz3D Programming/LinePick - possible speedup?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Octrees are great for speeding up line picks. You just check which nodes the pick intersecets with, and check the tris in those. So even if you're checking against what was a single mesh of 200,000 polys, if you pick in the centre of the level where no tris are, it'll check nothing. If it passes 5,000 tris, it'll just check those.