Re: Showing Images

New Message Reply Date view Thread view Subject view Author view

Mario Veraart (veraart++at++fel.tno.nl)
Fri, 19 Feb 1999 14:56:17 +0100


Sean L. Guarino wrote:
>
> Hi everyone...
>
> I have a Tactical Cockpit Station that is developed in Performer and
> is split into two channels. The bottom channel is devoted to the
> pilot-vehicle-interface, and does not have a pfScene setup within it.
> Most of the graphics within this bottom section are done in OpenGL.
>
> What I'd like to do is take an rgb image file and place it in the PVI
> section of the display.
>
> The easiest way that I can see to do this is to slap down the picture
> as an OpenGL texture. Unfortunately, I can't find any way in my
> reference manuals to read the rgb into OpenGL so it can then be
> slapped down...
Use the call glDrawPixels()

>
> So I was wondering if anybody on this list could give me advice on how
> to read in the file or perhaps a better way to do this in Performer.
> I'd appreciate any help... Thanks!
An easy way is to give the bottom channel a pfScene that only contains
geometry for a quad in the XY-plane. And this quad is textured with the
required image. Give the pfChannel an ortho view frustum that exactly
views this quad, and draw the things you want to draw after calling
pfDraw().

Mario
>
> --
> Sean L. Guarino E-mail: slg++at++cra.com
> Software Engineer Tel: 617-491-3474 ext. 561
> Charles River Analytics, Inc. Fax: 617-868-0780
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Feb 19 1999 - 05:53:49 PST

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