Tom McReynolds (tomcat++at++proxima.asd.sgi.com)
Sat, 15 Jun 1996 21:48:50 -0700
I think your problem is that the current raster position is described in object
coordinates, not window coordinates. You'll need to figure out where your
lower left corner of the screen is defined in object space. I don't know
what's on the matrix stack at the start of the draw callback off hand, although
I suspect it's the identity matrix for MODELVIEW and PROJECTION. Even if it
isn't, you can push the matricies, set them as you want, then pop them
when your through.
It's sounds to me like the following is happening:
You're saving what was in the previous frame (no clear was done since you
set a draw callback; that's now up to you)
Now your redrawing the saved image (after your processing) using glDrawPixels
with the lower left corner of the image at the center of the screen (the
location of the origin in default NDC coordinates, which is what you get with
no transforms)
now you call pfDraw and draw over all or part of the image you rendered
with glDrawPixels
Try glRasterPos2i(-1, -1) and see if that fixes it.
-Tom
> I figure I must be using these routines incorrectly, but I
> can't figure it out from the man pages. I would appreciate any
> help!! Thanks in advance.
>
> Jeannie
>
> ********************************************************
> Jeannie M. Burleson email: jeannie++at++cambertx.com
> Camber Corporation voice: (214) 991-5322 x160
> 4885 Alpha Rd. Suite 110 fax: (214) 991-5352
> Dallas, TX 75244
> ********************************************************
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer.html
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Jeannie Burleson
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer.html
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:01 PDT