Hi Martin. 2010/11/11 "Martin Großer" <[email protected]>: > is it possible to texture a osg::HeightField?
An osg::HeightField is just height field, it knows absolutely nothing about state, let alone texturing, it's just meant to be a very simple data structure for storing a height field. If you want to render a height field with texture then you need to use a higher level class. osg::ShapeDrawable is capable of doing this as shown in the osgshapes example, but personally I would recommend against using osg::ShapeDrawable as it was never intended to be a general purpose tool - it's just a very simple and quick way getting something up on screen, it was never meant for widespread usage in apps. The route I'd recommend us to use a osg::Terrain::TerrainTile. This allows you to attach a HeightField and all your imagery, and place it into full 3D space, with geometry representation optimized for performance. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

