On 12/11/2009 3:55 PM, Torben Dannhauer wrote:
> Hi,
> yes, a simple rectangular region would be enough.
> Does your algorithm determine the "height" of your flattend area itself by 
> the selected area, or do you specify a destination height and you lift/sink 
> your rectangular area to this level?
> I'm interested in both methods. Some models are always on, so in best case 
> this flattening is compiled into DB to save rendering time. Additionally some 
> models are inserted on demand on free coordinates, so this flattening would 
> be great..
> Is your feature closed source or is it planned to integrate it into VPB? 

  Well, the code I can release now is simply the 
"what-elevation-should-I-put-here"
callback for the loader/saver. It provides you with the location and current 
elevation and
you can return a new elevation. but, obviously for simple rectangular regions 
it's easy
for you to determine if you're within the rectangle and return a new elevation.

  In this case it would be more like your "or do you specify a destination 
height and you
lift/sink your rectangular area to this level".

  I provided a .modifyterrain pseudoloader/saver a while ago, but I've had to 
modify it
since to avoid needing changes in the core OSG. I can probably provide a new 
version of it
shortly. At the present time, it has not been selected for inclusion in core 
OSG, so it
will probably make its home in some sort of osgTerrainTools add-on library.


  The deformation library that goes with this, that actually can answer the 
what-elevation
question given some number of area or line features and additional attributes 
is something
I'm developing for a client of mine, and the open-ness of it is an issue not 
yet fully
determined.

  If this is something your organization needs, maybe we could discuss 
cost-sharing on the
development.

> Cheers,
> Torben

-- 
Chris 'Xenon' Hanson, omo sanza lettere                  Xenon AlphaPixel.com
PixelSense Landsat processing now available! http://www.alphapixel.com/demos/
"There is no Truth. There is only Perception. To Perceive is to Exist." - Xen
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to