Re: which: glDrawPixels or glTexImage?

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++multipass.engr.sgi.com)
Fri, 29 Aug 1997 18:07:15 -0700


On Aug 29, 9:30am, Charles Seberino wrote:
> Subject: which: glDrawPixels or glTexImage?
> I am wondering which method is more efficient.
>
> Problem:
>
> I have a floating point array of intensity values (0->1) for an image. I
> need to draw this array several frames later into a pfChannel. Would it be
> better to call glDrawPixels with my array, or should I create a texture and
> apply it to a flat polygon to draw it in the channel? I need to do this
> routine every frame. Is there a different method for drawing this to a
> channel? I am running on an Onyx2, 2RM 64MB texture, pf2.1.
>
> Any help would be appreciated.
>

If you want to draw the image more than once then use texture, otherwise
it's probably better to glDrawPixels the image, but why not measure this
in your application.

Cheers,Angus.
=======================================================================
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:55:48 PDT

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