Loading Nodes based on distance to you?

How would I do this? I have a bunch of ideas floating in my head, but none of them seem right.

Look at these classes: http://code.google.com/p/jmonkeyengine/source/browse/#svn/trunk/src/com/jme/scene/lod

and these tests:



You could use a grid of squares or other shapes to easily see where other things are and only load the things in the squares next to you. In a full 3D space you can use boxes instead or other 3D shapes.

If you do sync with JGN there is a proximity method you can use to automatically remove those objects that are outside of your range (if you return 0 from the proximity method they're counted as out of range).