[osg-users] Best Way to Make a Toroid Geode

Robert Osfield robert.osfield at gmail.com
Thu Jul 23 04:20:49 PDT 2015


Hi Erik,

On 22 July 2015 at 15:59, Erik Hensens <ehensens at hunter.com> wrote:

> Does this mean that I could just use quads, i.e. approximate a circle with
> a many-sided polygon and make four quads for each polygon side, one for the
> top surface, one for the outer side surface, one for the inside surface,
> and one for the bottom surface?
>

You could use GL_QUADS but not all GL/GLES variants support them so using
GL_TRIANGLES and indexing vai DrawElementsUShort would probably be the most
efficient and portable way to tackle things.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150723/1e52d0e4/attachment-0003.htm>


More information about the osg-users mailing list