# \[Solved\] Curious if anyone else has had graphics glitches with ci::gl::drawSphere

**URL:** <https://discourse.libcinder.org/t/solved-curious-if-anyone-else-has-had-graphics-glitches-with-ci-drawsphere/1853>\
**Category:** Using Cinder\
**Created:** [August 22, 2021, 1:14am UTC](https://discourse.libcinder.org/t/solved-curious-if-anyone-else-has-had-graphics-glitches-with-ci-drawsphere/1853 "2021-08-22T01:14:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gazoo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gazoo/32/61_2.png) [@Gazoo](https://discourse.libcinder.org/u/Gazoo)\
**Post date:** [August 22, 2021, 1:14am UTC](https://discourse.libcinder.org/t/solved-curious-if-anyone-else-has-had-graphics-glitches-with-ci-drawsphere/1853/1 "2021-08-22T01:14:11Z")

</div>

Hey embers,

On two separate occasions I’ve seen odd glitching using `ci::gl::drawSphere`. While I believe it is likely still something in my own software, it has just happened on such separate occasions and _only_ with that call that it makes me pause and wonder if perhaps it is a Cinder thing.

 ![Screenshot (48)](https://canada1.discourse-cdn.com/flex030/uploads/libcinder/original/1X/1c8fc929f8224301c13c3f970d61e0cbead6314e.png)

Using a `geom::Sphere` clears the issue right up though.

Cheers,

Gazoo

---

<div class="post-metadata">

**Author:** ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)\
**Post date:** [August 23, 2021, 10:31am UTC](https://discourse.libcinder.org/t/solved-curious-if-anyone-else-has-had-graphics-glitches-with-ci-drawsphere/1853/2 "2021-08-23T10:31:43Z")

</div>

It’s a known problem I think.

> <https://github.com/cinder/Cinder/issues/1810>
>
> See image:
> 
> !\[blah\](https://cloud.githubusercontent.com/assets/5132127/2477822…5/72b0d0de-1af7-11e7-9f33-88d0544d2074.png)
> 
> Repro by changing \_opengl/Cube sample's draw method to:
> 
> \`\`\`cpp
> void RotatingCubeApp::draw()
> {
> gl::clear();
> 
> gl::setMatrices( mCam );
> gl::drawCoordinateFrame();
> gl::drawSphere( vec3( 2, 2, 0 ), 0.2, 12 );
> 
> 
> gl::ScopedModelMatrix modelScope;
> gl::multModelMatrix( mCubeRotation );
> 
> mTexture-\>bind();
> //mBatch-\>draw();
> }
> \`\`\`

---

<div class="post-metadata">

**Author:** ![totalgee](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/totalgee/32/274_2.png) [@totalgee](https://discourse.libcinder.org/u/totalgee)\
**Post date:** [August 26, 2021, 10:52am UTC](https://discourse.libcinder.org/t/solved-curious-if-anyone-else-has-had-graphics-glitches-with-ci-drawsphere/1853/3 "2021-08-26T10:52:02Z")

</div>

Yes, I’ve also come across this. If you adjust the number of subdivisions it may “randomly” work or not…likely uninitialized memory?
