Hi everyone,

Thanks a lot for your suggestions. Based on your extra remarks, we will make up our minds and go on.

Cheers,
Raymond





On 6-9-2017 10:23, Robert Osfield wrote:
Hi Raymond,

There a number of ways of mixing polygonal data with height fields, the best way will depend upon the requirements/constraints of your application.

If you need exactly intersections then converting the height fields into a polygon mesh and then inserting the vertices and edges from the mesh you want to add will be required. This will be slow so something you'll likely want to do as a pre-processing stage.  The osgTDS code that Don wrote many years back uses this approach.  I'm afraid I don't have an insights into osgTDS or where to get it these days.

If you don't need exact match then you could possible modify the height fields values to match the polygonal mesh, you could do this on the CPU as a pre-processing step, or render the polygonal mesh to a depth texture and then use a vertex shader to read from two depth/height field textures to render a single heightfield.

Another approach would be to use a constructive solid modelling approach, at least I have hunch you could do this somehow but would need to think it through fully first.

Given more time I'm sure I could come up with half a dozen more approaches that may or may not work :-)

Robert.







<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virusvrij. www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to