From owner-info-inventor@oss.sgi.com Sun Sep 2 11:32:44 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f82IWi606858 for info-inventor-outgoing; Sun, 2 Sep 2001 11:32:44 -0700 Received: from bpmail.fnal.gov (qmailr@waldo.fnal.gov [131.225.18.213]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f82IWgd06855 for ; Sun, 2 Sep 2001 11:32:42 -0700 Received: (qmail 12884 invoked from network); 2 Sep 2001 13:32:40 -0500 Received: from wally.fnal.gov (jarekr@131.225.18.158) by waldo.fnal.gov with SMTP; 2 Sep 2001 13:32:40 -0500 Date: Sun, 2 Sep 2001 13:32:40 -0500 (CDT) From: Jarek Rzepecki To: info-inventor@oss.sgi.com Subject: building OIV tree Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-inventor@oss.sgi.com Precedence: bulk Hi! I have an object tree (not OIV object tree). Now, i would like to build an OIV tree from this tree. Elements of OIV tree should be SoSeparator type (becouse every object in my tree can have child objects, transformations etc...) How can i build this tree? But once agein problem is not reading from my tree - i can read object information, translation etc from this not OIV tree and applay them to OIV. Problem is how to build this SoSeparator tree. Thank you for any help... - jarek Jaroslaw Rzepecki Fermilab 23 Neuqua P O Box 500 Batavia, IL 60510 USA BD/Beam Physics Dept. 630-840-4309 (office) 630-840-4239 (home) e-mail: jarekr@fnal.gov or : jarekr@phys.uni.torun.pl From owner-info-inventor@oss.sgi.com Mon Sep 3 00:58:24 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f837wOd19379 for info-inventor-outgoing; Mon, 3 Sep 2001 00:58:24 -0700 Received: from mail.greatbasin.net (mail.greatbasin.net [207.228.35.39]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f837wMd19376 for ; Mon, 3 Sep 2001 00:58:22 -0700 Received: from rno-max0-19.gbis.net (rno-max0-19.gbis.net [207.228.60.19]) by mail.greatbasin.net (8.9.3-MySQL-0.2.3b/8.9.3) with ESMTP id AAA22941; Mon, 3 Sep 2001 00:58:20 -0700 (PDT) Date: Mon, 3 Sep 2001 01:02:19 -0700 (PDT) From: Jeremy Buchmann X-X-Sender: To: Jarek Rzepecki cc: Subject: Re: building OIV tree In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-inventor@oss.sgi.com Precedence: bulk On Sun, 2 Sep 2001, Jarek Rzepecki wrote: > Hi! > I have an object tree (not OIV object tree). Now, i would like to build > an OIV tree from this tree. Elements of OIV tree should be SoSeparator > type (becouse every object in my tree can have child objects, > transformations etc...) How can i build this tree? But once agein problem > is not reading from my tree - i can read object information, translation > etc from this not OIV tree and applay them to OIV. Problem is how to build > this SoSeparator tree. Thank you for any help... > - jarek Jarek, I'm not clear on how you're accessing your non-OIV tree, but I assume you are familiar with the format that it is in. What I would do is make a small OIV tree, save it to a file as text, and then look at the file and try to understand how it works. It's not a complicated format by any means. Then, write a program (perl would be ideal) that converts your non-OIV tree into an OIV tree. --Jeremy [buchmann@cs.unr.edu] [buchmann@gbis.com] "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin From owner-info-inventor@oss.sgi.com Tue Sep 4 07:46:44 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f84EkiC23096 for info-inventor-outgoing; Tue, 4 Sep 2001 07:46:44 -0700 Received: from bpmail.fnal.gov (qmailr@waldo.fnal.gov [131.225.18.213]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f84Ekgd23093 for ; Tue, 4 Sep 2001 07:46:42 -0700 Received: (qmail 24762 invoked from network); 4 Sep 2001 09:46:40 -0500 Received: from wally.fnal.gov (jarekr@131.225.18.158) by waldo.fnal.gov with SMTP; 4 Sep 2001 09:46:40 -0500 Date: Tue, 4 Sep 2001 09:46:40 -0500 (CDT) From: Jarek Rzepecki To: Jeremy Buchmann cc: info-inventor@oss.sgi.com Subject: Re: building OIV tree In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-inventor@oss.sgi.com Precedence: bulk Dear Jeremy, I know that my mail wasn't too clear... Anyway my question was about the best way to write this converting program you mentioned at the end of your msg. However i have sloved this problem (well not quite , but i think i know how to do it;)... Thank you for your answer - jarek Jaroslaw Rzepecki Fermilab 23 Neuqua P O Box 500 Batavia, IL 60510 USA BD/Beam Physics Dept. 630-840-4309 (office) 630-840-4239 (home) e-mail: jarekr@fnal.gov or : jarekr@phys.uni.torun.pl From owner-info-inventor@oss.sgi.com Sun Sep 9 15:35:28 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f89MZSW32227 for info-inventor-outgoing; Sun, 9 Sep 2001 15:35:28 -0700 Received: from bpmail.fnal.gov (qmailr@waldo.fnal.gov [131.225.18.213]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f89MZQd32223 for ; Sun, 9 Sep 2001 15:35:26 -0700 Received: (qmail 2938 invoked from network); 9 Sep 2001 17:35:25 -0500 Received: from wally.fnal.gov (jarekr@131.225.18.158) by waldo.fnal.gov with SMTP; 9 Sep 2001 17:35:25 -0500 Date: Sun, 9 Sep 2001 17:35:24 -0500 (CDT) From: Jarek Rzepecki To: info-inventor@oss.sgi.com Subject: line Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-inventor@oss.sgi.com Precedence: bulk Hi! What is the best way to draw a line in OIV? As i know there is no line node. I can of course use OpenGl or for example draw a cylinder insted of line but this is not the best solution becouse in some scales my line will be bery "fat" an in some scales it will be "thin"... So openGl seems to be the only solution... but maybe there is an easiest way...? Thank you. - jarek Jaroslaw Rzepecki Fermilab 23 Neuqua P O Box 500 Batavia, IL 60510 USA BD/Beam Physics Dept. 630-840-4309 (office) 630-840-4239 (home) e-mail: jarekr@fnal.gov or : jarekr@phys.uni.torun.pl From owner-info-inventor@oss.sgi.com Sun Sep 9 20:11:15 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8A3BFQ03469 for info-inventor-outgoing; Sun, 9 Sep 2001 20:11:15 -0700 Received: from sight.tgs.com (mail.tgs.com [64.149.111.123]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8A3BDd03466 for ; Sun, 9 Sep 2001 20:11:14 -0700 Received: from DECnet-Mail11.sight.tgs.com by sight.tgs.com (8.8.8/1.1.10.5/07Jul98-0113PM) id UAA0000022994; Sun, 9 Sep 2001 20:11:02 -0700 (PDT) Date: Sun, 9 Sep 2001 20:11:01 -0700 (PDT) Message-Id: <200109100311.UAA0000022994@sight.tgs.com> Mime-Version: 1.0 From: mmh@tgs.com (Mike Heck) To: SMTP@tgs.com Cc: "info-inventor@oss.sgi.com"@tgs.com Subject: RE: line Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-inventor@oss.sgi.com Precedence: bulk > What is the best way to draw a line in OIV? As i know there is no line > node. I can of course use OpenGl or for example draw a cylinder insted of > line but this is not the best solution becouse in some scales my line will > be bery "fat" an in some scales it will be "thin"... So openGl seems to be > the only solution... but maybe there is an easiest way...? > Thank you. What about SoLineSet or SoIndexedLineSet ? -Mike TGS Inc, http://www.tgs.com From owner-info-inventor@oss.sgi.com Mon Sep 17 14:13:02 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8HLD2Q13222 for info-inventor-outgoing; Mon, 17 Sep 2001 14:13:02 -0700 Received: from bpmail.fnal.gov (qmailr@waldo.fnal.gov [131.225.18.213]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8HLCxe13218 for ; Mon, 17 Sep 2001 14:12:59 -0700 Received: (qmail 28700 invoked from network); 17 Sep 2001 16:12:54 -0500 Received: from wally.fnal.gov (jarekr@131.225.18.158) by waldo.fnal.gov with SMTP; 17 Sep 2001 16:12:54 -0500 Date: Mon, 17 Sep 2001 16:12:53 -0500 (CDT) From: Jarek Rzepecki To: info-inventor@oss.sgi.com Subject: getClassTypeId problem... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-inventor@oss.sgi.com Precedence: bulk Hi! I have a problem with getClassTypeId. Below is a piece of code. It compiles well but it doesn't work well... void create_trace(SoSeparator* OIVparent){ SoNode* tmp_sep; int num_child = OIVparent->getNumChildren(); for (int i = 0; igetChild(i); if (tmp_sep->getClassTypeId() == SoCube::getClassTypeId()){ //do something... } } } num_child is ok, but the tmp_sep = OIVparent->getChild(i) act strange (i think...) looking in debug tmp_sep is always "incomplate type" , what is more the compareation in "if" line is always false. What am i doeing wrong? In general i would like to extract information about all children (are thay separator, shape , transformation etc...) i need it to build another geometry tree. Thank you. - jarek Jaroslaw Rzepecki Fermilab 23 Neuqua P O Box 500 Batavia, IL 60510 USA BD/Beam Physics Dept. 630-840-4309 (office) 630-840-4239 (home) e-mail: jarekr@fnal.gov or : jarekr@phys.uni.torun.pl From owner-info-inventor@oss.sgi.com Mon Sep 17 14:21:06 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8HLL6I13402 for info-inventor-outgoing; Mon, 17 Sep 2001 14:21:06 -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 f8HLL2e13398 for ; Mon, 17 Sep 2001 14:21:02 -0700 Received: from ims-naeast1.brooks.com ([10.10.254.19]) by ds1.brooks.com with esmtp (Exim 3.16 #1) id 15j5p6-0002OW-00; Mon, 17 Sep 2001 17:21:00 -0400 Received: by ims-naeast1.brooks.com with Internet Mail Service (5.5.2653.19) id ; Mon, 17 Sep 2001 17:19:40 -0400 Message-ID: <4744810797EDD4118F320008C7CF03871EAE00@mail-nawest4.brooks.com> From: "Page, Eric" To: "'Jarek Rzepecki'" , info-inventor@oss.sgi.com Subject: RE: getClassTypeId problem... Date: Mon, 17 Sep 2001 17:13:37 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-inventor@oss.sgi.com Precedence: bulk Try using the isOfType() method for the SoNode(SoBase). if (tmp_sep->isOfType(oCube::getClassTypeId()) { // do something... } -----Original Message----- From: Jarek Rzepecki [mailto:jarekr@fnal.gov] Sent: Monday, September 17, 2001 3:13 PM To: info-inventor@oss.sgi.com Subject: getClassTypeId problem... Hi! I have a problem with getClassTypeId. Below is a piece of code. It compiles well but it doesn't work well... void create_trace(SoSeparator* OIVparent){ SoNode* tmp_sep; int num_child = OIVparent->getNumChildren(); for (int i = 0; igetChild(i); if (tmp_sep->getClassTypeId() == SoCube::getClassTypeId()){ //do something... } } } num_child is ok, but the tmp_sep = OIVparent->getChild(i) act strange (i think...) looking in debug tmp_sep is always "incomplate type" , what is more the compareation in "if" line is always false. What am i doeing wrong? In general i would like to extract information about all children (are thay separator, shape , transformation etc...) i need it to build another geometry tree. Thank you. - jarek Jaroslaw Rzepecki Fermilab 23 Neuqua P O Box 500 Batavia, IL 60510 USA BD/Beam Physics Dept. 630-840-4309 (office) 630-840-4239 (home) e-mail: jarekr@fnal.gov or : jarekr@phys.uni.torun.pl From owner-info-inventor@oss.sgi.com Mon Sep 17 14:21:24 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8HLLOm13416 for info-inventor-outgoing; Mon, 17 Sep 2001 14:21:24 -0700 Received: from email2.wsicorp.com (email2.wsicorp.com [198.115.158.33]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8HLLJe13413 for ; Mon, 17 Sep 2001 14:21:19 -0700 Received: from wsi.com (mustard.wsicorp.com [147.81.84.232]) by email2.wsicorp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id S3JNJXMZ; Mon, 17 Sep 2001 17:20:12 -0400 Message-ID: <3BA66996.4763A1BF@wsi.com> Date: Mon, 17 Sep 2001 17:22:31 -0400 From: Doug Dempster X-Mailer: Mozilla 4.77C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: Jarek Rzepecki CC: info-inventor@oss.sgi.com Subject: Re: getClassTypeId problem... References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-inventor@oss.sgi.com Precedence: bulk I think the issue is that you are calling: tmp_sep->getClassTypeId() when you meant to call: tmp_sep->getTypeId() The first one probably resolves to SoNode::getClassTypeId() which isn't what you want at all. Cheers, Doug Jarek Rzepecki wrote: > Hi! > I have a problem with getClassTypeId. Below is a piece of code. It > compiles well but it doesn't work well... > > void create_trace(SoSeparator* OIVparent){ > SoNode* tmp_sep; > int num_child = OIVparent->getNumChildren(); > for (int i = 0; i tmp_sep = OIVparent->getChild(i); > if (tmp_sep->getClassTypeId() == SoCube::getClassTypeId()){ > //do something... > } > } > } > num_child is ok, but the tmp_sep = OIVparent->getChild(i) act strange (i > think...) looking in debug tmp_sep is always "incomplate type" , what is > more the compareation in "if" line is always false. > What am i doeing wrong? > In general i would like to extract information about all children (are > thay separator, shape , transformation etc...) i need it to build another > geometry tree. > Thank you. > - jarek > > > Jaroslaw Rzepecki > Fermilab > 23 Neuqua > P O Box 500 > Batavia, IL 60510 > USA > > BD/Beam Physics Dept. > 630-840-4309 (office) > 630-840-4239 (home) > e-mail: jarekr@fnal.gov > or : jarekr@phys.uni.torun.pl > -- ø¤°`°¤ø,¸¸¸,ø¤°`°¤ø,¸¸¸,ø¤°`°¤ø,¸¸,ø¤°`°¤ø,¸¸¸,ø¤°`°¤ø,¸,ø Doug Dempster WSI dgdempster@wsicorp.com From owner-info-inventor@oss.sgi.com Thu Sep 20 00:48:11 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8K7mBK15542 for info-inventor-outgoing; Thu, 20 Sep 2001 00:48:11 -0700 Received: from smtp7.andrew.cmu.edu (SMTP7.ANDREW.CMU.EDU [128.2.10.87]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f8K7m9e15539 for ; Thu, 20 Sep 2001 00:48:09 -0700 Received: from thresher (DYN-77-98.WV.CC.CMU.EDU [128.2.77.98]) (user=soa mech=KERBEROS_V4 (0 bits)) by smtp7.andrew.cmu.edu (8.12.0.Beta16/8.12.0.Beta16) with ESMTP id f8K7m5Uh000571 for ; Thu, 20 Sep 2001 03:48:05 -0400 Date: Thu, 20 Sep 2001 03:48:05 -0400 From: Stuart Anderson To: info-inventor@oss.sgi.com Subject: Reading the Z-Buffer of an off-screen render Message-ID: <230305522.1000957685@thresher> Originator-Info: login-token=Mulberry:01nm5gvxHdwf/T8uFI46rDKSfczv7g1+MTnMUj5Q==; token_authority=postmaster@andrew.cmu.edu X-Mailer: Mulberry/2.0.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-inventor@oss.sgi.com Precedence: bulk How would I go about reading the Z-Buffer of an SoOffscreenRenderer's image? I assume I'll need to make OpenGl calls in my code immediately after performing the render(). Presumably I need a glReadBuffer to set the buffer to the offscreen buffer - except I don't know how to specify this buffer - is it a GL_AUX or something else? Stuart Anderson From owner-info-inventor@oss.sgi.com Fri Sep 21 05:42:36 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8LCgaq21409 for info-inventor-outgoing; Fri, 21 Sep 2001 05:42:36 -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-inventor@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@oss.sgi.com Fri Sep 21 08:07:48 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8LF7m625552 for info-inventor-outgoing; Fri, 21 Sep 2001 08:07:48 -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-inventor@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@oss.sgi.com Fri Sep 21 09:36:40 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8LGaeW27598 for info-inventor-outgoing; Fri, 21 Sep 2001 09:36:40 -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-inventor@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@oss.sgi.com Sun Sep 23 13:59:28 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8NKxSd11090 for info-inventor-outgoing; Sun, 23 Sep 2001 13:59:28 -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-inventor@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@oss.sgi.com Wed Sep 26 06:15:38 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8QDFc620595 for info-inventor-outgoing; Wed, 26 Sep 2001 06:15:38 -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-inventor@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@oss.sgi.com Thu Sep 27 02:08:00 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f8R980108519 for info-inventor-outgoing; Thu, 27 Sep 2001 02:08:00 -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-inventor@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