From: John P <end...@gm...> - 2006-08-22 15:19:08
|
Thanks guys, it turns out, I have just been using the glRasterpos call, and the bitmap call. It is only to label a graph, so its no biggy how good it looks, thanks for the help. John On 8/7/06, steve <sjb...@ai...> wrote: > > John P wrote: > > Gents- > > > > So this should be trivial to all of you GL/GLUT masters, but I was > > just wonder what is the best way that you have found to display > > strings. I simply need a way to label a grid that I have drawn. I have > > found some things in Nate Robbins tutor stuff, but I am wondering if > > since 1997, has there been something implemented that really works > > great. Thanks for all the help. > > Basically, there are three ways: > > 1) Textured polygons. Without doubt the fastest technique with modern > hardware. You can resize, reshape, recolour text easily - put it > into perspective, rotate it, etc. However, there is a problem with > a tendance to be blurry - especially at very low point sizes. > > 2) Bitmaps - kinda old-school these days, you can't resize the text, > it can't be rotated or drawn in perspective - it can only have one > colour. > > 3) 'Stroked' fonts - draw text using GL_LINES primitives - fast, can > rotate, scale, etc. Text is never blurry - but doesn't look good > at large font sizes because it's too skinny. It's painful to make > new fonts because they have to be hand-coded. > > GLUT has a choice of bitmapped or stroke text rendering. > > You could use the PLIB (http://plib.sf.net) 'FNT' library for rendering > textured fonts - a fair selection of font textures come with that > package in the 'examples' bundle. > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Freeglut-developer mailing list > Fre...@li... > https://lists.sourceforge.net/lists/listinfo/freeglut-developer > -- John Perich Michigan Tech University Software Engineering jpp...@mt... 218.428.5091 |