From: Angus Dorbie (dorbie++at++sgi.com)
Date: 04/09/2001 14:06:02
Look in the envmap section of www.dorbie.com.
http://www.dorbie.com/envmap.html
This does what you need.
Cheers,Angus.
Sergio Casas Yrurzum wrote:
>
> 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
>
> -----------------------------------------------------------------------
> 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
-- For Performer+OpenGL tutorials http://www.dorbie.com/"Whenever there is a conflict between human rights and property rights, human rights must prevail." --Abraham Lincoln
This archive was generated by hypermail 2b29 : Mon Apr 09 2001 - 14:06:35 PDT