From fph at clouddancer.com Thu Sep 6 22:16:17 2007 From: fph at clouddancer.com (GP lisper) Date: Thu, 6 Sep 2007 15:16:17 -0700 (PDT) Subject: [Pal-devel] Screen Capture Function Message-ID: <20070906221617.7BFAF20C13A@mail.clouddancer.com> Hi, I saw the announcement for PAL, but only now can I spend some time on it. I would be interested in being able to get a framebuffer capture without needing an external third party program (or anyone present at the keyboard). A quick look over the html manual doesn't show a heading with that capability, anything planned? Seems like some of the graphical state functions could be `adjusted to this feature. TIA r From flatlander at yellow-hut.com Fri Sep 7 07:45:49 2007 From: flatlander at yellow-hut.com (Tomi Neste) Date: Fri, 07 Sep 2007 10:45:49 +0300 Subject: [Pal-devel] Screen Capture Function In-Reply-To: <20070906221617.7BFAF20C13A@mail.clouddancer.com> References: <20070906221617.7BFAF20C13A@mail.clouddancer.com> Message-ID: GP lisper kirjoitti Fri, 07 Sep 2007 01:16:17 +0300: > > Hi, I saw the announcement for PAL, but only now can I spend some time > on it. I would be interested in being able to get a framebuffer > capture without needing an external third party program (or anyone > present at the keyboard). A quick look over the html manual doesn't > show a heading with that capability, anything planned? Seems like > some of the graphical state functions could be `adjusted to this > feature. > > TIA > r > > _______________________________________________ > Pal-devel mailing list > Pal-devel at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/pal-devel Currently there is not any functionality to do it directly, but it should be possible with the SCREEN-TO-ARRAY(1) (not mentioned in the "manual" since it is badly out of date at the moment... look at examples/images.lisp) function. You'll just need the code to export the image in the desired format. Having an array-to- would be nice but I'm not yet sure how to implement it. It would probably be best to use some other cl library to do the exporting instead of reinventing the wheel but I dont like the idea of adding library dependancies without a good reason. (1)(SCREEN-TO-ARRAY pos-vector width height) returns a region of the backbuffer as an 2d array of (r g b a) lists. Let me know if you try it and have any problems since it is not that well tested yet. -- tomppa From fph at clouddancer.com Mon Sep 10 04:02:58 2007 From: fph at clouddancer.com (GP lisper) Date: Sun, 9 Sep 2007 21:02:58 -0700 (PDT) Subject: [Pal-devel] Screen Capture Function In-Reply-To: (flatlander@yellow-hut.com) References: <20070906221617.7BFAF20C13A@mail.clouddancer.com> Message-ID: <20070910040258.3349B20C13B@mail.clouddancer.com> Date: Fri, 07 Sep 2007 10:45:49 +0300 From: "Tomi Neste" Organization: Yellow Hut Games GP lisper kirjoitti Fri, 07 Sep 2007 01:16:17 +0300: > on it. I would be interested in being able to get a framebuffer > capture without needing an external third party program (or anyone Currently there is not any functionality to do it directly, but it should be possible with the SCREEN-TO-ARRAY(1) (not mentioned in the "manual" Yes, I had seen that. Alas I am having startup problems, seem to not find the supporting libs. I'm working thru the CFFI tutorial, modifying it to match into PAL to see where the problem might be. From flatlander at yellow-hut.com Tue Sep 11 18:41:40 2007 From: flatlander at yellow-hut.com (Tomi Neste) Date: Tue, 11 Sep 2007 21:41:40 +0300 Subject: [Pal-devel] Screen Capture Function In-Reply-To: <20070910040258.3349B20C13B@mail.clouddancer.com> References: <20070906221617.7BFAF20C13A@mail.clouddancer.com> <20070910040258.3349B20C13B@mail.clouddancer.com> Message-ID: GP lisper kirjoitti Mon, 10 Sep 2007 07:02:58 +0300: > > Date: Fri, 07 Sep 2007 10:45:49 +0300 > From: "Tomi Neste" > Organization: Yellow Hut Games > > GP lisper kirjoitti Fri, 07 Sep 2007 01:16:17 > +0300: > > > on it. I would be interested in being able to get a framebuffer > > capture without needing an external third party program (or anyone > > Currently there is not any functionality to do it directly, but it > should > be possible with the SCREEN-TO-ARRAY(1) (not mentioned in the "manual" > > Yes, I had seen that. Alas I am having startup problems, seem to not > find the supporting libs. I'm working thru the CFFI tutorial, > modifying it to match into PAL to see where the problem might be. > > _______________________________________________ > Pal-devel mailing list > Pal-devel at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/pal-devel If you are having problems with loading the (foreign?) libs let me know if it looks like bug in PAL. And in case you are running on linux you might also need to install the developer packages for the sdl libs, at least ISTR that was the case on my Ubuntu box. When I get the time I'll check out the available CL image handling libraries and add some sample code for exporting the PAL image arrays to a file. -- tomppa