Strange but good looking bug with drawSphere and geom::Plane

Rendered by this code (latest git on macOS):

    gl::enableWireframe();
    gl::draw( geom::Plane().subdivisions( ivec2( 19 ) ) );
    randSeed( 0 );
    for ( size_t i = 0; i < 37; i++ )
    {
        gl::drawSphere( 5.0f * randVec3(), randFloat( 0.1f, 1.0f ) );
    }
    gl::disableWireframe();

I suspect it is caused by a buffer overflow somewhere in the gl::drawSphere code.

-Gabor

That looks like the same thing I ran into and reported here, though I haven’t had time to look into a fix for it. Just switched to a gl::Batch. :slight_smile: But we should indeed fix that…

Thanks Rich. Somehow I missed that issue.