From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA26819; Wed, 30 Apr 2003 10:51:17 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA26793 for ; Wed, 30 Apr 2003 10:51:16 +0200 (MET DST) Received: from 194.186.30.209.adsl-spb.net.rol.ru (194.186.30.209.adsl-spb.net.rol.ru [194.186.30.209]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h3U8pDT07731 for ; Wed, 30 Apr 2003 10:51:13 +0200 (MET DST) Received: from 194.186.30.209.adsl-spb.net.rol.ru (localhost.localdomain [127.0.0.1]) by 194.186.30.209.adsl-spb.net.rol.ru (8.12.8/8.12.8) with ESMTP id h3U8Wbdi017449; Wed, 30 Apr 2003 12:32:38 +0400 Received: from localhost (localhost [[UNIX: localhost]]) by 194.186.30.209.adsl-spb.net.rol.ru (8.12.8/8.12.8/Submit) id h3U8WbGG017447; Wed, 30 Apr 2003 12:32:37 +0400 From: Nickolay Kolchin-Semyonov Organization: MediaLTD To: Damien , caml-list@inria.fr Subject: Re: [Caml-list] writing images with lablgl Date: Wed, 30 Apr 2003 12:32:35 +0400 User-Agent: KMail/1.5 References: <20030430102914.20c1a625.Damien.Pous@ens-lyon.fr> In-Reply-To: <20030430102914.20c1a625.Damien.Pous@ens-lyon.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304301232.36235.snob@metalinkltd.com> X-Spam: no; 0.00; nickolay:01 snob:01 caml-list:01 lablgl:01 damien:01 labgl:01 camlgl:01 supported:01 images:98 opengl:02 wrote:03 data:03 functions:05 converting:05 render:08 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wednesday 30 April 2003 12:29, Damien wrote: > Hi, > > Is there an easy way to save a "labgl(ut) picture" to a file ? > Is there a way of doing it without displaying the picture ? > > (I have got a list of polygons to render into a file) > You can use glReadPixels and glReadBuffer save BACK image from OpenGL to memory. Converting pixel data to image format is your task. I'am not sure that this functions are supported by lablgl. If not, you can use camlgl (http://www.sf.net/projects/camlgl) Nickolay ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners