rick.van.haasen++at++philips.com
Date: 07/05/2004 03:33:25
Hi Bram,
it looks to me that pfSrite is a mechanism used by pfBilboard:
If you set the preDraw and postDraw of a pfGeode, thereby using a
pfSprite
object with the required alignment settings, you effectively have a
Billoard node (?).
So i would think that you could use a pfBillBoard, thereby using an
orthogonal
viewing-martix in the preDraw functions, to get a depth independent size.
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.
regards,
Rick
------------------------------------------------------------------------------------------------
Rick van Haasen Philips Research
Laboratories Eindhoven
Building: WY8-48 Prof. Holstlaan 4
Phone: +31 40 2744357 5656 AA Eindhoven
Fax: +31 40 2744660 The Netherlands
-------------------------------------------------------------------------------------------------
Bram Stolk <bram++at++sara.nl>
Sent by:
owner-info-performer++at++performer.engr.sgi.com
2004-07-02 13:58
To: info-performer++at++sgi.com
cc: (bcc: Rick van Haasen/EHV/RESEARCH/PHILIPS)
Subject: [info-performer] Drawing genuine sprites
Classification:
Hi there,
I am extending libpfiv with support for Inventor's text nodes.
Now, inventor can do 2 types of text:
SoText3: Object-space 3D text (scales like any 3d obj)
SoText2: Screen-space 2D text (fixed size, regardless of Z-depth)
(Note: the font itself is screenspace, but the text pos is still
properly treated as a 3D pos).
Now, SoText3 maps gently onto pfText,pfString
But how to handle SoText2?
pfSprite sounds promising, however, it is not a sprite, it's more
like a billboard, so of no use for SoTex2 nodes.
More info on SoText2 is here:
http://doc.coin3d.org/Coin/classSoText2.html
Any hints?
Bram
-- "For the costs of subsidized agriculture in the EU, we can have all 56 million European cows fly around the world. First Class." - J. Norberg----------------------------------------------------------------------- List Archives, Info, FAQ: http://www.sgi.com/software/performer/ Open Development Project: http://oss.sgi.com/projects/performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com -----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Mon Jul 05 2004 - 03:37:20 PDT