Re: [info-performer] Drawing genuine sprites

Date view Thread view Subject view Author view

From: Bram Stolk (bram++at++sara.nl)
Date: 07/05/2004 08:08:01


On Mon, 5 Jul 2004 12:33:25 +0200
rick.van.haasen++at++philips.com wrote:

> However, for your SoText2 maybe a 2D aproach is more effective:
> you could use glDrawPixels to render your 2D-text, i think that it has al
> you want:
> - subject to depth for culling with Z-buffer
> - fixed size.
> - screen aligned output (no rotation)
> - position is set according current transformantions: you will have to
> define an
> orthogonal projection matrix prior to setting the position with
> glRasterPos.

Rick,

That sounds like a good approach for custom applications.
However, my target is to add SoText2 support to the inventor loader, which
means that 2D text needs to be part of the scene-graph. Something that is
possible for OpenInventor, but I don't think that this 'glDrawPixels'
construct can ever be stored in a .pfb file, or even a in-memory scene graph.

  Bram

------------------------------------------------------------------------------
 Bram Stolk, VR Engineer.
 SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP AMSTERDAM
 email: bram++at++nospam.sara.nl Phone +31-20-5923059 Fax +31-20-6683167

"Software is math. Math is not patentable."
OR
"Software is literature. Literature is not patentable." -- slashdot comment
------------------------------------------------------------------------------


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Jul 05 2004 - 08:09:27 PDT