Hi, Attached is an osgtesselationshaders.cpp but designed for quads, which I think a lot of people would appreciate since often when doing terrain or ocean (certainly when coming from legacy code) you'll most likely be using quads rather than triangles.
I found some of the material online (especially the material the osgtesselationshaders.cpp was based on) was very unhelpful when it came to quads. So this is practically the same code, but modified to use quads instead of triangles, so that people have a good starting point for quad tesselation for a terrain / ocean setting. It is a drop-in replacement for examples/osgtesselationshaders/osgtesselationshaders.cpp in openscenegraph 3.2.1 . It will draw an 8x8 quad grid in a single geometry, of the type that a heightmap could be easily applied to. I add no license further to what was already there, in case that needed to be said. Regards, Chris ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=61799#61799 Attachments: http://forum.openscenegraph.org//files/osgtessellationquadshaders_154.cpp _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
