Thanks you for your help.
I triied to use this things but with out success.
I would like to get an height map but with TRIANGLES vertex.
With osg default height map is it QUADS
Is it for build my floor !
their is the real code:
Code:
osg::Node* generationTerrain(){
osg::Group * terrainRoot = new osg::Group;
HeightMap * mapShape = new HeightMap;
mapShape->allocate(60,60);
mapShape->setXInterval(20.0);
mapShape->setYInterval(20.0);
mapShape->setNewValues();// init all height values
mapShape->setOrigin(osg::Vec3(-30.*20,-30.*20,-1.));
mapShape->setName("HeightMap");
osg::Geode * mapGeode = new osg::Geode();
mapGeode->addDrawable(new osg::ShapeDrawable(mapShape););
terrainRoot->addChild(mapGeode);
return terrainRoot;
}
their is a height map like i want:
[Image:
http://www.nvnews.net/previews/AquaMark3/images/chapters/terrain_rendering_2.gif
]
many thanks for your help !
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=21618#21618
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org