Capture the frame buffer and use it as a texture

New Message Reply Date view Thread view Subject view Author view

From: Sergio Casas Yrurzum (sergiocy++at++arrakis.es)
Date: 04/07/2001 09:20:14


Hi,

I'm trying to make a distortion correction routine with Linux Performer
2.4, and I need to capture the frame buffer into a texture, and then apply
this texture into a non-uniform planar mesh. If I apply a file texture
loaded with pfTexture::pfLoadFile(char *) everything works OK and the mesh
is textured, but If I try to use the frame buffer, no texture is applied,
so I suppose the problem is that I am not loading anything at all.

I know this can be made with
pfTexture::setLoadMode(PFTEXT_SOURCE_FRAMEBUFFER), but I suppose I'm doing
it in a wrong way, in a wrong place, or I am missing something.

In addition, I don't really know if it's possible to capture the frame
buffer as a texture on Linux. If it's not possible, please say to me, and
I'll quit trying...
I suppose on IRIX is always possible, isn't it?

If anyone has made anything similar I'd appreciate you to send me a little
piece of code to capture the frame buffer. If you can also say to me where
I must put it, it would be very very useful for me.

Thanks


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Apr 07 2001 - 09:19:10 PDT

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