From owner-info-inventor@oss.sgi.com Thu Aug 9 02:38:00 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f799c0q01038 for info-inventor-outgoing; Thu, 9 Aug 2001 02:38:00 -0700 Received: from mailgwb0.bmwgroup.com (mailgwb0.bmwgroup.com [192.109.190.232]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f799bxV01029 for ; Thu, 9 Aug 2001 02:37:59 -0700 Received: from mhub1.muc ([160.50.97.116]) by mailgwb0.bmwgroup.com (Mirapoint) with ESMTP id AFR29796; Thu, 9 Aug 2001 11:37:48 +0200 (CEST) Received: from mailvsa0.muc by mhub1.muc with ESMTP for info-inventor@oss.sgi.com; Thu, 9 Aug 2001 11:37:48 +0200 Received: from mhub1.muc (mhub1.muc [160.50.97.116]) by mailvsa0.muc (Mirapoint) by mailvsa0.muc (Mirapoint) with ESMTP id ACP57694; Thu, 9 Aug 2001 11:37:47 +0200 (CEST) Received: from mail04 by mhub1.muc with ESMTP for info-inventor@oss.sgi.com; Thu, 9 Aug 2001 11:37:47 +0200 Received: from bmw.de ([160.50.199.217] (may be forged)) by mail04.muc (8.8.6 (PHNE_17190+no byaddr 2)/8.8.6) with ESMTP id LAA10222 for ; Thu, 9 Aug 2001 11:41:24 +0200 (METDST) Message-Id: <3B7259EF.89B92877@bmw.de> Date: Thu, 09 Aug 2001 11:37:51 +0200 From: Gerhard Kern Organization: BMW AG X-Mailer: Mozilla 4.72 [de]C-CCK-MCD (WinNT; U) X-Accept-Language: de To: info-inventor@oss.sgi.com Subject: multi-pipe for Inventor MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------54658D393A36B4DAC5C97538" Sender: owner-inventor@oss.sgi.com Precedence: bulk Dies ist eine mehrteilige Nachricht im MIME-Format. --------------54658D393A36B4DAC5C97538 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Dear team, we use Inventor for developing and assessing in our process. Often the frames wich are loaded are too many for any workstation in our company. Naturalness we have computers with more than one processor, but Inventor doesn't support this ability. Now my question. Is there running somewhere a development or any activity to raise up Inventor to multi-processor ability ? Yours sincerely Gerhard Kern --------------54658D393A36B4DAC5C97538 Content-Type: text/x-vcard; charset=us-ascii; name="gerhard.kern.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gerhard.kern.vcf" Content-Description: Visitenkarte f?r Gerhard Kern begin:vcard n:Kern;Gerhard tel;cell:0171 3561636 tel;work:089 382 47952 x-mozilla-html:FALSE org:BMW AG adr:;;;;;; version:2.1 email;internet:gerhard.kern@bmw.de note:1.5/13.5/3.OG Tel. 0049 89/382-47952 Fax. 0049 89/382-46297 x-mozilla-cpt:;-14384 fn:Gerhard Kern end:vcard --------------54658D393A36B4DAC5C97538-- From owner-info-inventor@oss.sgi.com Thu Aug 9 08:38:39 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f79Fcdw11049 for info-inventor-outgoing; Thu, 9 Aug 2001 08:38:39 -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 f79FccV11046 for ; Thu, 9 Aug 2001 08:38:38 -0700 Received: from DECnet-Mail11.sight.tgs.com by sight.tgs.com (8.8.8/1.1.10.5/07Jul98-0113PM) id IAA0000026324; Thu, 9 Aug 2001 08:32:43 -0700 (PDT) Date: Thu, 9 Aug 2001 08:32:43 -0700 (PDT) Message-Id: <200108091532.IAA0000026324@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: multi-pipe for Inventor Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-inventor@oss.sgi.com Precedence: bulk > we use Inventor for developing and assessing in > our process. Often the frames wich are loaded > are too many for any workstation in our company. > > Naturalness we have computers with more than one > processor, but Inventor doesn't support this ability. > > Now my question. > > Is there running somewhere a development or any activity > to raise up Inventor to multi-processor ability ? Open Inventor 3.0 has just been released by TGS. It includes support for multiple threads and multi-pipe rendering. -Mike TGS Inc, http://www.tgs.com - 20 years of excellence - TGS shipped its first 3D API in 1981 - From owner-info-inventor@oss.sgi.com Mon Aug 13 10:04:39 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7DH4dO13852 for info-inventor-outgoing; Mon, 13 Aug 2001 10:04:39 -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 f7DH4cj13849 for ; Mon, 13 Aug 2001 10:04:38 -0700 Received: (qmail 28937 invoked from network); 13 Aug 2001 12:04:36 -0500 Received: from ratbert.fnal.gov (jarekr@131.225.18.217) by waldo.fnal.gov with SMTP; 13 Aug 2001 12:04:37 -0500 Date: Mon, 13 Aug 2001 12:04:36 -0500 (CDT) From: Jarek Rzepecki To: info-inventor@oss.sgi.com Subject: linking with other app error Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-inventor@oss.sgi.com Precedence: bulk Hi! I'm trying to use in one app OpenGl and Inventor. While linking the following error occured : undefined reference to 'SoDB::init() ' I'm linking my app with -lInventor -lInventorXt -lglut What other libs should I link with. In directory $(IVROOT)/lib there are only Inventor.so and InventorXt.so ... Thank you for any help - jarek Jaroslaw Rzepecki Fermilab BD/Beam Physics Dept. e-mail: jarekr@fnal.gov or : jarekr@phys.uni.torun.pl From owner-info-inventor@oss.sgi.com Wed Aug 15 04:37:55 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7FBbt523995 for info-inventor-outgoing; Wed, 15 Aug 2001 04:37:55 -0700 Received: from yahoo.com (buba.ipri.kiev.ua [194.44.146.39]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f7FBboj23962 for ; Wed, 15 Aug 2001 04:37:51 -0700 Message-Id: <200108151137.f7FBboj23962@oss.sgi.com> From: "Frederick" To: Subject: Software for 1-10% of its real cost Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Date: Wed, 15 Aug 2001 14:33:38 +0300 Reply-To: "Frederick" Content-Transfer-Encoding: 8bit Sender: owner-inventor@oss.sgi.com Precedence: bulk I offer any soft you like for just 1-30% of its real cost. For example: Windows 2000/XP/NT ($50/$60/$50), Office2000 ($55), Adobe Photoshop 6.0 ($60), AutoCad R2000 ($65),ArchiCad 6.5 ($70), 3DS Max ($70), VisualC, games and many others (rare & unpopular). You may get it via airmail (CD). If you will book the 3 programs, fourth (on your choice) I give you for free. THE PARTICULARITY: first you get the program, but only afterwards pay. My e-mail: sadomia@yahoo.com. From owner-info-inventor@oss.sgi.com Wed Aug 15 10:17:26 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7FHHQG11724 for info-inventor-outgoing; Wed, 15 Aug 2001 10:17:26 -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 f7FHHPj11721 for ; Wed, 15 Aug 2001 10:17:25 -0700 Received: (qmail 13793 invoked from network); 15 Aug 2001 12:17:22 -0500 Received: from ratbert.fnal.gov (jarekr@131.225.18.217) by waldo.fnal.gov with SMTP; 15 Aug 2001 12:17:22 -0500 Date: Wed, 15 Aug 2001 12:17:22 -0500 (CDT) From: Jarek Rzepecki To: info-inventor@oss.sgi.com Subject: togl+OI Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-inventor@oss.sgi.com Precedence: bulk Hi! Have anybody tried to use OI in Togl window? If yes i relly would appriciate some info how to do it (if possible at all) I manage to use OI in GLUT window. Thank you... - jarek Jaroslaw Rzepecki Fermilab 23 Neuqua P O Box 500 Batavia, IL 60510 USA BD/Beam Physics Dept. e-mail: jarekr@fnal.gov or : jarekr@phys.uni.torun.pl From owner-info-inventor@oss.sgi.com Mon Aug 20 07:59:01 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7KEx1221959 for info-inventor-outgoing; Mon, 20 Aug 2001 07:59:01 -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 f7KEwgj21954 for ; Mon, 20 Aug 2001 07:58:43 -0700 Received: (qmail 13763 invoked from network); 20 Aug 2001 09:58:33 -0500 Received: from wally.fnal.gov (jarekr@131.225.18.158) by waldo.fnal.gov with SMTP; 20 Aug 2001 09:58:33 -0500 Date: Mon, 20 Aug 2001 09:58:32 -0500 (CDT) From: Jarek Rzepecki To: info-inventor@oss.sgi.com Subject: CSG, boolean operations nodes... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-inventor@oss.sgi.com Precedence: bulk Hi! I need a boolean operations on objects in OpenInventor. I know that OI himself doesn't support them... Hovever i have found on the web paper "Interactive Rendering of CSG Models" 1996 by Tim Wiegand. In this paper author have mentioned that he has written some Inventor nodes... Could sombody send me those nodes (source of course) or tell me where can i find them? I have tried to conntact Tim Wiegand but i can't find his current e-mail adress... I have also checked the www.arct.ac.uk/research/cadlib/inventor web page. Those nodes should be there but they aren't ("no such file" - error while downloading...) 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 Aug 20 12:38:30 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7KJcUJ29145 for info-inventor-outgoing; Mon, 20 Aug 2001 12:38:30 -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 f7KJcS929142 for ; Mon, 20 Aug 2001 12:38:29 -0700 Received: from DECnet-Mail11.sight.tgs.com by sight.tgs.com (8.8.8/1.1.10.5/07Jul98-0113PM) id MAA0000000670; Mon, 20 Aug 2001 12:38:53 -0700 (PDT) Date: Mon, 20 Aug 2001 12:38:53 -0700 (PDT) Message-Id: <200108201938.MAA0000000670@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: CSG, boolean operations nodes... Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-inventor@oss.sgi.com Precedence: bulk > I need a boolean operations on objects in OpenInventor. I know that OI > himself doesn't support them... Hovever i have found on the web paper > "Interactive Rendering of CSG Models" 1996 by Tim Wiegand. In this paper > author have mentioned that he has written some Inventor nodes... Could > sombody send me those nodes (source of course) or tell me where can i find > them? I have tried to conntact Tim Wiegand but i can't find his current > e-mail adress... I have also checked the > www.arct.ac.uk/research/cadlib/inventor web page. Those nodes should be > there but they aren't ("no such file" - error while downloading...) > Thank you... > - jarek FYI, TGS has implemented rendering of CSG-type boolean operations in the SolidViz extension for Open Inventor 3.0 (released 2 weeks ago). FermiLab is a TGS customer, so you might check if this is available to you already. Our contact at FermiLab is Jeff Kallenbach. -Mike TGS Inc, http://www.tgs.com From owner-info-inventor@oss.sgi.com Mon Aug 20 22:31:03 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7L5V3F09060 for info-inventor-outgoing; Mon, 20 Aug 2001 22:31:03 -0700 Received: from mss.rdc2.nsw.optushome.com.au (ha1.rdc2.nsw.optushome.com.au [203.164.2.50]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f7L5Uw909057 for ; Mon, 20 Aug 2001 22:30:58 -0700 Received: from nigels.com ([203.164.221.206]) by mss.rdc2.nsw.optushome.com.au (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010821053052.XWNW4715.mss.rdc2.nsw.optushome.com.au@nigels.com>; Tue, 21 Aug 2001 15:30:52 +1000 Message-ID: <3B81F0CF.18C51A7A@nigels.com> Date: Tue, 21 Aug 2001 15:25:35 +1000 From: Nigel Stewart X-Mailer: Mozilla 4.73 [en] (WinNT; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: Jarek Rzepecki , Inventor List Subject: Re: CSG, boolean operations nodes... References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-inventor@oss.sgi.com Precedence: bulk Jarek, There was recently a similar enquiry on the Mesa mailing list. Here is my reply, in full. PS: I havn't seriously looked at supporting image-space CSG using OSS Inventor, but seems like something that could be done, and I've got source for a few different algorithms including Goldfeather (also used by Weigand). Nigel > Hi! > I need a boolean operations on objects in OpenInventor. I know that OI > himself doesn't support them... ------------------------- Antonio, You may be interested in my PhD research: http://www.nigels.com/research/ There is some source code there, although quite an old snapshot, since I'm due to put some papers out... > - What pattern of classification it is used to group > the surfaces on a product? The Goldfeather algorithm uses a stencil test to isolate each surface of a primitive, then uses a stencil test to clip that surface in the z-buffer before merging the z-buffer result with all the other clipped surfaces. > - How to implement restore or save depth buffer? Two choices - glReadPixels/glDrawPixels Tends to be slow, sucking data across the bus between graphics hardware and main memory. glCopyPixels Subdivide the viewport and use half of the framebuffer as your second z-buffer. Still fairly slow, though. Also, depending on your graphics hardware and driver, copying z-buffer pixels may not be totally reliable. On NVIDIA hardware for example, "far" values tend to fail. See: http://www.nigels.com/research/scs/scs6.jpg Last time I tried Onyx2 (a few years ago) the z-buffer copy failed entirely: http://www.nigels.com/research/scs/scs8.jpg > I was wondering if anyone can help me with those topics > or where can I find some source code of the algorithms described > on that paper. If you find other source code, let me know, I'd be interested in it too... > I also would like to know if any of you has > T.F. Wiegand e-mail. I don't think he's at Cambridge anymore, but you should be able track down some people that might know where he's gone... So, what kind of application are you looking at? Nigel -- Nigel Stewart Email: nigels@nigels.com WWW: http://www.nigels.com Research Student, Software Developer. Just two stops down the line at Zoo Station. From owner-info-inventor@oss.sgi.com Tue Aug 21 04:40:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7LBeVu18096 for info-inventor-outgoing; Tue, 21 Aug 2001 04:40:31 -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 f7LBeU918093 for ; Tue, 21 Aug 2001 04:40:30 -0700 Received: from yahoo.com (dial-53.adamant.net [212.26.130.53]) 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 SMTP id EAA08000 for ; Tue, 21 Aug 2001 04:40:27 -0700 (PDT) mail_from (sadomea@yahoo.com) Message-Id: <200108211140.EAA08000@sgi.com> From: "Frederick" To: Subject: RE: Software for 1-10% of its real cost Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Date: Tue, 21 Aug 2001 14:53:47 +0300 Reply-To: "Frederick" Content-Transfer-Encoding: 8bit Sender: owner-inventor@oss.sgi.com Precedence: bulk I offer any soft you like for just 1-30% of its real cost. For example: Windows 2000/XP/NT ($50/$60/$50), Office2000 ($55), Adobe Photoshop 6.0 ($60), AutoCad R2000 ($65),ArchiCad 6.5 ($70), 3DS Max ($70), VisualC, games and many others (rare & unpopular). You may get it via airmail (CD). If you will book the 3 programs, fourth (on your choice) I give you for free. THE PARTICULARITY: first you get the program, but only afterwards pay. My e-mail: sadomia@yahoo.com. From owner-info-inventor@oss.sgi.com Tue Aug 21 04:53:13 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7LBrDN18689 for info-inventor-outgoing; Tue, 21 Aug 2001 04:53:13 -0700 Received: from deliverator.sgi.com (deliverator.sgi.com [204.94.214.10]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f7LBrC918686 for ; Tue, 21 Aug 2001 04:53:12 -0700 Received: from yahoo.com (dial-53.adamant.net [212.26.130.53]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via SMTP id EAA00368 for ; Tue, 21 Aug 2001 04:52:51 -0700 (PDT) mail_from (sadomea@yahoo.com) Message-Id: <200108211152.EAA00368@deliverator.sgi.com> From: "Frederick" To: Subject: RE: Software for 1-10% of its real cost Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Date: Tue, 21 Aug 2001 15:06:29 +0300 Reply-To: "Frederick" Content-Transfer-Encoding: 8bit Sender: owner-inventor@oss.sgi.com Precedence: bulk *Please repeat your previous answer* I offer any soft you like for just 1-30% of its real cost. For example: Windows 2000/XP/NT ($50/$60/$50), Office2000 ($55), Adobe Photoshop 6.0 ($60), AutoCad R2000 ($65),ArchiCad 6.5 ($70), 3DS Max ($70), VisualC, games and many others (rare & unpopular). You may get it via airmail (CD). If you will book the 3 programs, fourth (on your choice) I give you for free. THE PARTICULARITY: first you get the program, but only afterwards pay. My e-mail: sadomea@yahoo.com. From owner-info-inventor@oss.sgi.com Thu Aug 30 09:33:56 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7UGXum23491 for info-inventor-outgoing; Thu, 30 Aug 2001 09:33:56 -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 f7UGXqd23487 for ; Thu, 30 Aug 2001 09:33:52 -0700 Received: (qmail 21404 invoked from network); 30 Aug 2001 11:33:50 -0500 Received: from wally.fnal.gov (jarekr@131.225.18.158) by waldo.fnal.gov with SMTP; 30 Aug 2001 11:33:50 -0500 Date: Thu, 30 Aug 2001 11:33:50 -0500 (CDT) From: Jarek Rzepecki To: info-inventor@oss.sgi.com Subject: segmentation foult 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 little problem here... i'm trying to create a new class inherited from two others. One of them in OIV class - "SoCylinder" : class VisCyl : public SoCylinder, public TCylinder_t { public: VisCyl(double r, double z); }; With constructor : VisCyl::VisCyl(double r, double z){ TCylinder_t("none",r,z); SoCylinder::radius.setValue(r); SoCylinder::height.setValue(z); } and then in code i call: VisCyl *pppp = new VisCyl(2,5); Compilation goes well. But when i run the program i got error msg : "segmentation foult" Lines that couses the error are: SoCylinder::radius.setValue(r); SoCylinder::height.setValue(z); What am i doing wrong? Thank you for 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 Thu Aug 30 13:13:03 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7UKD3e28918 for info-inventor-outgoing; Thu, 30 Aug 2001 13:13:03 -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 f7UKD0d28915 for ; Thu, 30 Aug 2001 13:13:01 -0700 Received: from segmail.com (pc19 [192.168.2.119]) by segmail.com (8.11.1/8.11.1) with ESMTP id f7UKCr903851 for ; Thu, 30 Aug 2001 16:12:54 -0400 Message-ID: <3B8E9E49.3010900@segmail.com> Date: Thu, 30 Aug 2001 16:12:57 -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: info-inventor@oss.sgi.com Subject: Creating a movie 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-inventor@oss.sgi.com Precedence: bulk I want to be able to create a movie/animation of what my program displays, so I have some code that grabs the frambuffer when I want it. Like this: void Visualization::renderGL(int l,int b,int w,int h,unsigned char* buf=0) { SbViewportRegion vp(w+l,h+b); vp.setViewportPixels(l,b,w,h); SoGLRenderAction myRenderAction(vp); myRenderAction.apply(root); if(buf) { glReadBuffer(GL_BACK); glReadPixels(l,b,w,h,GL_RGB,GL_UNSIGNED_BYTE,buf); } } But, it seems that no matter what I get back straight 0's in buf. Is there some magical incantation to get glReadPixels to work with Inventor, or do I not understand how to use glReadPixels? Kevin From owner-info-inventor@oss.sgi.com Thu Aug 30 13:38:49 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7UKcnh30144 for info-inventor-outgoing; Thu, 30 Aug 2001 13:38:49 -0700 Received: from tigger.softalia.com (tigger.softalia.com [65.161.202.175]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id f7UKckd30141 for ; Thu, 30 Aug 2001 13:38:46 -0700 Received: from localhost (kkonaka@tigger.softalia.com [65.161.202.175]) by tigger.softalia.com (8.11.4/3.7W-isfs) with ESMTP id f7UKcaZ01249; Thu, 30 Aug 2001 16:38:36 -0400 To: kfitch@segmail.com Cc: info-inventor@oss.sgi.com Subject: Re: Creating a movie From: kkonaka@softalia.com In-Reply-To: <3B8E9E49.3010900@segmail.com> References: <3B8E9E49.3010900@segmail.com> X-Mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) X-Prom-Mew: Prom-Mew 1.94 (procmail reader for Mew) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010830163836B.kkonaka@softalia.com> Date: Thu, 30 Aug 2001 16:38:36 -0400 X-Dispatcher: imput version 20000228(IM140) Lines: 52 Sender: owner-inventor@oss.sgi.com Precedence: bulk hi! similar code I've written several years ago looks something like this; I'm not sure if this really helps -- but anyway: void readLeft(void *, SoAction *) { static int c; unsigned char *p; unsigned char *tail = (unsigned char *) ImageLeft + sizeof ImageLeft; // printf("readframe_left_buffer %d\n", c); glPushMatrix(); glReadBuffer(GL_FRONT); glPixelStorei(GL_PACK_ALIGNMENT, 1); glReadPixels(0, 0, IMAGEW, IMAGEH, GL_RGBA, GL_UNSIGNED_BYTE, ImageLeft); for (p = (unsigned char *) ImageLeft; p < tail; ) *(p++) &= 0xf0; glPopMatrix(); } (actually I don't remember why I was doing *(p++) &= 0xf0; part; maybe it's not necessary at all :p) this routine itself is combined into the scenegraph as a form of callback: ... SoCallback *callbackL = new SoCallback; callbackL->setCallback(readLeft); sceneL->addChild(callbackL); ... ps., I also have noticed, doing this is probably what mostly everyone wants: void ditherOff(void *, SoAction *) { glDisable(GL_DITHER); } ... SoCallback *callback1R = new SoCallback; callback1R->setCallback(ditherOff); sceneR->addChild(callback1R); ... regards, kenji @ fairfax, VA. From owner-info-inventor@oss.sgi.com Thu Aug 30 14:11:48 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id f7ULBmp31072 for info-inventor-outgoing; Thu, 30 Aug 2001 14:11:48 -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 f7ULBjd31069 for ; Thu, 30 Aug 2001 14:11:45 -0700 Received: from segmail.com (pc19 [192.168.2.119]) by segmail.com (8.11.1/8.11.1) with ESMTP id f7ULBd904159 for ; Thu, 30 Aug 2001 17:11:39 -0400 Message-ID: <3B8EAC0E.7030302@segmail.com> Date: Thu, 30 Aug 2001 17:11:42 -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: info-inventor@oss.sgi.com Subject: Re: Creating a movie References: <3B8E9E49.3010900@segmail.com> <20010830163836B.kkonaka@softalia.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-inventor@oss.sgi.com Precedence: bulk Thanks ... actually the glPixelStorei(GL_PACK_ALIGNMENT, 1) seems to have helped (well that and I realized that I didnt actually have a current GL context, oooops). kkonaka@softalia.com wrote: > hi! > > similar code I've written several years ago looks something > like this; I'm not sure if this really helps -- but anyway: > > void readLeft(void *, SoAction *) > { > static int c; > unsigned char *p; > unsigned char *tail = (unsigned char *) ImageLeft + sizeof ImageLeft; > > // printf("readframe_left_buffer %d\n", c); > > glPushMatrix(); > glReadBuffer(GL_FRONT); > glPixelStorei(GL_PACK_ALIGNMENT, 1); > glReadPixels(0, 0, IMAGEW, IMAGEH, GL_RGBA, GL_UNSIGNED_BYTE, ImageLeft); > for (p = (unsigned char *) ImageLeft; p < tail; ) > *(p++) &= 0xf0; > glPopMatrix(); > } > > > (actually I don't remember why I was doing > *(p++) &= 0xf0; > part; maybe it's not necessary at all :p) My guess is you were doing red/green 3-d glasses stuff. Kevin