Re: Displaying an image in the overlay window

New Message Reply Date view Thread view Subject view Author view

From: Simon C Mills (simon++at++wgs.estec.esa.nl)
Date: 02/13/2002 02:10:14


Simon C Mills wrote:
>
> Hi Performers,
>
> I've been trying to display and image (logo plus text, reading in GIF
> format using the IFL library) in the overlay window of a main pfWindow.
> It's nearly working but often it's not. It looks like the colormap is
> getting changed at some point since the colors go wierd. I notice the
> same kind of behaviour with the standard perfly demo and the "Performer"
> text in the top-right. If the window is moved, the text changes colors
> and disappears. It seems to be to do with how X and Performer interact.
> I'd really like to avoid getting to deep into the X stuff.
>
> What I'm doing now is setting up the colormap with pfuMapWinColors like
> in perfly then doing a glDrawPixels with argements GL_COLOR_INDEX and
> GL_UNSIGNED_BYTE.
>
> Are the any examples or hints on how to do this? I remember an SGI demo
> showing the view from a ship's bridge where the front of the ship was
> static and drawn into the overlay. This is the kind of thing I'm trying
> to do.

More on this problem - it's hardware related. I was developing on an
Octane2 V12 where I see this problem. Works fine on Octane MXE, Onyx2
iR2. So, now I'm wondering what the difference is. I guess in the X
server framebuffer configurations. At least I'm happy it works _most_ of
the time.

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
_______________________________________________________________________


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Feb 13 2002 - 02:07:50 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.