OFXIOS_RENDERER_ES2 and drawvertices()

Hi,

I would like to use GL_POINTS with my meshes and ES2 on iOS.

I modified assimpExample project from of_v0.9.8_ios_release examples

on main.h now uses ES2
settings.glesVersion = OFXIOS_RENDERER_ES2;

and in ofApp.mm I only modified one line
//--------------------------------------------------------------
void ofApp::draw(){
ofSetColor(255);
ofEnableAlphaBlending();

//note we have to enable depth buffer in main.mm
//see: window->enableDepthBuffer(); in main.mm

ofEnableDepthTest();

ofPushMatrix();
ofTranslate(model.getPosition().x, model.getPosition().y, 0);
ofRotate(-mouseX, 0, 1, 0);
ofTranslate(-model.getPosition().x, -model.getPosition().y, 0);
model.drawVertices(); /// <------------------------------------- MODIFIED HERE
ofPopMatrix();

ofDisableDepthTest();

ofDrawBitmapString("fps: " + ofToString(ofGetFrameRate(), 2), 10, 15);
ofDrawBitmapString("num animations for this model: " + ofToString(model.getAnimationCount()), 10, 30);
ofDrawBitmapString("double tap to change model", 10, 60);

}

tested using settings.glesVersion = OFXIOS_RENDERER_ES3; and it works properly.

thank you,
X

Hi Xavi
I tried this and I don’t see vertices!
No GL_POINTS appear
Using last OF version and XCode 9.2

Do you know how to see GL_POINTS on ES2 or ES3?
On ES1 the example works fine, but I would like to use GL_POINTS on ES2 or ES3
Thanks