Scene interaction with ofEasyCam

Hi forum,

I am using the ofEasyCam to interact within the scene . I want the items to be centered within the scene.
When i resize the window the items/item are centered anymore. I am implementing the easy camera interaction as follows:

   camera.begin();
   ofPushMatrix();

   ofTranslate(-ofGetWidth()/2,-ofGetHeight()/2);

   model.drawFaces();

   ofPopMatrix();
   camera.end(); 

How to keep the items centered even after the window resize ?

Thanks

I think that usually EasyCam is drawing at the “center” (it looks at 0,0,0 by default) even if you resize. you can see in on the easyCam example.
There is a built in method to get the events on windowResized() which can help you to reposition things after resizing but i guess you won’t need that.
I would first try to draw your model without doing any translation and see what happens. or doing the translation before cam.begin()