Hi CG, you can maybe have a look at the osggis project http://wush.net/trac/osggis
It does this quite well. I've used it for tracing the river aver the terrain for example... http://perso.imerir.com/bourdin/wiki/doku.php/en/projet/massane Hope it helps, Pierre. Le jeudi 02 juillet 2009 à 05:51 +0000, Cheng Guan a écrit : > Hi, > > I'm trying to implement a 3D line which can follow the terrain's height > (terrain hugging) but the resultant line is not smooth (see attached), I'm > using Bresenham line algorithm to generate and intersector to clamp the line, > are there any ways to smooth the line and yet can follow the terrain's height? > > Thank you! > > Cheers, > CG[/img] > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=14795#14795 > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Pierre BOURDIN I.M.E.R.I.R. Av. Pascot BP 90443 66004 PERPIGNAN tél: 04 68 56 84 95 fax: 04 68 55 03 86 email: [email protected] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

