View Full Version : Vector or Textures?

Al Grant
05-19-2006, 05:04 AM
Hi Folks,

I want to create a 2D graphic like displayed at:


It could be done with a quad and a texture, but someone else pointed out it could also be done using mainly vector graphics.

Can someone please explain how it would be done using vector graphics? I mean I know how to draw quads etc, but this would seem like quite a lot of work...unless their is an easy way and I am missing something?

Also how would I add text?



05-19-2006, 05:13 AM
i don't think it's a good idea to use a textured quad, assuming that the values displayed by this artificial horizon change continually. you'd have to keep the texture always updated.

for the blue/brown background i'd use non-textured quads.

for the scale some GL_LINES, for the text you can use a system font. google for glXUseXFont (linux) or wglUseFontBitmaps (win).

Al Grant
05-19-2006, 05:21 AM
Thanks RigidBody - that points me in the right direction.


Al Grant
05-19-2006, 05:22 AM
PPS: I was in Germany a few months back. Damn it was cold (Frankfurt)

05-19-2006, 05:29 AM
yeah, we've had the longest winter this year...
never seen so much snow.