How to do subloading of textures in performer ?

New Message Reply Date view Thread view Subject view Author view

Hugo Eide Gunnarsen (hugogu++at++hugogu.oslo.sgi.com)
Tue, 28 Oct 1997 13:45:58 +0100


Actual I have 3 questions :

What I'm trying to do is to use 1CPU to read and decode a MPEG-1 move
file.
The mv library only creates XBGR files, and this was fine in my OpenGL
test (got it to work), however I cannot find any XBGR/ABGR formats in
performer (can I just use the GL_ABGR_EXT format ?).

1) How to do subimage texture loading in performer

I got the texture I need to work with (and also know how to replace this),
but I was not able to get pfSubloadTex to work with my texture (was not
able to find any example using this feature).

Then I tried to do the same as I did in OpenGL, but not my problem is that
it seems that only the C++ version of Performer will return a handle that
I can use in glBindTexture (::getGLHandle).

I also noticed that space->face demo, have inserted a ifdef into to code
where either OpenGL or Performer-C++ is used :

#ifdef PERFORMER_BROKEN
...
  glBindTextureEXT(GL_TEXTURE_2D, // GLenum target
                   texInfo[nText].texture->getGLHandle() // GLuint texture
                 );
  glTexSubImage2DEXT(GL_TEXTURE_2D, // GLenum target
                     level, // GLint level
                     xOffset, // GLint xoffset
                     yOffset, // GLint yoffset
                     PF_MIN2(xSize, xSizeMax), // GLsizei width
                     PF_MIN2(ySize, ySizeMax), // GLsizei height
                     gl_format, // GLenum format
                     gl_type, // GLenum type
                     texInfo[nText].hostMipmap[level] + offset
                     // cont GLvoid *pixels
                   );
#else
  texInfo[nText].texture->subloadLevel(PFTEX_SOURCE_IMAGE, // int _source
                                       texInfo[nText].hostMipmap[level],
                                       // uint *image
                                       xOffset, // int _xsrc
                                       yOffset, // int _ysrc
                                       xOffset, // int _xdst
                                       yOffset, // int _ydst
                                       PF_MIN2(xSize, xSizeMax), // int
xsize
                                       PF_MIN2(ySize, ySizeMax), // int
ysize
                                       level // int level
                                     );
#endif

However, I can not use C++ in this code, and then this workaround does
not help me (but I hope that YOU can).

2) How to use XBGR data as textures

3) How to get on this list (could't find this on MailMan)

Hugo Eide Gunnarsen Mob: +47 92887631 If it ain't broke,
hugogu++at++oslo.sgi.com Work: +47 67114631 it doesn't have
Silicon Graphics AS Direct: +47 67114600 enough features yet.
=======================================================================
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:56:08 PDT

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