On Wednesday, November 28, 2012 09:51:06 Renk Thorsten wrote: > > I know the advanced weather system uses a C++ random area terrain sampler > > written by Torsten Dreyer. > > Yes - but the way this is currently set up it wouldn't help you - it just > samples various averages and variances of the elevation, it can't be used > to give you a profile of the terrain. > > * Thorsten
I know, I was inspired by it when I wrote my own terrain sampler for the radio part. Since we're talking terrain sampling, today I was again inspired by James' work on the navdata cache, and modified the radio terrain sampler to use a sqlite database holding elevation data. This little experiment made me reach a couple of conclusions: 1. This method is way slower than the scenery method, like 20-30 times slower, but works somewhat ok. 2. The elevation database for a 10x10 degree SRTM region is huge even with our filtered data: ~ 700 MB 3. This method allows elevation sampling even when terrain is not loaded, but does not provide material information, of course. Now, if I could only find out and eliminate the speed bottlenecks with sqlite (I have no previous experience with it's C API), maybe this could be an interesting thing. Cheers, Adrian ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel