On 10/30/2012 5:05 AM, Christian Buchner wrote:
Hi,

for rendering a sphere (or any other round shapes) it might even be
better to use a shader, instead of trying to tesselate the shape into
a complex geometry consisting of a lot of triangles or quads.

One issue with this approach, as well as the ShapeDrawable approach, is that most existing code that operates on Drawables is designed to work with osg::Geometry. If you export your scene to some format other than OSG-native (3ds, obj, flt, etc), such shader-based geometry will likely be ignored by the exporter.

Just something to keep in mind.
   -Paul


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to