Re: Overlay plane....

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Mon, 16 Dec 1996 18:21:33 +0000


You seem to be using lrectwrite in your gl code.

This is surprising since the overlay would require a colour indexed
image written using rectwrite (I've made this mistalke myself before).

Check the format of the glDrawPixels is GL_COLOR_INDEX
and your data is the right format and the colour map is
set correctly.

Cheers,
Angus.

On Dec 16, 4:29pm, Guy Premont wrote:
> Subject: Overlay plane....
> Hi,
>
> I'm porting a Performer application to a Indigo2 Max Impact and I'm
> having some trouble with the porting of functions related to the overlay
> plane.
>
> This application was running on an Onyx (Irix 5.3 Performer 2.0 & GL)
> and the porting is towards a Max Impact (Irix 6.2 Performer 2.1 &
> OpenGL). The porting is rather simple and direct however when I want to
> put a picture on the overlay plane troubles arrive.
>
> In my draw process, I was simply doing
> drawmode(OVERLAY);
> lrectwrite(...);
> drawmode(NORMALDRAW);
> and it worked fast and painlessly.
>
> Now, i'm trying something like:
> pwOver = pfGetPWinOverlayWin(pw);
> pfSelectWin(pwOver);
> glMatrixMode( GL_MODELVIEW ); glPushMatrix(); glLoadIdentity();
> glMatrixMode( GL_PROJECTION ); glPushMatrix(); glLoadIdentity();
>
> glOrtho( ... );
> glRasterPos2i(x, y);
> glDrawPixels(...);
> glMatrixMode( GL_MODELVIEW ); glPopMatrix();
> glMatrixMode( GL_PROJECTION ); glPopMatrix();
> pfSelectPWin(pw);
>
> But it doesn't work.
>
>
> Could somebody give my a hint?
>
> Thanks,
> Guy Premont
>
> ===========================================
> Silicon Worlds S.A.
> 10, rue Louis Morard 75014 Paris France
> Tel: +33 (01) 53.90.11.11
> Fax: +33 (01) 53.90.11.12
> ===========================================
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Guy Premont

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:10 PDT

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