From: Svend Tang Petersen (svend++at++rex.copen.sgi.com)
Date: 01/15/2001 10:30:13
Another simpler way is to have a drawcallback function
which using glDrawPixels draws the image as an overlay.
Same way you would do a UD.
Regards Svend
*******************************************************************
Svend Tang-Petersen, MSc Email: svend++at++engr.sgi.com
Applied Engineering Pager: svend_p++at++pager.sgi.com
Silicon Graphics
1600 Amphitheatre Pkwy Phone: (+1) 650 933 3618
Mountain View
California 94043
USA http://reality.sgi.com/svend_copen
*******************************************************************
On Mon, 15 Jan 2001, Marc Price wrote:
>
> Julien wrote:
> >
> > Hi all,
> >
> > Is there a simple way in Performer to draw a image in screen
> > coordinates.
> > I need that for the credits of our simulation : We want to see the
> > credits
> > at the bottom of the window, slidding over the graphic simulation
> > horizontally.
> >
> > I have a image texture of 32x2048 (with alpha) with all the text, logo,
> > etc.
> >
> > Thanks,
> > Julien.
>
> We do something similar. You could texture a rectangle that is sized,
> located, and orientated in the scene so that it appears in the correct
> position on the display (sort of reverse engineering). Use the view
> frustrum to determine size. Use the viewpoint params to determine the
> other parameters.
>
> I've deliberately kept it vague - email me if you are interested in more
> detailed info (unless someone else on the list gives this).
>
> Marc
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
This archive was generated by hypermail 2b29 : Mon Jan 15 2001 - 10:29:17 PST