Movie file as texture

New Message Reply Date view Thread view Subject view Author view

Harri Kaimio (harri.kaimio++at++yle.fi)
Thu, 09 Apr 1998 18:36:49 +0300


Hi Performers!

This is not Performer specific, but I wonder if anyone has used a
JPEG-compressed movie file as a texture map with the old compression
library. This seems to be easy using dmbuffers, but my application must
run on 6.2 and they were not available until 6.3 (I think)

What I have done: I have a separate thread in which I read the JPEG data
and decompress it using Impact Compression card. I then load the
uncompressed frames to texture map in draw callback (using
pfTexture::subload). This works, but it CL uses the old IRIS GL pixel
format XBGR (although it calls it RGBX!)

I tried to call
  _texture->setFormat( PFTEX_INTERNAL_FORMAT, GL_ABGR_EXT );
when I defined the texture, but I got only a blank texture. Is this the
right way to set the texel format, or should I do something else? Also,
is there a fill rate penalty when using GL_ABGR_EXT texel format
compared to RGBX? I am already fill rate limited so this would be bad.

I would appreciate any ideas. What I really need is to display an
512x512 animated texture map (RGB, 8 bit per component) on High Impact.
The animation has about 100 frames and must run 25 fps, so I guess that
storing it uncompressed on disk or in memory is not possible.

--
-----------------------------------------------------------------
Harri Kaimio                    |             harri.kaimio++at++yle.fi
Computer Graphics Specialist    |   http://cartes.hut.fi/~hkaimio
Finnish Broadcasting Company    |          Tel. +358-40-50 67 679
TV Production Operations        |           Fax. +358-0-1480 4769

======================================================================= 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:57:14 PDT

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