From: Brad Colbert (bcolbert++at++acm.org)
Date: 05/25/2000 14:27:30
Hey folks,
I'm sure this has been asked before but...
I'm using x-fonts to annotate some items within my scene.
These annotations have multiple lines but I'm not quite sure
of the scale factor I have to give to the Z-dimension for the
rasterpos call based on distance. How do I map a scalar in
screen/pixel space to my frustum given some distance from
the eye?
I guess I could gluProject from the given objects location and get
the screen position, but this would appear to be more expensive
(since it would be done every frame for every visible object)
than just coming up with a scaling factor based on the
modelview/projection/viewport information (only updated when any
of the above change)
Any help would be great, thanks,
Brad Colbert
GreyStone Technology, Inc.
bcolbert++at++acm.org
(858) 874-7000
This archive was generated by hypermail 2b29 : Thu May 25 2000 - 14:27:28 PDT