From: Tomlinson, Gordon (GORDON.TOMLINSON++at++ca.com)
Date: 09/12/2001 09:26:24
HI
Make sure you have a basic state
pfPushState
pfBasicState
Turn Lighting off
Turn Blending off
Turn texture off
draw font
reset texture
reset blending
reset lighting
pfPopState
Regards
Gordon.
_________________________________________________________________
Gordon Tomlinson
Manager
Urban Simulation Products Engineering.
MultiGen-Paradigm
"a Computer Associates Company"
Suite 200, 16415 Addison Road, Addison, TX 75001 USA
Tel: 972 380 9798 ext 309 Fax: 972 380 9468
Email: gordon.tomlinson++at++ca.com
-----Original Message-----
From: Simon C Mills [mailto:simon++at++wgs.estec.esa.nl]
Sent: Wednesday, September 12, 2001 11:36 AM
To: info-performer++at++sgi.com
Subject: Setting color of overlay text in scene
Hi all,
I want to place some text label attached to objects in the scene.
However, I'm having trouble setting the color of this text correctly. I
was basing my code in the standard example
/usr/share/Performer/src/pguide/libpf/C/text.c. I attach a modified
version to show the problem - the text in the scene always comes out
white no matter what, and the text over scene drawn after that comes out
blue, not red as I expected from the code. There would seem to be
nothing wrong. Can anyone shed any light on this?
Using Performer 2.2, IRIX 6.5.12m.
Regards, Simon
_______________________________________________________________________
Simon Mills
Modelling & Simulation Section (TOS-EMM) Tel: +31 (0)71 565 3725
European Space Agency (ESA/ESTEC) Fax: +31 (0)71 565 5420
Postbus 299, 2200AG Noordwijk e-mail: Simon.Mills++at++esa.int
The Netherlands http://www.estec.esa.nl/wmwww/EMM
_______________________________________________________________________
This archive was generated by hypermail 2b29 : Wed Sep 12 2001 - 09:28:56 PDT