PDA

View Full Version : Vector or Textures?



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

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

http://www.flypfc.com/project%20magenta/jpegs/PFD%20BOEING%20ENH.jpg

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?

Thanks

-Al

RigidBody
05-19-2006, 06: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, 06:21 AM
Thanks RigidBody - that points me in the right direction.

-Al

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

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