Hi @all,

I wrote a code sniplet that is a kind of height field with multiple
texture support. It's simple and not very fast, but it works for our
project. Maybe someone is interested in a solution to this problem until
robert adds specific high performance paths for height fields.
URL: http://www.stunet.tu-freiberg.de/~aulhorn/codesniplets

Michael.


> Hi Michael,
> 
> The current osg::HeightField's purpose is primarily as a primtiive to
> be used for collision detection/pyhsics modelling rather than
> visualization. The osg::ShapeDrawable is just a convenience class
> rather than a flexible, high performing way to visualize heighfields.
> 
> osgTerrain/osgdem exist for terrain visualization and it supports
> multi-texturing. Next year I'll add some specific high performance
> paths for height fields to osgTerrain, but right now you'll need to
> use the off line database capabilities of osgTerrain.
> 
> Alternatively you can use TexGen and StateSet inheritance for a second
> texture that you wish overlay. See osgmultexture for an example of
> this. This will work with any subgraph, be one containing a
> ShapeDrawable or a whole paged database generated by
> osgTerrain/osgdem.
> 
> Robert.

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to