http://openframeworks.cc/documentation/graphics/ofGraphics/#show_ofSetDrawBitmapMode
as I understand, it might be rotate/or not rotate some of them.
what is the detail of these mode ? anyone explain it ?
http://openframeworks.cc/documentation/graphics/ofGraphics/#show_ofSetDrawBitmapMode
as I understand, it might be rotate/or not rotate some of them.
what is the detail of these mode ? anyone explain it ?
it’s the way bitmat strings are drawn. the default is screen which projects the 3d prosition in the screen so the letters always look the same size but can be positioned in any 3d coordinate.
viewport: does the same but uses the current viewport instead of the full window if it’s different
model: uses real 3d coordinates so the text will look scaled if it’s not in z=0
model billboard: uses real 3d coordinates but the text always faces the camera
simple: only does 2d and the z coordinate is just disacarded so if z is different than 0 the position in which it’ll be drawn will be wrong
thanks! as always!
This should go in the documentation
you can add it in the ofsite or the code repos
I’ll check that. Last time I added any documentation was long ago.
So much thanks, as always.
Best!
I think the default is OF_BITMAPMODE_MODEL_BILLBOARD not OF_BITMAPMODE_SCREEN.
I’m using OF 0.9.8 on OSX. below is the ofStyle constructor in ofTypes.h file.
ofStyle(){
bFill = true;
blendingMode = OF_BLENDMODE_ALPHA;
smoothing = false;
circleResolution = 20;
sphereResolution = 20;
curveResolution = 20;
lineWidth = 1.0;
polyMode = OF_POLY_WINDING_ODD;
rectMode = OF_RECTMODE_CORNER;
#ifdef TARGET_OPENGLES
drawBitmapMode = OF_BITMAPMODE_SIMPLE;
#else
drawBitmapMode = OF_BITMAPMODE_MODEL_BILLBOARD;
#endif
bgColor.set(200,200,200);
//depthTest = false;
}
hi arturo,
using ofDrawBitmapMode(viewport) renders flipped type. i cycled through the other modes after trying ofRotate and ofRotateY and ofScale with no luck. using mode = simple seems to do the trick.
thanks,
01