From owner-info-inventor-dev@oss.sgi.com Wed Sep 5 05:35:22 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f85CZMv20839 for info-inventor-dev-outgoing; Wed, 5 Sep 2001 05:35:22 -0700 Received: from segmail.com (root@segmail.com [207.233.243.230]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f85CZJd20834 for ; Wed, 5 Sep 2001 05:35:20 -0700 Received: from yahoo.com (pc19 [192.168.2.119]) by segmail.com (8.11.1/8.11.1) with ESMTP id f85CZGd00857 for ; Wed, 5 Sep 2001 08:35:16 -0400 Message-ID: <3B961C04.2090906@yahoo.com> Date: Wed, 05 Sep 2001 08:35:16 -0400 From: Kevin Fitch User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.8 i686; en-US; rv:0.9.1) Gecko/20010622 X-Accept-Language: en-us MIME-Version: 1.0 To: OpenInventor devel mailing list Subject: Float vs Double, was Re: Shaky camera References: <3B827902.7060002@yahoo.com> <3B82B2B5.4080802@sbox.tugraz.at> <3B82B99B.3000807@yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 0.6 (http://www.roaringpenguin.com/mimedefang/) Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Kevin Fitch wrote: > > In hind sight I realize that the camera orientation did not change > so I removed the pointAt ( I just initialize the orientation ), but > things were still shaky. So I put axis.iv at the viewing point, and > this was still jumping around (w/ and w/o pointAt). The center of the > axes would move around (I believe it should be in the exact same spot > of the viewpoint the whole time). At this point I am guessing my > problem lies elsewhere in the application so I will try to construct a > minimal test case that reproduces the problem for me. > > Kevin I finally tracked down the source of the 'shaky' camera. I was using very large numbers that change by rather small amounts, b/c that is how the data is organized natively. There is enough precision in a double for this to work, but when converting down to floats as is required for Inventor I lose needed precision. I have been able to fix most of the problems by recentering the coordinate system around where most of the action takes place. It would be easier on me if Inventor used doubles internally so that I could use the native coordinate system for my problem. Has anyone ever tried to make Inventor use doubles internally? Is there a reason why it can't/shouldn't use doubles (would the extra bandwidth over the AGP, or similar, bus be a performance killer?). I noticed that TGS inventor has classes like SbVec3d, but according to the web page it still uses float's internally. Kevin From owner-info-inventor-dev@oss.sgi.com Fri Sep 14 18:15:34 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8F1FYn08758 for info-inventor-dev-outgoing; Fri, 14 Sep 2001 18:15:34 -0700 Received: from smtp-2.llnl.gov (smtp-2.llnl.gov [128.115.250.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8F1FWe08755 for ; Fri, 14 Sep 2001 18:15:32 -0700 Received: from cliff.llnl.gov (localhost [127.0.0.1]) by smtp-2.llnl.gov (8.9.3/8.9.3/LLNL-gateway-1.0) with ESMTP id SAA02529 for ; Fri, 14 Sep 2001 18:15:27 -0700 (PDT) Received: from llnl.gov ([134.9.13.48]) by cliff.llnl.gov (Netscape Messaging Server 4.15) with ESMTP id GJOJHQ00.2YW for ; Fri, 14 Sep 2001 18:15:26 -0700 Message-ID: <3BA2ABAE.82E643C7@llnl.gov> Date: Fri, 14 Sep 2001 18:15:26 -0700 From: David Bremer X-Mailer: Mozilla 4.76C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: info-inventor-dev@oss.sgi.com Subject: Bug using OIV and Mesa on Linux, rendering back to Solaris Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk There is a problem with Open Inventor's use of overlay planes, when an app links with a local build of Mesa but displays remotely. Mesa does not support overlay planes, but the lib doing the real rendering might. In this situation, while the window is being created, Inventor queries for overlay plane support, and is told by the GL lib on Solaris that overlay planes are supported. It proceeds to ask for a visual with overlay planes from Mesa, which crashes. We have a workaround for this which we would like to put in the distribution. At the top of the method: SoXtGLWidget::buildOverlayGLXWidget(XVisualInfo *vis) we would like to add the line: if (getenv("OIV_NO_OVERLAYS")) return; which will force inventor to run without these planes, which seems to work fine. This is the environment variable that TGS uses in their distribution, maybe to work around the same kinds of problems. Dave Bremer From owner-info-inventor-dev@oss.sgi.com Fri Sep 14 19:24:40 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8F2Oek09840 for info-inventor-dev-outgoing; Fri, 14 Sep 2001 19:24:40 -0700 Received: from rj.sgi.com (rj.sgi.com [204.94.215.100]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8F2Obe09837 for ; Fri, 14 Sep 2001 19:24:37 -0700 Received: from yog-sothoth.sgi.com (eugate.neu.sgi.com [144.253.131.5]) by rj.sgi.com (8.11.4/8.11.4/linux-outbound_gateway-1.0) with ESMTP id f8F2OQ523331 for <@rj.corp.sgi.com:info-inventor-dev@oss.sgi.com>; Fri, 14 Sep 2001 19:24:27 -0700 Received: from kinabalu.csd.sgi.com (kinabalu.csd.sgi.com [130.62.73.96]) by yog-sothoth.sgi.com (980305.SGI.8.8.8-aspam-6.2/980304.SGI-aspam-europe) via ESMTP id EAA593075 for ; Sat, 15 Sep 2001 04:24:18 +0200 (CEST) mail_from (jlim@kinabalu.csd.sgi.com) Received: (from jlim@localhost) by kinabalu.csd.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id TAA38603; Fri, 14 Sep 2001 19:22:03 -0700 (PDT) From: jlim@kinabalu.csd.sgi.com (Jonathan Lim) Message-Id: <200109150222.TAA38603@kinabalu.csd.sgi.com> Subject: Re: Bug using OIV and Mesa on Linux, rendering back to Solaris To: dbremer@llnl.gov (David Bremer) Date: Fri, 14 Sep 2001 19:22:02 -0700 (PDT) Cc: info-inventor-dev@oss.sgi.com In-Reply-To: <3BA2ABAE.82E643C7@llnl.gov> from "David Bremer" at Sep 14, 2001 06:15:26 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk On Fri Sep 14 18:15:26 2001, dbremer@llnl.gov wrote: > > There is a problem with Open Inventor's use of overlay planes, > when an app links with a local build of Mesa but displays remotely. > Mesa does not support overlay planes, but the lib doing the real > rendering might. In this situation, while the window is being created, > Inventor queries for overlay plane support, and is told by the > GL lib on Solaris that overlay planes are supported. It proceeds > to ask for a visual with overlay planes from Mesa, which crashes. I think this is more of a problem with Mesa, and the GLX implementation that came with it. If the remote display supports overlay planes, then the call to glXChooseVisual() in SoXtGLWidget::buildOverlayGLXWidget() should not return NULL. If Mesa/GLX cannot handle overlay planes, glXChooseVisual() should return NULL and the overlay widget will not be built. In any case, there shouldn't be any crashes. If there is, that's a bug outside of libSoXt. I've used the current libInventorXt.so built for Linux (and linked with Mesa) to display on a PC (without overlay planes) and on a system running IRIX (with overlay planes) without any problems. Jonathan Lim _ Silicon Graphics _ Mountain View GPS Graphics Computer Systems CA, USA From owner-info-inventor-dev@oss.sgi.com Mon Sep 17 11:40:32 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8HIeWH09984 for info-inventor-dev-outgoing; Mon, 17 Sep 2001 11:40:32 -0700 Received: from mail.iitk.ac.in ([203.200.95.130]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8HIeQe09980 for ; Mon, 17 Sep 2001 11:40:28 -0700 Received: from qasid.cc.iitk.ac.in (qasid.cc.iitk.ac.in [172.31.1.16]) by mail.iitk.ac.in (8.9.3+Sun/8.9.3) with ESMTP id AAA20317 for ; Tue, 18 Sep 2001 00:09:32 +0530 (IST) Received: from Debug (IDENT:nobody@www.iitk.ac.in [203.200.95.132]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with SMTP id XAA00711 for ; Mon, 17 Sep 2001 23:56:44 +0530 (IST) Message-Id: <200109171826.XAA00711@qasid.cc.iitk.ac.in> To: info-inventor-dev@oss.sgi.com From: nikunj@iitk.ac.in Subject: Help!!!! Date: Mon, 17 Sep 2001 18:14:49 GMT X-Mailer: Endymion MailMan Standard Edition v3.0.35 Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Hi, I'm in a very bad fix. I have to design an AI app., which is supposed to render a cyclist cycling thru' a city. Also intermittently user may control him.I can't decide whether to use GLX+raw OpenGL or Open Inventor ? I chose Open Inventor because it can directly import VRML files and is Obj. Oriented. But will it give me the rendition speed similar to raw OpenGL and more importantly is it suitable for the kind of work I want to do ? Any pointers to some place where I can really learn how to program in Open Inventor, some example code?? thanks very much for the help , -Nikunj Raghuvanshi Junior , CSE IIT Kanpur, India From owner-info-inventor-dev@oss.sgi.com Mon Sep 17 11:53:29 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8HIrTY10325 for info-inventor-dev-outgoing; Mon, 17 Sep 2001 11:53:29 -0700 Received: from mailhub4.hull.ac.uk (Lehar.ucc.hull.ac.uk [150.237.196.3]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8HIrPe10322 for ; Mon, 17 Sep 2001 11:53:25 -0700 Received: from mailhub.dcs.hull.ac.uk (actually host amethyst.dcs.hull.ac.uk) by lehar.ucc.hull.ac.uk with ESMTP; Mon, 17 Sep 2001 19:53:15 +0100 Received: from [150.237.92.11] (helo=scarlet.dcs.hull.ac.uk ident=exim) by mailhub.dcs.hull.ac.uk with esmtp (Exim 3.03 #2) id 15j3W6-0000Ff-00; Mon, 17 Sep 2001 19:53:14 +0100 Received: from cspfh by scarlet.dcs.hull.ac.uk with local (Exim 2.12 #1) id 15j3Vz-0007Eq-00; Mon, 17 Sep 2001 19:53:07 +0100 Date: Mon, 17 Sep 2001 19:53:07 +0100 (BST) From: Fotios Hadginikos X-Sender: cspfh@scarlet To: nikunj@iitk.ac.in cc: info-inventor-dev@oss.sgi.com Subject: Re: Help!!!! In-Reply-To: <200109171826.XAA00711@qasid.cc.iitk.ac.in> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Hi,A good place to start learning Inventor is the developers gallery inventor section @ http://www.dev-gallery.com/programming/openInventor/ Cheers, Fotis On Mon, 17 Sep 2001 nikunj@iitk.ac.in wrote: > Hi, > I'm in a very bad fix. I have to design an AI app., which is supposed to > render a cyclist cycling thru' a city. Also intermittently user may control > him.I can't decide whether to use GLX+raw OpenGL or Open Inventor ? > I chose Open Inventor because it can directly import VRML files and is Obj. > Oriented. > > But will it give me the rendition speed similar to raw OpenGL and more > importantly is it suitable for the kind of work I want to do ? > > > Any pointers to some place where I can really learn how to program in Open > Inventor, some example code?? > thanks very much for the help , > > -Nikunj Raghuvanshi > Junior , CSE > IIT Kanpur, India > > > > ------------------------------------------------------------------------------- Fotis Hadginikos Visualization and Virtual Environments Research Lab, Department of Computer Science, TEL : 0044-1482-466348 University of Hull, HOME: 0044-1482-302635 Cottingham Road, HU67RX, HULL,UK From owner-info-inventor-dev@oss.sgi.com Fri Sep 21 05:42:39 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8LCgdL21418 for info-inventor-dev-outgoing; Fri, 21 Sep 2001 05:42:39 -0700 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8LCgXe21405; Fri, 21 Sep 2001 05:42:33 -0700 Received: from proxy.vc-graz.ac.at (proxy.vc-graz.ac.at [193.171.240.253]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id FAA03410; Fri, 21 Sep 2001 05:42:26 -0700 (PDT) mail_from (hinzge@sbox.tugraz.at) Received: from sbox.tugraz.at (g-66.vc-graz.ac.at [193.171.246.66]) by proxy.vc-graz.ac.at (8.12.0/8.12.0) with ESMTP id f8LCaj3A001904; Fri, 21 Sep 2001 14:36:45 +0200 (MEST) Message-ID: <3BAB3660.7020408@sbox.tugraz.at> Date: Fri, 21 Sep 2001 14:45:20 +0200 From: Christoph =?ISO-8859-1?Q?Hinterm=FCller?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:0.9.2) Gecko/20010628 X-Accept-Language: de-at, de, en, en-us MIME-Version: 1.0 Newsgroups: comp.graphics.api.inventor To: info-inventor@oss.sgi.com, info-inventor-dev@oss.sgi.com Subject: SoXtFullviewer and SoOffscreenRenderer Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Hi I have the following problem I want to print the content of the actual viewer to a file in postscript/Jpeg/tiff/rgb format and later on it should also be possible to feed a mpeg or avi encoder lib directly. While looking through the Books and References arround Inventor I cam accross the SoOffscreenRenderer and tried to implement the example'S given there. But all i get is an image taken form the far infinty showing most of the background of the vierwer and the scene, which is at least filling the viewer if not even zoomed, looks like a verry tiny icon on a vast desktop. I'v allready tried to adf a furhter camera(copy of the viewers camera) to the Rootnode(viewers root passed to the Offscreen renderer) and i tried to use the viwers SoGlRenderAction instead of the one of the OffscreenRenderer i played with the resoltuions .... but all i get is the same in all formats ... So can I use SoOffscreenRenderer at all to generate fileoutput in the mentioned Formats from/alike the Viewer content or do I have to use something different. Is there something special to consider .... cu Christoph -- THESIS: God is alive PROOVE: Who else would have scheduled the mankind and world first recommendation of research???? CONCLUSION: Scientists do what he wants, willing or not:) From owner-info-inventor-dev@oss.sgi.com Fri Sep 21 08:07:53 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8LF7rx25564 for info-inventor-dev-outgoing; Fri, 21 Sep 2001 08:07:53 -0700 Received: from ds1.brooks.com (mailin.brooks.com [63.71.19.252]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8LF7ge25548; Fri, 21 Sep 2001 08:07:42 -0700 Received: from ims-naeast1.brooks.com ([10.10.254.19]) by ds1.brooks.com with esmtp (Exim 3.16 #1) id 15kRtj-0007TD-00; Fri, 21 Sep 2001 11:07:23 -0400 Received: by ims-naeast1.brooks.com with Internet Mail Service (5.5.2653.19) id ; Fri, 21 Sep 2001 11:06:47 -0400 Message-ID: <4744810797EDD4118F320008C7CF03871EAE07@mail-nawest4.brooks.com> From: "Page, Eric" To: =?iso-8859-1?Q?=27Christoph_Hinterm=FCller=27?= , info-inventor@oss.sgi.com, info-inventor-dev@oss.sgi.com Subject: RE: SoXtFullviewer and SoOffscreenRenderer Date: Fri, 21 Sep 2001 11:06:40 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id f8LF7ge25549 Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Yes it does work. I am using TGS Inventor 2.6 and 3.0 on Windows Make sure that you get the viewer's whole scene graph viewer->getSceneManager()->getSceneGraph() to get the draw style, camera, headlight, etc. This is the way that I do what you are doing: writeJPEGPicture(char* filename) { FILE* outfile = fopen(filename, "wb"); if (outfile) { SoOffscreenRenderer* offscreen = new SoOffscreenRenderer(viewer->getGLRenderAction()); SoNode* rootNode = viewer->getSceneManager()->getSceneGraph(); SbColor col = viewer->getBackgroundColor(); offscreen->setBackgroundColor(col); offscreen->render(rootNode); renderOffscreen(getWholeSceneGraph()); offscreen->writeToJPEG(outfile); fclose(outfile); } } -----Original Message----- From: Christoph Hintermüller [mailto:hinzge@sbox.tugraz.at] Sent: Friday, September 21, 2001 6:45 AM To: info-inventor@oss.sgi.com; info-inventor-dev@oss.sgi.com Subject: SoXtFullviewer and SoOffscreenRenderer Hi I have the following problem I want to print the content of the actual viewer to a file in postscript/Jpeg/tiff/rgb format and later on it should also be possible to feed a mpeg or avi encoder lib directly. While looking through the Books and References arround Inventor I cam accross the SoOffscreenRenderer and tried to implement the example'S given there. But all i get is an image taken form the far infinty showing most of the background of the vierwer and the scene, which is at least filling the viewer if not even zoomed, looks like a verry tiny icon on a vast desktop. I'v allready tried to adf a furhter camera(copy of the viewers camera) to the Rootnode(viewers root passed to the Offscreen renderer) and i tried to use the viwers SoGlRenderAction instead of the one of the OffscreenRenderer i played with the resoltuions .... but all i get is the same in all formats ... So can I use SoOffscreenRenderer at all to generate fileoutput in the mentioned Formats from/alike the Viewer content or do I have to use something different. Is there something special to consider .... cu Christoph -- THESIS: God is alive PROOVE: Who else would have scheduled the mankind and world first recommendation of research???? CONCLUSION: Scientists do what he wants, willing or not:) From owner-info-inventor-dev@oss.sgi.com Fri Sep 21 09:36:36 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8LGaar27583 for info-inventor-dev-outgoing; Fri, 21 Sep 2001 09:36:36 -0700 Received: from mailrelay.tugraz.at (mailrelay.tu-graz.ac.at [129.27.3.7]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8LGaWe27580; Fri, 21 Sep 2001 09:36:32 -0700 Received: from sbox.tugraz.at (fdpmipc165.tu-graz.ac.at [129.27.145.165]) by mailrelay.tugraz.at (8.12.0/8.12.0) with ESMTP id f8LGa1O4022176; Fri, 21 Sep 2001 18:36:01 +0200 (MEST) Message-ID: <3BAB6BEB.9090105@sbox.tugraz.at> Date: Fri, 21 Sep 2001 18:33:47 +0200 From: Christoph Hintermueller User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; 0.7) Gecko/20010316 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.graphics.api.inventor To: info-inventor@oss.sgi.com, info-inventor-dev@oss.sgi.com Subject: Re: SoXtFullviewer and SoOffscreenRenderer References: <3BAB3660.7020408@sbox.tugraz.at> Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) X-MIME-Autoconverted: from 8bit to quoted-printable by mailrelay.tugraz.at id f8LGa1O4022176 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id f8LGaXe27581 Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Christoph Hintermüller wrote: > Hi > > I have the following problem > I want to print the content of the actual viewer to a file in > postscript/Jpeg/tiff/rgb format and later on it should also be possible > to feed a mpeg or avi encoder lib directly. > > While looking through the Books and References arround Inventor I cam > accross the SoOffscreenRenderer and tried to implement the example'S > given there. > > > But all i get is an image taken form the far infinty showing most of the > background of the vierwer and the scene, which is at least filling the > viewer if not even zoomed, looks like a verry tiny icon on a vast desktop. > > I'v allready tried to adf a furhter camera(copy of the viewers camera) > to the Rootnode(viewers root passed to the Offscreen renderer) and i > tried to use the viwers SoGlRenderAction instead of the one of the > OffscreenRenderer i played with the resoltuions .... > but all i get is the same in all formats ... > > > So can I use SoOffscreenRenderer at all to generate fileoutput in the > mentioned > Formats from/alike the Viewer content or do I have to use something > different. > > > Is there something special to consider .... > > cu > Christoph Thanks to Eric Page Since i changed the getSceneGraph() form the hilevel function provided by the Application we develope for to the one from SoSceneManager it works fine :) cu Christoph From owner-info-inventor-dev@oss.sgi.com Sun Sep 23 13:59:26 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8NKxQT11081 for info-inventor-dev-outgoing; Sun, 23 Sep 2001 13:59:26 -0700 Received: from proxy.vc-graz.ac.at (proxy.vc-graz.ac.at [193.171.240.253]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8NKxMe11078; Sun, 23 Sep 2001 13:59:22 -0700 Received: from sbox.tugraz.at (g-66.vc-graz.ac.at [193.171.246.66]) by proxy.vc-graz.ac.at (8.12.0/8.12.0) with ESMTP id f8NKwk3A003895; Sun, 23 Sep 2001 22:58:46 +0200 (MEST) Message-ID: <3BAE4F0D.1080704@sbox.tugraz.at> Date: Sun, 23 Sep 2001 23:07:25 +0200 From: Christoph =?ISO-8859-1?Q?Hinterm=FCller?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:0.9.2) Gecko/20010628 X-Accept-Language: de-at, de, en, en-us MIME-Version: 1.0 Newsgroups: comp.graphics.api.inventor To: info-inventor-dev@oss.sgi.com, info-inventor@oss.sgi.com Subject: Again SoOffscreen Rnderer Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Hi Again I want to send the images genereated by the SoOffscreenRenderer to a separate AVI/MPEG encoder process/thread In order to do so I get the rendered image via getBuffer and put it onto a common memory space. But for encoding (optimal?) i do need further information about the output of the Offscreenrenderer: the size of the output i do know but which color format the renderer uses for rendering resulting in a certain ammount of bytes I do not know Therefor my question is the color format eg 8/16(5:5:5)/16(5:6:5)/24/32 bytes taken from the actual X screen or is it allwas set to a specific value and where can I get further information upont the content of the output of getBuffer ???? cu Christoph -- THESIS: God is alive PROOVE: Who else would have scheduled the mankind and world first recommendation of research???? CONCLUSION: Scientists do what he wants, willing or not:) From owner-info-inventor-dev@oss.sgi.com Wed Sep 26 06:15:37 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8QDFb720587 for info-inventor-dev-outgoing; Wed, 26 Sep 2001 06:15:37 -0700 Received: from mailrelay.tugraz.at (mailrelay.tu-graz.ac.at [129.27.3.7]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8QDFYD20581; Wed, 26 Sep 2001 06:15:35 -0700 Received: from sbox.tugraz.at (fdpmipc165.tu-graz.ac.at [129.27.145.165]) by mailrelay.tugraz.at (8.12.0/8.12.0) with ESMTP id f8QDExN1019063; Wed, 26 Sep 2001 15:14:59 +0200 (MEST) Message-ID: <3BB1D457.9070304@sbox.tugraz.at> Date: Wed, 26 Sep 2001 15:12:55 +0200 From: Christoph Hintermueller User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; 0.7) Gecko/20010316 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.graphics.api.inventor To: info-inventor , info-inventor-dev Subject: Q: GLX non sever Runtime Error Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Hi What do i have to look for if I do get the following message GLX Error: maximum number of visuals exceeded Which lines of code I do have to take a closer look to What do I have to assume might have been misscode if getting this messages ??? cu Christoph From owner-info-inventor-dev@oss.sgi.com Thu Sep 27 02:07:57 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8R97v108508 for info-inventor-dev-outgoing; Thu, 27 Sep 2001 02:07:57 -0700 Received: from mailrelay.tugraz.at (mailrelay.tu-graz.ac.at [129.27.3.7]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8R97rD08504; Thu, 27 Sep 2001 02:07:53 -0700 Received: from sbox.tugraz.at (fdpmipc165.tu-graz.ac.at [129.27.145.165]) by mailrelay.tugraz.at (8.12.0/8.12.0) with ESMTP id f8R97HJM011654; Thu, 27 Sep 2001 11:07:18 +0200 (MEST) Message-ID: <3BB2EBCE.7050009@sbox.tugraz.at> Date: Thu, 27 Sep 2001 11:05:18 +0200 From: Christoph Hintermueller User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; 0.7) Gecko/20010316 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.graphics.api.inventor To: info-inventor , info-inventor-dev Subject: Re: Q: GLX non sever Runtime Error References: <3BB1D457.9070304@sbox.tugraz.at> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Christoph Hintermueller wrote: > Hi > What do i have to look for if I do get the following message > GLX Error: maximum number of visuals exceeded > > Which lines of code I do have to take a closer look to > What do I have to assume might have been misscode > if getting this messages ??? > > cu > Christoph Hi It seems as or better it happens if rendering fails eg: Im using the SoOffscreenRenderer to render what one can see in the Viewer to an outputfile. If i do that in connection with a trigger allowing me to make several pictures at a time, it shows up that the number of GLX Error: maximum number of visuals exceeded messages equals the number of fails of the SoOffscrreenRenderer::render(SoNode* root) function; So do I have to do further cleanups to gain back visuals which seem to be lost. Or are there othermachnism to figure out if one frame schould be skiped in order to keep number ov fisuals constant (=2 Viewer and single OffscreenRenderer) ??? Same happens if I open a Color Dialog and changes the backgroundcolor of the Viewer everytime the Colordialog calls back and ma callbackfunction is not in critical state. Does it help to limitate the sucessfull callbacks by setting a inimum interval between callbacks bejond which any callback or trigger event will be rejected ?? cu Christoph