From comp@zpok.hu Thu Jul 29 01:57:26 2004 Received: with ECARTIS (v1.0.0; list ogl-sample); Thu, 29 Jul 2004 01:57:30 -0700 (PDT) Received: from hugo.zpok.hu (hugo.zpok.hu [195.70.43.251]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id i6T8vPZo025909 for ; Thu, 29 Jul 2004 01:57:25 -0700 Received: from localhost (localhost [127.0.0.1]) by hugo.zpok.hu (Postfix) with ESMTP id ACB106E1B8 for ; Thu, 29 Jul 2004 10:57:14 +0200 (CEST) Received: from hugo.zpok.hu ([127.0.0.1]) by localhost (hugo [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23417-08 for ; Thu, 29 Jul 2004 10:57:11 +0200 (CEST) Received: by hugo.zpok.hu (Postfix, from userid 33) id C59156E1A7; Thu, 29 Jul 2004 10:57:11 +0200 (CEST) Received: from 82.77.98.16 (SquirrelMail authenticated user comp.zpok.hu) by webmail.zpok.hu with HTTP; Thu, 29 Jul 2004 10:57:11 +0200 (CEST) Message-ID: <32802.82.77.98.16.1091091431.squirrel@webmail.zpok.hu> Date: Thu, 29 Jul 2004 10:57:11 +0200 (CEST) Subject: OpenGL rendering in background From: comp@zpok.hu To: ogl-sample@oss.sgi.com Reply-To: comp@zpok.hu User-Agent: SquirrelMail/1.4.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-2 X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at zpok.hu X-archive-position: 46 X-ecartis-version: Ecartis v1.0.0 Sender: ogl-sample-bounce@oss.sgi.com Errors-to: ogl-sample-bounce@oss.sgi.com X-original-sender: comp@zpok.hu Precedence: bulk X-list: ogl-sample Hi! It is possible to use OpenGL without any window manager (e.g. not attaching to a drawing context with wglsetcurrent/glxsetcurrent)? We need background rendering without user interface. The generated images are copied from the display buffer and postprocessed by our app. How to do this? Which OpenGL settings needed to enable background rendering? Best regards, Peter Breuer comp@zpok.hu From shreiner@arioch.engr.sgi.com Thu Jul 29 12:45:05 2004 Received: with ECARTIS (v1.0.0; list ogl-sample); Thu, 29 Jul 2004 12:45:10 -0700 (PDT) Received: from omx2.sgi.com (omx2-ext.SGI.COM [192.48.171.19] (may be forged)) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id i6TJj3Hj011470 for ; Thu, 29 Jul 2004 12:45:04 -0700 Received: from arioch.engr.sgi.com (arioch.engr.sgi.com [163.154.5.91]) by omx2.sgi.com (8.12.11/8.12.9/linux-outbound_gateway-1.1) with ESMTP id i6TKk9Bp008640 for ; Thu, 29 Jul 2004 13:46:09 -0700 Received: from arioch.engr.sgi.com (localhost [127.0.0.1]) by arioch.engr.sgi.com (SGI-8.12.5/8.12.5) with ESMTP id i6TJj1p8033759; Thu, 29 Jul 2004 12:45:01 -0700 (PDT) Received: (from shreiner@localhost) by arioch.engr.sgi.com (SGI-8.12.5/8.12.5/Submit) id i6TJj02L033810; Thu, 29 Jul 2004 12:45:00 -0700 (PDT) Date: Thu, 29 Jul 2004 12:45:00 -0700 From: Dave Shreiner To: comp@zpok.hu Cc: ogl-sample@oss.sgi.com Subject: Re: OpenGL rendering in background Message-ID: <20040729194500.GB33391@arioch.engr.sgi.com> References: <32802.82.77.98.16.1091091431.squirrel@webmail.zpok.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32802.82.77.98.16.1091091431.squirrel@webmail.zpok.hu> User-Agent: Mutt/1.4.2.1i X-archive-position: 47 X-ecartis-version: Ecartis v1.0.0 Sender: ogl-sample-bounce@oss.sgi.com Errors-to: ogl-sample-bounce@oss.sgi.com X-original-sender: shreiner@arioch.engr.sgi.com Precedence: bulk X-list: ogl-sample Hi Peter, > It is possible to use OpenGL without any window manager (e.g. not > attaching to a drawing context with wglsetcurrent/glxsetcurrent)? Since I think the question you're asking is whether it's possible to open an OpenGL window without a windowing system, the answer is: it depends. WGL, GLX, and any or the other "binding" libraries are what OpenGL requires in order to configure the framebuffer for rendering. The windowing system manages the allocation of framebuffer resources, and then binding an OpenGL context enables OpenGL to use that bit of system resources. I'm personally not aware of hardware accelerated solutions that do not use a windowing system. > We need background rendering without user interface. The generated images > are copied from the display buffer and postprocessed by our app. Are you reallying looking for hardware-accelerated, off-screen rendering areas? These are termed pixel-buffers, and supported in many windowing systems. I'm not much of a Windows savant, but you can query and configure them using glXQueryFBConfigs() for GLX 1.3. > How to do this? Which OpenGL settings needed to enable background rendering? Much of this is described in the OpenGL Red and Blue books, and ample source code is available from opengl.org. Hope that helps. -- Thanx, Dave --------------------------------------------------------------------- Dave Shreiner Silicon Graphics, Inc. (650) 933-4899