I am still fiddling with the Roam code of code.j3d.org. I am using SimpleTiledTerrainData. This class has a method setActiveBounds(Rectangle bounds) which is not implemented yet. The documentation says it should limit the access to an area of the terrain.
Correct. That method doesn't need to be implemented because the simple tiled handler automatically loads all of the terrain data into memory before anything starts. You only need to implement that method if you want to page data into memory from a disk-based source.
For a larger grid I do not want to keep the whole grid in memory. So I guess I have to enhance SimpleTiledTerrainData for reload new data when the access area bounds are changed by navigation.
> Is that right? And how can I implement that? Correct. The SimpleTiled code is really brain-dead in this issue, so you'll need to (probably) start again. Strategies for paging data in can get quite gnarly to deal with. There are many different approaches that one can use and is almost an entire research topic in itself. At least it involves a local cache of the data in memory for the current active region, plus probably a bit more to deal with the system requesting a new tile. The decision point of when to load more is really an application-specific issue. -- Justin Couch http://www.vlc.com.au/~justin/ Java Architect & Bit Twiddler http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
