From tramdas at hotmail.com Fri Jan 16 12:50:35 2004 From: tramdas at hotmail.com (T Ramdas) Date: Fri, 16 Jan 2004 11:50:35 +0000 Subject: [gl2ps] sample implementation code Message-ID: Hi ! I am new to gl2ps. Can somebody guide me on the following: 1. Can I convert a txt/doc file into ps using gl2ps. 2. If yes, can somebody provide me sample implementation code ? 3. The test program provided by the gl2ps application seems to be very complicated for me. Thanks for your help Best Regards, Ramdas _________________________________________________________________ Games, MMS cards, ringtones. Operator logos, picture messages & more. http://server1.msn.co.in/sp03/mobilesms/ Jazz up your mobile! From prabhu at aero.iitm.ernet.in Sat Feb 21 20:50:06 2004 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sun, 22 Feb 2004 01:20:06 +0530 Subject: [gl2ps] Wierd problem under Mac OSX Message-ID: <16439.46702.292149.737671@monster.linux.in> Hi Christophe, I think I have found a bug in gl2ps on Mac OS X. I have no idea where it occurs though. One MayaVi user (Konrad Hinsen) was generating some figures via VTK->gl2ps and found that the generated PS/EPS/PDF has *no* shading. I don't have a Mac so I have been asking the user to mail me test output. I am attaching two EPS figures, one was generated on Linux and the other on the Mac OS X. The linux version renders correctly and generates shaded triangles in the EPS output, the Mac version has no shaded triangles and looks flat. The PDF output is also similarly bad with no shading of the triangles. Both figures were generated using GL2PS_BSP_SORT. I've asked for output without sorting and will send those results along when I get them. Here are the other options used: GL2PS_DRAW_BACKGROUND, GL2PS_SIMPLE_LINE_OFFSET, GL2PS_BEST_ROOT, GL2PS_OCCLUSION_CULL The picture was generated via a small VTK-Python script. I don't have a pure OpenGL test program I can mail. The script basically renders a sphere and uses gl2ps to generate the PS output. If you need more information please do let me know. Thanks! prabhu -------------- next part -------------- A non-text attachment was scrubbed... Name: test_lnx.eps Type: application/postscript Size: 47837 bytes Desc: Linux version URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_osx.eps Type: application/postscript Size: 19761 bytes Desc: OSX version URL: From geuzaine at acm.caltech.edu Sun Feb 22 08:05:01 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Sat, 21 Feb 2004 23:05:01 -0800 Subject: [gl2ps] Re: Wierd problem with gl2ps under Mac OS X In-Reply-To: <16440.8802.761428.385660@monster.linux.in> References: <16440.8802.761428.385660@monster.linux.in> Message-ID: <4038549D.1020607@acm.caltech.edu> Prabhu Ramachandran wrote: > Hi Christophe, > > I sent in a message yesterday to gl2ps at geuz.org but apparently the > message has not made it through. So here is a re-send with some extra > information. > > I think I have found a bug in gl2ps on Mac OS X. I have no idea where > it occurs though. One MayaVi user (Konrad Hinsen) was generating some > figures via VTK->gl2ps and found that the generated PS/EPS/PDF has > *no* shading, all the triangles are unshaded. Yes, I have the same problem on my Mac: it must be a bug in Apple's OpenGL implementation... It might be worth it to send a bug report directly to Apple. Christophe > I don't have a Mac so I > have been asking the user to mail me test output. I am attaching two > gzipped EPS figures, one was generated on Linux and the other on the > Mac OS X. The linux version renders correctly and generates shaded > triangles in the EPS output, the Mac version has no shaded triangles > and looks flat. The PDF output is also similarly bad with no shading > of the triangles. Both figures were generated using GL2PS_BSP_SORT. > I also asked for output without sorting and while it is slightly > different it also has no shading for any of the triangles. Here are > the other options used: > > GL2PS_DRAW_BACKGROUND, GL2PS_SIMPLE_LINE_OFFSET, GL2PS_BEST_ROOT, > GL2PS_OCCLUSION_CULL > > Platform: MacOS 10.3.2 > gcc version: 3.3 (from the Apple developer kit) > > I also have the VTK configuration options but don't think they will > matter too much. If you need them I can give you those too. > > The pictures were generated via a small VTK-Python script. I don't > have a pure OpenGL test program I can mail. The script basically > renders a sphere and uses gl2ps to generate the PS output. > > If you need more information please do let me know. > > Thanks! > > prabhu > -- Christophe A. Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From prabhu at aero.iitm.ernet.in Sun Feb 22 08:30:50 2004 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sun, 22 Feb 2004 13:00:50 +0530 Subject: [gl2ps] Re: Wierd problem with gl2ps under Mac OS X In-Reply-To: <4038549D.1020607@acm.caltech.edu> References: <16440.8802.761428.385660@monster.linux.in> <4038549D.1020607@acm.caltech.edu> Message-ID: <16440.23210.398435.591222@monster.linux.in> >>>>> "CG" == Christophe Geuzaine writes: CG> Prabhu Ramachandran wrote: >> I think I have found a bug in gl2ps on Mac OS X. I have no >> idea where it occurs though. One MayaVi user (Konrad Hinsen) >> was generating some figures via VTK->gl2ps and found that the >> generated PS/EPS/PDF has *no* shading, all the triangles are >> unshaded. [snip] CG> Yes, I have the same problem on my Mac: it must be a bug in CG> Apple's OpenGL implementation... CG> It might be worth it to send a bug report directly to Apple. Thanks for the quick reply! I am CC'ing Konrad on this email. How does one submit this bug report to Apple? Do you have specific details that you would want Konrad to send them? Do you have plans on submitting a report and would it help if both you and Konrad did so? Technically, do you think that their OpenGL implementation does not work correctly when the render mode is GL_FEEDBACK? Afterall, the shading works fine when the render mode is GL_RENDER. If Konrad would like to submit the bug to Apple, I think your suggestions on what to say will help. Thanks again! cheers, prabhu From geuzaine at acm.caltech.edu Sun Feb 22 08:39:07 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Sat, 21 Feb 2004 23:39:07 -0800 Subject: [gl2ps] Re: Wierd problem with gl2ps under Mac OS X In-Reply-To: <16440.23210.398435.591222@monster.linux.in> References: <16440.8802.761428.385660@monster.linux.in> <4038549D.1020607@acm.caltech.edu> <16440.23210.398435.591222@monster.linux.in> Message-ID: <40385C9B.1060502@acm.caltech.edu> Prabhu Ramachandran wrote: >>>>>>"CG" == Christophe Geuzaine writes: > > > CG> Prabhu Ramachandran wrote: > >> I think I have found a bug in gl2ps on Mac OS X. I have no > >> idea where it occurs though. One MayaVi user (Konrad Hinsen) > >> was generating some figures via VTK->gl2ps and found that the > >> generated PS/EPS/PDF has *no* shading, all the triangles are > >> unshaded. > [snip] > CG> Yes, I have the same problem on my Mac: it must be a bug in > CG> Apple's OpenGL implementation... > > CG> It might be worth it to send a bug report directly to Apple. > > Thanks for the quick reply! I am CC'ing Konrad on this email. > > How does one submit this bug report to Apple? Do you have specific > details that you would want Konrad to send them? Do you have plans on > submitting a report and would it help if both you and Konrad did so? I think it would be nice if you guys could submit the bug report (I don't have much time to deal with this at the moment). I guess submitting a small standalone example would be best. > > Technically, do you think that their OpenGL implementation does not > work correctly when the render mode is GL_FEEDBACK? Afterall, the > shading works fine when the render mode is GL_RENDER. Yep, in GL_FEEDBACK mode only. Christophe -- Christophe A. Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From prabhu at aero.iitm.ernet.in Sun Feb 22 08:44:58 2004 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sun, 22 Feb 2004 13:14:58 +0530 Subject: [gl2ps] Re: Wierd problem with gl2ps under Mac OS X In-Reply-To: <40385C9B.1060502@acm.caltech.edu> References: <16440.8802.761428.385660@monster.linux.in> <4038549D.1020607@acm.caltech.edu> <16440.23210.398435.591222@monster.linux.in> <40385C9B.1060502@acm.caltech.edu> Message-ID: <16440.24058.977174.129432@monster.linux.in> >>>>> "CG" == Christophe Geuzaine writes: >> How does one submit this bug report to Apple? Do you have >> specific details that you would want Konrad to send them? Do >> you have plans on submitting a report and would it help if both >> you and Konrad did so? CG> I think it would be nice if you guys could submit the bug CG> report (I don't have much time to deal with this at the CG> moment). I guess submitting a small standalone example would CG> be best. OK, but, I plan to submit my Ph.D. in the next couple of months. So, I'm really busy. I'll see what I can do though. >> Technically, do you think that their OpenGL implementation does >> not work correctly when the render mode is GL_FEEDBACK? >> Afterall, the shading works fine when the render mode is >> GL_RENDER. CG> Yep, in GL_FEEDBACK mode only. OK, thanks for the confirmation. cheers, prabhu From prabhu at aero.iitm.ernet.in Mon Feb 23 19:00:52 2004 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 23 Feb 2004 23:30:52 +0530 Subject: [gl2ps] Re: Wierd problem with gl2ps under Mac OS X In-Reply-To: <200402231427.29131.hinsen@cnrs-orleans.fr> References: <16440.8802.761428.385660@monster.linux.in> <4038549D.1020607@acm.caltech.edu> <16440.23210.398435.591222@monster.linux.in> <200402231427.29131.hinsen@cnrs-orleans.fr> Message-ID: <16442.16340.516371.662642@monster.linux.in> >>>>> "KH" == Konrad Hinsen writes: KH> On Sunday 22 February 2004 08:30, Prabhu Ramachandran wrote: >> How does one submit this bug report to Apple? Do you have >> specific KH> They have a bug management system at KH> http://developer.apple.com/bugreporter/ KH> I can file a report there (I am already a member of the "Apple KH> Developer Connection"), but I am rather ignorant about the KH> nature of the bug. I can't offer any simple demonstration KH> either. If I were Apple, I wouldn't be delighted in having KH> install VTK in order to verify the problem. KH> Is it possible to demonstrate the bug with a plain C program? Yes, I think it should be. Just download this: http://www.geuz.org/gl2ps/src/gl2ps-1.1.2.tar.gz untar it, $ cd gl2ps-1.1.2 $ gcc -O3 gl2psTest.c gl2ps.c -framework OpenGL -framework GLUT \ -framework Cocoa Now, run ./a.out and press 's' to save a bunch of eps files. I think you'll see no shading for the torus (or teapot). If that is the case, I think you can tell the developers this and tell them that their OpenGL implementations is broken. Specifically its broken when glRenderMode is set to GL_FEEDBACK and no shading information appears to make it into the feedback buffer. Christophe, please correct me if I'm wrong. cheers, prabhu From geuzaine at acm.caltech.edu Mon Feb 23 21:23:35 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Mon, 23 Feb 2004 12:23:35 -0800 Subject: [gl2ps] Re: Wierd problem with gl2ps under Mac OS X In-Reply-To: <16442.16340.516371.662642@monster.linux.in> References: <16440.8802.761428.385660@monster.linux.in> <4038549D.1020607@acm.caltech.edu> <16440.23210.398435.591222@monster.linux.in> <200402231427.29131.hinsen@cnrs-orleans.fr> <16442.16340.516371.662642@monster.linux.in> Message-ID: <403A6147.6030808@acm.caltech.edu> Prabhu Ramachandran wrote: >>>>>>"KH" == Konrad Hinsen writes: > > > KH> On Sunday 22 February 2004 08:30, Prabhu Ramachandran wrote: > >> How does one submit this bug report to Apple? Do you have > >> specific > > KH> They have a bug management system at > > KH> http://developer.apple.com/bugreporter/ > > KH> I can file a report there (I am already a member of the "Apple > KH> Developer Connection"), but I am rather ignorant about the > KH> nature of the bug. I can't offer any simple demonstration > KH> either. If I were Apple, I wouldn't be delighted in having > KH> install VTK in order to verify the problem. > > KH> Is it possible to demonstrate the bug with a plain C program? > > Yes, I think it should be. Just download this: > > http://www.geuz.org/gl2ps/src/gl2ps-1.1.2.tar.gz > > untar it, > > $ cd gl2ps-1.1.2 > > $ gcc -O3 gl2psTest.c gl2ps.c -framework OpenGL -framework GLUT \ > -framework Cocoa > > Now, run ./a.out and press 's' to save a bunch of eps files. I think > you'll see no shading for the torus (or teapot). If that is the case, > I think you can tell the developers this and tell them that their > OpenGL implementations is broken. Specifically its broken when > glRenderMode is set to GL_FEEDBACK and no shading information appears > to make it into the feedback buffer. Christophe, please correct me if > I'm wrong. > Guys - I spent 5 minutes re-testing on my Mac with a very simple example (see attached file), and the bug seems to be a little more subtle : - when I draw the torus, it doesn't work. - but when I draw the teapot, it seems to work just fine !?!? Can you reproduce this? Christophe -- Christophe A. Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test.c URL: From geuzaine at acm.caltech.edu Mon Feb 23 21:38:02 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Mon, 23 Feb 2004 12:38:02 -0800 Subject: [gl2ps] Re: Wierd problem with gl2ps under Mac OS X In-Reply-To: <03757174-663F-11D8-92E2-000A95AB5F10@cnrs-orleans.fr> References: <16440.8802.761428.385660@monster.linux.in> <4038549D.1020607@acm.caltech.edu> <16440.23210.398435.591222@monster.linux.in> <200402231427.29131.hinsen@cnrs-orleans.fr> <16442.16340.516371.662642@monster.linux.in> <03757174-663F-11D8-92E2-000A95AB5F10@cnrs-orleans.fr> Message-ID: <403A64AA.6030104@acm.caltech.edu> Konrad Hinsen wrote: > On 23.02.2004, at 19:00, Prabhu Ramachandran wrote: > > >>Yes, I think it should be. Just download this: >> >> http://www.geuz.org/gl2ps/src/gl2ps-1.1.2.tar.gz > > > Thanks! I tried this under Linux (nice output) and then with MacOS: > terrible, not only the shading is missing, but the torus comes out red! > One EPS file is attached as a demonstration. > Weird: it comes out white on my powerbook (running OS X 10.3.2) :-) Is the teapot working? Christophe -- Christophe A. Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From krischnamurti at users.sourceforge.net Mon Feb 23 21:40:18 2004 From: krischnamurti at users.sourceforge.net (Micha Bieber) Date: Mon, 23 Feb 2004 21:40:18 +0100 Subject: [gl2ps] Re: Wierd problem with gl2ps under Mac OS X In-Reply-To: <403A6147.6030808@acm.caltech.edu> References: <16440.8802.761428.385660@monster.linux.in> <4038549D.1020607@acm.caltech.edu> <16440.23210.398435.591222@monster.linux.in> <200402231427.29131.hinsen@cnrs-orleans.fr> <16442.16340.516371.662642@monster.linux.in> <403A6147.6030808@acm.caltech.edu> Message-ID: <1932026781.20040223214018@traits.de> If it concerns - no problems with XP nvidia card gl2ps v1.1.2 here - gray teapot || torus. Micha -- From prabhu at aero.iitm.ernet.in Tue Feb 24 04:40:22 2004 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 24 Feb 2004 09:10:22 +0530 Subject: [gl2ps] Re: Wierd problem with gl2ps under Mac OS X In-Reply-To: <1932026781.20040223214018@traits.de> References: <16440.8802.761428.385660@monster.linux.in> <4038549D.1020607@acm.caltech.edu> <16440.23210.398435.591222@monster.linux.in> <200402231427.29131.hinsen@cnrs-orleans.fr> <16442.16340.516371.662642@monster.linux.in> <403A6147.6030808@acm.caltech.edu> <1932026781.20040223214018@traits.de> Message-ID: <16442.51110.881015.770548@monster.linux.in> >>>>> "MB" == Micha Bieber writes: MB> If it concerns - no problems with XP nvidia card gl2ps v1.1.2 MB> here - gray teapot || torus. Thanks for that information. It also all works perfectly (as it has always) under Linux. cheers, prabhu From prabhu at aero.iitm.ernet.in Tue Feb 24 04:58:40 2004 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 24 Feb 2004 09:28:40 +0530 Subject: [gl2ps] Re: Wierd problem with gl2ps under Mac OS X In-Reply-To: <403A6147.6030808@acm.caltech.edu> References: <16440.8802.761428.385660@monster.linux.in> <4038549D.1020607@acm.caltech.edu> <16440.23210.398435.591222@monster.linux.in> <200402231427.29131.hinsen@cnrs-orleans.fr> <16442.16340.516371.662642@monster.linux.in> <403A6147.6030808@acm.caltech.edu> Message-ID: <16442.52208.761796.897778@monster.linux.in> >>>>> "CG" == Christophe Geuzaine writes: CG> Guys - I spent 5 minutes re-testing on my Mac with a very CG> simple example (see attached file), and the bug seems to be a CG> little more subtle : CG> - when I draw the torus, it doesn't work. CG> - but when I draw the teapot, it seems to work just fine !?!? CG> Can you reproduce this? Hmm, what if you draw both simultaneously? I doubt it would make a difference. The glut manuals say this about the teapot: glutSolidTeapot and glutWireTeapot render a solid or wire? frame teapot respectively. Both surface normals and tex? ture coordinates for the teapot are generated. The teapot is generated with OpenGL evaluators. Perhaps the teapot works because of the surface normals or the OpenGL evaluators? BTW, Konrad, for your visualization in MayaVi, do you get decent PDF/EPS output when you turn on PolyDataNormals in the IsoSurface module? You might want to check that. Anyway, Konrad, I think its worth sending them Christophe's test.c as well. You will want to mention that all this works fine under Win32 and Linux. cheers, prabhu From hinsen at cnrs-orleans.fr Mon Feb 23 14:27:29 2004 From: hinsen at cnrs-orleans.fr (Konrad Hinsen) Date: Mon, 23 Feb 2004 14:27:29 +0100 Subject: [gl2ps] Re: Wierd problem with gl2ps under Mac OS X In-Reply-To: <16440.23210.398435.591222@monster.linux.in> References: <16440.8802.761428.385660@monster.linux.in> <4038549D.1020607@acm.caltech.edu> <16440.23210.398435.591222@monster.linux.in> Message-ID: <200402231427.29131.hinsen@cnrs-orleans.fr> On Sunday 22 February 2004 08:30, Prabhu Ramachandran wrote: > How does one submit this bug report to Apple? Do you have specific They have a bug management system at http://developer.apple.com/bugreporter/ I can file a report there (I am already a member of the "Apple Developer Connection"), but I am rather ignorant about the nature of the bug. I can't offer any simple demonstration either. If I were Apple, I wouldn't be delighted in having install VTK in order to verify the problem. Is it possible to demonstrate the bug with a plain C program? Konrad. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hinsen at cnrs-orleans.fr Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais ------------------------------------------------------------------------------- From hinsen at cnrs-orleans.fr Mon Feb 23 21:29:43 2004 From: hinsen at cnrs-orleans.fr (Konrad Hinsen) Date: Mon, 23 Feb 2004 21:29:43 +0100 Subject: [gl2ps] Re: Wierd problem with gl2ps under Mac OS X In-Reply-To: <16442.16340.516371.662642@monster.linux.in> References: <16440.8802.761428.385660@monster.linux.in> <4038549D.1020607@acm.caltech.edu> <16440.23210.398435.591222@monster.linux.in> <200402231427.29131.hinsen@cnrs-orleans.fr> <16442.16340.516371.662642@monster.linux.in> Message-ID: <03757174-663F-11D8-92E2-000A95AB5F10@cnrs-orleans.fr> On 23.02.2004, at 19:00, Prabhu Ramachandran wrote: > Yes, I think it should be. Just download this: > > http://www.geuz.org/gl2ps/src/gl2ps-1.1.2.tar.gz Thanks! I tried this under Linux (nice output) and then with MacOS: terrible, not only the shading is missing, but the torus comes out red! One EPS file is attached as a demonstration. -------------- next part -------------- A non-text attachment was scrubbed... Name: outSimple.eps Type: application/postscript Size: 96414 bytes Desc: not available URL: -------------- next part -------------- > you'll see no shading for the torus (or teapot). If that is the case, > I think you can tell the developers this and tell them that their > OpenGL implementations is broken. Specifically its broken when > glRenderMode is set to GL_FEEDBACK and no shading information appears > to make it into the feedback buffer. Christophe, please correct me if > I'm wrong. > OK, I will file a bug report with this information. Konrad. From hinsen at cnrs-orleans.fr Mon Feb 23 21:35:40 2004 From: hinsen at cnrs-orleans.fr (Konrad Hinsen) Date: Mon, 23 Feb 2004 21:35:40 +0100 Subject: [gl2ps] Re: Wierd problem with gl2ps under Mac OS X In-Reply-To: <403A6147.6030808@acm.caltech.edu> References: <16440.8802.761428.385660@monster.linux.in> <4038549D.1020607@acm.caltech.edu> <16440.23210.398435.591222@monster.linux.in> <200402231427.29131.hinsen@cnrs-orleans.fr> <16442.16340.516371.662642@monster.linux.in> <403A6147.6030808@acm.caltech.edu> Message-ID: On 23.02.2004, at 21:23, Christophe Geuzaine wrote: > Guys - I spent 5 minutes re-testing on my Mac with a very simple > example > (see attached file), and the bug seems to be a little more subtle : > > - when I draw the torus, it doesn't work. > > - but when I draw the teapot, it seems to work just fine !?!? > > Can you reproduce this? Yes, same observations. Konrad. From thenry at ahydro.com Thu Apr 29 17:19:04 2004 From: thenry at ahydro.com (Tammy Henry) Date: Thu, 29 Apr 2004 11:19:04 -0400 Subject: [gl2ps] GL2PS link to Fortran development environment Message-ID: <4090E4A8.4924.B42A41@localhost> I have downloaded gl2ps and compiled an object code successfully, but encountered linker errors complaining of unresolved externals for each Fortran call to the gl2ps C subroutines. Though well versed in Fortran/UNIX, I need help in getting hardcopy capability from our new Fortran/opengl programs on HP Itanium 2 with MS XP64 OS. I thought it would be sufficient to simply link the gl2ps object code, but apparently a Fortran binding or wrapper may be needed. Can you help direct me to the right people to enable us to produce postscript plots of our screen graphics? Thank you, John Degnan Vice President, Engineering American Hydro Corporation Phone: (717) 755-5300 Email: jdegnan at ahydro.com From franz.reiter at cadcam.co.at Tue May 4 14:15:51 2004 From: franz.reiter at cadcam.co.at (Franz Reiter) Date: Tue, 4 May 2004 14:15:51 +0200 Subject: [gl2ps] Plot-application for gCAD3D Message-ID: <200405041415.51557.franz.reiter@cadcam.co.at> Hallo your software gl2ps is very impressive. I am working on a similar problem and so i would like to ask you about the following OpenGL-problem: I want to produce a plot of an OpenGL-3D-Object. The plot shall consist only of 2D-Lines of the visible edges of the OpenGL-object (all hidden lines removed). No colours and textures are wanted (this shall also be a tool for 3D to 2D drawing-conversion). The OpenGL-3D-Object consists of GL_LINES, GL_LINE_STRIP, GL_POLYGON; (rendered triangles). What i have done till now: i can produce a OpenGl-Image with hidden lines removed; OK (i do this by using glStencilFunc - like demoprog hiddenline.c) afterwards i read the result with GL_FEEDBACK; but the feedback-buffer always provides all lines (even the hidden lines). MY PROBLEM: how can i get only the visible lines ? This function would be very useful for gCAD3D; a Freeware - CAD-program; http://www.cadcam.co.at/freiter/gCAD3D.htm Thank you for your time and for any information greetings from Vienna Franz Reiter. From geuzaine at acm.caltech.edu Tue May 4 23:40:18 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Tue, 04 May 2004 14:40:18 -0700 Subject: [gl2ps] Re: Plot-application for gCAD3D In-Reply-To: <200405041415.51557.franz.reiter@cadcam.co.at> References: <200405041415.51557.franz.reiter@cadcam.co.at> Message-ID: <40980DC2.2070902@acm.caltech.edu> Franz Reiter wrote: > Hallo > > your software gl2ps is very impressive. I am working on a similar problem > and so i would like to ask you about the following OpenGL-problem: > > I want to produce a plot of an OpenGL-3D-Object. > The plot shall consist only of 2D-Lines of the visible edges of > the OpenGL-object (all hidden lines removed). > No colours and textures are wanted (this shall also be a tool for > 3D to 2D drawing-conversion). > > The OpenGL-3D-Object consists of GL_LINES, GL_LINE_STRIP, GL_POLYGON; > (rendered triangles). > > What i have done till now: > i can produce a OpenGl-Image with hidden lines removed; OK > (i do this by using glStencilFunc - like demoprog hiddenline.c) > afterwards i read the result with GL_FEEDBACK; but the feedback-buffer > always provides all lines (even the hidden lines). > MY PROBLEM: how can i get only the visible lines ? > This is hard: IIRC, the stencil stuff is applied after the creation of the feedback buffer in the OpenGL pipeline (like the z-buffer sorting, it's a per-pixel operation)... I guess you could - use the feedback buffer with both the lines and the polygons - remove the occluded primitives using e.g. a 2D BSP tree - only output the lines that remain after occlusion culling This nevertheless requires that you perform all the necessary subdivisions in the 2D tree--something we don't do at the moment in gl2ps since we keep the non-occluded polygons anyway... Best, Christophe -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From geuzaine at acm.caltech.edu Wed May 5 00:14:43 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Tue, 04 May 2004 15:14:43 -0700 Subject: [gl2ps] GL2PS link to Fortran development environment In-Reply-To: <4090E4A8.4924.B42A41@localhost> References: <4090E4A8.4924.B42A41@localhost> Message-ID: <409815D3.5080505@acm.caltech.edu> Tammy Henry wrote: > I have downloaded gl2ps and compiled an object code > successfully, but encountered linker errors complaining of > unresolved externals for each Fortran call to the gl2ps C > subroutines. Though well versed in Fortran/UNIX, I need help in > getting hardcopy capability from our new Fortran/opengl programs > on HP Itanium 2 with MS XP64 OS. I thought it would be sufficient > to simply link the gl2ps object code, but apparently a Fortran > binding or wrapper may be needed. This depends on your particular compiler, but you will probably have to define a couple of wrappers for all the GL2PS routines that you want to call from your Fortran code (adding trailing underscores and passing all the arguments by reference, etc.). Note that this is completely independent of GL2PS. If you can make it work with a simple C example, it will also work with GL2PS. Best, Christophe -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From geuzaine at acm.caltech.edu Fri May 14 04:57:25 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Thu, 13 May 2004 19:57:25 -0700 Subject: [gl2ps] New GL2PS release: 1.2.0 Message-ID: <40A43595.7040705@acm.caltech.edu> I've just released GL2PS 1.2.0---and I am happy to announce that Micha has been at it again: GL2PS now has (experimental...) transparency support for PDF output! Other changes include corrections to handle empty feedback buffers with non-empty primitive lists and a rather large code cleanup to reduce the global namespace pollution. Docs, downloads, mailing list, etc.: http://www.geuz.org/gl2ps/ Enjoy! Christophe -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From vassault at ensinfo.univ-nantes.fr Wed May 26 11:27:28 2004 From: vassault at ensinfo.univ-nantes.fr (VASSAULT ALBAN JEAN JACQUES) Date: Wed, 26 May 2004 11:27:28 +0200 Subject: [gl2ps] more than one picture ? Message-ID: <40B46300.7020000@ensinfo.univ-nantes.fr> Hello, By advance i apologized for my english that could not be perfect. I am a french student, and I tried to save images from a moving scene in opengl, in a pdf or ps output format. But after some tries i could only save the first image, how can i do to save more than one image ? and to save each image in a different page of the pdf or ps document ? Thanks a lot, Alban From geuzaine at acm.caltech.edu Thu May 27 08:27:22 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Wed, 26 May 2004 23:27:22 -0700 Subject: [gl2ps] more than one picture ? In-Reply-To: <40B46300.7020000@ensinfo.univ-nantes.fr> References: <40B46300.7020000@ensinfo.univ-nantes.fr> Message-ID: <40B58A4A.4040400@acm.caltech.edu> VASSAULT ALBAN JEAN JACQUES wrote: > > I am a french student, and I tried to save images from a moving scene in > opengl, in a pdf or ps output format. But after some tries i could only > save the first image, how can i do to save more than one image ? You have to call gl2psBeginPage/gl2psEndPage for each frame. > and to save each image in a different page of the pdf or ps document ? > That's not supported: you have to output your images in several files, and combine them afterwards. Cheers, Christophe -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From mmarshall at geodigmcorp.com Thu Jul 8 19:46:08 2004 From: mmarshall at geodigmcorp.com (Mike Marshall) Date: Thu, 8 Jul 2004 12:46:08 -0500 Subject: [gl2ps] GL2PS Licensing Clarification Message-ID: <025EFD36AA57BA41A3923491431EBC6C3FBD6F@gcesvr1.hq.geodigmcorp.com> Hello, I work for a company, GeoDigm, about to release software to our users (dental professionals) that uses a compiled DLL version of the GL2PS library. After wading through the GNU and GL2PS licensing documents, I'm still unclear as to what we need to include in our software and documentation to be compliant. We do not currently charge our users for our software. We have not modified the GL2PS library in any way and our users are not software developers. Does a copyright notice in our GUI suffice? If so, how should it appear? Do we need to distribute GL2PS source code given our circumstances? Thanks for your guidance. Mike Marshall VP Engineering GeoDigm Corp. -------------- next part -------------- An HTML attachment was scrubbed... URL: From geuzaine at acm.caltech.edu Fri Jul 9 08:29:16 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Thu, 08 Jul 2004 23:29:16 -0700 Subject: [gl2ps] GL2PS Licensing Clarification In-Reply-To: <025EFD36AA57BA41A3923491431EBC6C3FBD6F@gcesvr1.hq.geodigmcorp.com> References: <025EFD36AA57BA41A3923491431EBC6C3FBD6F@gcesvr1.hq.geodigmcorp.com> Message-ID: <40EE3B3C.5010008@acm.caltech.edu> Mike Marshall wrote: > Hello, > > > > I work for a company, GeoDigm, about to release software to our users > (dental professionals) that uses a compiled DLL version of the GL2PS > library. After wading through the GNU and GL2PS licensing documents, > I?m still unclear as to what we need to include in our software and > documentation to be compliant. > > > > We do not currently charge our users for our software. We have not > modified the GL2PS library in any way and our users are not software > developers. Does a copyright notice in our GUI suffice? If so, how > should it appear? Do we need to distribute GL2PS source code given our > circumstances? > Dear Mike - You can choose either the standard GNU LGPL or the (less restrictive) GL2PS license: - if you choose the GNU LGPL, you have to make the source code of GL2PS available according to section 4 of that license; - but since you don't plan to distribute a *modified* version of the library, it might be more convenient for you to use the GL2PS license, which basically allows you to do whatever you want with GL2PS (you don't have to distribute the sources, and you could even link it statically into your code). In addition to the copyright notice in your GUI, you have to include the copyright notice and the permission notice in your documentation. This is basically so that your users know where the GL2PS code came from, and that they have the right to use it themselves under the same conditions. Best, Christophe -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From shaiay at yahoo.com Sat Jul 10 20:46:40 2004 From: shaiay at yahoo.com (Shai Ayal) Date: Sat, 10 Jul 2004 21:46:40 +0300 Subject: [gl2ps] text alignment for ps/pdf Message-ID: <40F03990.4060908@yahoo.com> Hi all first, thank you for this very impressive library. I use it in OctPlot, a handle graphics add-on for the Octave language. you can find more about it on http://sourceforge.net/projects/octplot/ Since octplot uses OpenGL to draw, gl2ps has been just the library to output quality ps graphics which I think are essential to any serious plotting package. The only missing feature for me is text alignment for ps/pdf output, like what is available in LaTeX output. Since I know absolutely nothing about ps, It would take me ages to add this feature. Can someone give it a try ? A good place to start would be the gnuplot postscript terminal code, also available on sourceforge. The problem is that that code is not GPL'd. The do have ps macros for left, right and center alignment. Thank you in advance for any time you choose to spend on this Shai Ayal From krischnamurti at users.sourceforge.net Sat Jul 10 22:37:01 2004 From: krischnamurti at users.sourceforge.net (Micha Bieber) Date: Sat, 10 Jul 2004 22:37:01 +0200 Subject: [gl2ps] text alignment for ps/pdf In-Reply-To: <40F03990.4060908@yahoo.com> References: <40F03990.4060908@yahoo.com> Message-ID: <679448825.20040710223701@traits.de> Look for gl2psTextOpt and GL2PS_TEXT_C etc. in the gl2ps header. It's undocumented and not part of the official API. It might be still from some help for you. If you look for an example - my project at http://qwtplot3d.sf.net exploits the function. Micha -- From geuzaine at acm.caltech.edu Sat Jul 10 23:35:06 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Sat, 10 Jul 2004 14:35:06 -0700 Subject: [gl2ps] text alignment for ps/pdf In-Reply-To: <679448825.20040710223701@traits.de> References: <40F03990.4060908@yahoo.com> <679448825.20040710223701@traits.de> Message-ID: <40F0610A.60401@acm.caltech.edu> Micha Bieber wrote: > Look for gl2psTextOpt and GL2PS_TEXT_C etc. in the gl2ps header. It's > undocumented and not part of the official API. It might be still from > some help for you. If you look for an example - my project at > http://qwtplot3d.sf.net exploits the function. > Actually, as Shai pointed out, gl2psTextOpt() currently only affects the alignment for LaTeX output. The good news is that I already have the code to do the alignment stuff in PostScript as well in my development version. Does anyone know how to do the same stuff in PDF? In PostScript I use either the "stringwidth" function for TEXT_BL and TEXT_BC, or the less efficient "charpath flattenpath pathbbox" sequence for TEXT_C, TEXT_CL, TEXT_CR, TEXT_T, TEXT_TL, TEXT_TR. Best, Christophe PS: Micha - do you use/need the color argument in gl2psTextOpt()? Why not simply set the color the usual way using OpenGL? (If we decide to make gl2psTextOpt() public, I would prefer to remove it...) -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From krischnamurti at users.sourceforge.net Sun Jul 11 00:35:20 2004 From: krischnamurti at users.sourceforge.net (Micha Bieber) Date: Sun, 11 Jul 2004 00:35:20 +0200 Subject: [gl2ps] text alignment for ps/pdf In-Reply-To: <40F0610A.60401@acm.caltech.edu> References: <40F03990.4060908@yahoo.com> <679448825.20040710223701@traits.de> <40F0610A.60401@acm.caltech.edu> Message-ID: <1198227640.20040711003520@traits.de> Saturday, July 10, 2004, 23:35:06, Christophe Geuzaine wrote: > Actually, as Shai pointed out, gl2psTextOpt() currently only affects the > alignment for LaTeX output. Sorry, I was too quick in answering, I had to do a bit socializing /dancing :-) Ok. > in PostScript as well in my development version. Does anyone know how to > do the same stuff in PDF? The problem is, you have to utilize the font metric to get the width information for strings in PDF. So anything besides left-aligned is non-trivial. But it is hope in the long run. I have to deal at this moment with fonts in PDF. It might be, that I can reuse some code in the future in gl2ps. > PS: Micha - do you use/need the color argument in gl2psTextOpt()? Why > not simply set the color the usual way using OpenGL? (If we decide to > make gl2psTextOpt() public, I would prefer to remove it...) I don't see any serious problem here. Yes, we could remove it. Good night from Europe |-) Micha -- From geuzaine at acm.caltech.edu Mon Jul 12 00:34:26 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Sun, 11 Jul 2004 15:34:26 -0700 Subject: [gl2ps] text alignment for ps/pdf In-Reply-To: <1198227640.20040711003520@traits.de> References: <40F03990.4060908@yahoo.com> <679448825.20040710223701@traits.de> <40F0610A.60401@acm.caltech.edu> <1198227640.20040711003520@traits.de> Message-ID: <40F1C072.4000705@acm.caltech.edu> Micha Bieber wrote: > >>in PostScript as well in my development version. Does anyone know how to >>do the same stuff in PDF? > > > The problem is, you have to utilize the font metric to get the width > information for strings in PDF. So anything besides left-aligned is > non-trivial. But it is hope in the long run. I have to deal at this > moment with fonts in PDF. It might be, that I can reuse some code in the > future in gl2ps. > Great! PDF *is* complicated :-( > >>PS: Micha - do you use/need the color argument in gl2psTextOpt()? Why >>not simply set the color the usual way using OpenGL? (If we decide to >>make gl2psTextOpt() public, I would prefer to remove it...) > > > I don't see any serious problem here. Yes, we could remove it. > OK, I replaced it with "angle" (for a simple rotation of the text string). I've uploaded a beta of version 1.2.1 with all these changes (+ support for imagemaps in PostScript) on http://geuz.org/gl2ps/src/. Best, C. -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From antoine.rouhan at wanadoo.fr Mon Jul 12 14:03:47 2004 From: antoine.rouhan at wanadoo.fr (Antoine ROUHAN) Date: Mon, 12 Jul 2004 14:03:47 +0200 (CEST) Subject: [gl2ps] pb fonctions+ pb transparency Message-ID: <14922869.1089633827138.JavaMail.www@wwinf1003> Salut, jj'?cris en fran?ais, cela m'est plus facile !je viens de teste la derni?re version de gl2ps: marche pas ! en fait, la fonction gl2psBeginPage a chang? (en particulier le "NULL" en dernier param?tre s'est transform? en "file"... ce n'est pas corrig? dans l'exemple d'utilisation que tu donnes dans le manuel. arp?s modifiaction des param?tres envoy?s ? la fonction, bien s?r ?a marche comme avat. ?galement, j'ai pas r?ussi ? faire fonctionner la transparence, m?me avec ton exemple. Pourquoi, je ne sais pas, le fichier PDF reste sans transparence, avec ton exemple et avec mes applis. au fait, pourquoi ?a marche qu'en PDF et pas en postscript ??? En tout j'appr?cie beaucoup ton code et donc tu as tous mes encouragements !!! @+ Antoine From geuzaine at acm.caltech.edu Tue Jul 13 18:10:01 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Tue, 13 Jul 2004 09:10:01 -0700 Subject: [gl2ps] pb fonctions+ pb transparency In-Reply-To: <14922869.1089633827138.JavaMail.www@wwinf1003> References: <14922869.1089633827138.JavaMail.www@wwinf1003> Message-ID: <40F40959.2050903@acm.caltech.edu> Antoine ROUHAN wrote: > Salut, jj'?cris en fran?ais, cela m'est plus facile !je viens de > teste la derni?re version de gl2ps: marche pas ! en fait, la fonction > gl2psBeginPage a chang? (en particulier le "NULL" en dernier > param?tre s'est transform? en "file"... ce n'est pas corrig? dans > l'exemple d'utilisation que tu donnes dans le manuel. arp?s > modifiaction des param?tres envoy?s ? la fonction, bien s?r ?a marche > comme avat. OK. The last argument has actually always been "filename", but I forgot to add a NULL check in 1.2.0. This will be fixed in 1.2.1 (you can get a beta from http://geuz.org/gl2ps/src/). > ?galement, j'ai pas r?ussi ? faire fonctionner la > transparence, m?me avec ton exemple. Pourquoi, je ne sais pas, le > fichier PDF reste sans transparence, avec ton exemple et avec mes > applis. Very few PDF readers currently have a correct blending implementation (Adobe's Acrobat might be the only one--Apple's Preview or xpdf don't have it, and ghostscript's implementation is spotty at best). > au fait, pourquoi ?a marche qu'en PDF et pas en postscript > ??? Because PostScript does not support blending. > En tout j'appr?cie beaucoup ton code et donc tu as tous mes > encouragements !!! @+ > Merci ! Christophe -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From shaiay at yahoo.com Wed Jul 14 19:13:55 2004 From: shaiay at yahoo.com (Shai Ayal) Date: Wed, 14 Jul 2004 20:13:55 +0300 Subject: [gl2ps] Font Changes Message-ID: <40F569D3.2070906@yahoo.com> Hi first, thank you for the alignment code. Now OctPlot's hardcopy is in-par with it's screen output (not very nice, but it works :) ). My future plans are to implement TeX like support. This means the I will have to change font/size in the middle of a string. Do you have any ideas on how this could be implemented in gl2ps? I understand that currently gl2ps has no knowledge of the font metrics, all is done by the ps/pdf/tex parser. Can you think of any way to implement this (i.e. gl2psText returning the new raster position?). The easiest way I can think of (easy for gl3ps) is add a gl2psRawPS(char*) function which will allow you to emit raw postscript at the current raster position. This approach has a major drawback: It will break the abstraction of gl2ps in respect to which back-end is used. I am eager to hear your thoughts on this Shai From geuzaine at acm.caltech.edu Fri Jul 16 01:35:33 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Thu, 15 Jul 2004 16:35:33 -0700 Subject: [gl2ps] Font Changes In-Reply-To: <40F569D3.2070906@yahoo.com> References: <40F569D3.2070906@yahoo.com> Message-ID: <40F714C5.6070100@acm.caltech.edu> Shai Ayal wrote: > Hi > > first, thank you for the alignment code. Now OctPlot's hardcopy is > in-par with it's screen output (not very nice, but it works :) ). > > My future plans are to implement TeX like support. This means the I will > have to change font/size in the middle of a string. Do you have any > ideas on how this could be implemented in gl2ps? I understand that > currently gl2ps has no knowledge of the font metrics, all is done by the > ps/pdf/tex parser. Can you think of any way to implement this (i.e. > gl2psText returning the new raster position?). > > The easiest way I can think of (easy for gl3ps) is add a > gl2psRawPS(char*) function which will allow you to emit raw postscript > at the current raster position. This approach has a major drawback: It > will break the abstraction of gl2ps in respect to which back-end is used. > > I am eager to hear your thoughts on this > It's a complicated issue... The main question is: do we only want to reproduce what's on screen, or do we want to have additional features in the printed output? In the first case, I like the approach followed by the folks that develop FLTK (http://www.fltk.org). They have routines that compute the font metrics on all platforms (X11, Win32 and Carbon) and you can use that to position the text accurately in the OpenGL window. All gl2ps has to do is use a font that is "close enough", and you're all set--you don't even need the new "align" flags... (I use this approach in my code: http://geuz.org/gmsh/.) In the second case, you are right: there is no easy way to abstract the text handling anymore (unless we parse some higher level markup language!), and we need some mechanism to let users manipulate the underlying output stream directly. This is in fact what we already do for LaTeX output, and what a gl2psRawPS(char*) function would do for PostScript. Not sure if we need a new interface for this, though: we could for example just use a special font name ("RawPostScript"?) in gl2psText()... Best, Christophe -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From geuzaine at acm.caltech.edu Fri Jul 16 16:56:26 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Fri, 16 Jul 2004 07:56:26 -0700 Subject: [gl2ps] Font Changes In-Reply-To: <40F7A96B.4080503@yahoo.com> References: <40F569D3.2070906@yahoo.com> <40F714C5.6070100@acm.caltech.edu> <40F7A96B.4080503@yahoo.com> Message-ID: <40F7EC9A.3060205@acm.caltech.edu> Shai Ayal wrote: > I too use fltk. Can you ngive me some hints on the "close enough font" > you use ?, or Can you just point me ot the relevant code in gmsh ? > Sure: I use the following correspondance table between PostScript font names and FLTK fonts (in gmsh/Fltk/GUI.cpp): Fl_Menu_Item menu_font_names[] = { {"Times-Roman", 0, 0, (void*)FL_TIMES}, {"Times-Bold", 0, 0, (void*)FL_TIMES_BOLD}, {"Times-Italic", 0, 0, (void*)FL_TIMES_ITALIC}, {"Times-BoldItalic", 0, 0, (void*)FL_TIMES_BOLD_ITALIC}, {"Helvetica", 0, 0, (void*)FL_HELVETICA}, {"Helvetica-Bold", 0, 0, (void*)FL_HELVETICA_BOLD}, {"Helvetica-Oblique", 0, 0, (void*)FL_HELVETICA_ITALIC}, {"Helvetica-BoldOblique", 0, 0, (void*)FL_HELVETICA_BOLD_ITALIC}, {"Courier", 0, 0, (void*)FL_COURIER}, {"Courier-Bold", 0, 0, (void*)FL_COURIER_BOLD}, {"Courier-Oblique", 0, 0, (void*)FL_COURIER_ITALIC}, {"Courier-BoldOblique", 0, 0, (void*)FL_COURIER_BOLD_ITALIC}, {"Symbol", 0, 0, (void*)FL_SYMBOL}, {"ZapfDingbats", 0, 0, (void*)FL_ZAPF_DINGBATS}, {0} }; and use the following routine to draw text (in Fltk/Opengl.cpp; CTX.gl_font_enum contains the FLTK font and CTX.gl_font the PostScript font name): void Draw_String(char *s) { if(CTX.print.gl_fonts) { gl_font(CTX.gl_font_enum, CTX.gl_fontsize); gl_draw(s); } else { if(CTX.print.format == FORMAT_JPEGTEX || CTX.print.format == FORMAT_PNGTEX) return; gl2psText(s, CTX.gl_font, CTX.gl_fontsize); } } To compute the width of a string in order to position it, I then just gl_width(string). Hope this helps, C. > Shai > > Christophe Geuzaine wrote: > >> Shai Ayal wrote: >> >>> Hi >>> >>> first, thank you for the alignment code. Now OctPlot's hardcopy is >>> in-par with it's screen output (not very nice, but it works :) ). >>> >>> My future plans are to implement TeX like support. This means the I >>> will have to change font/size in the middle of a string. Do you have >>> any ideas on how this could be implemented in gl2ps? I understand >>> that currently gl2ps has no knowledge of the font metrics, all is >>> done by the ps/pdf/tex parser. Can you think of any way to implement >>> this (i.e. gl2psText returning the new raster position?). >>> >>> The easiest way I can think of (easy for gl3ps) is add a >>> gl2psRawPS(char*) function which will allow you to emit raw >>> postscript at the current raster position. This approach has a major >>> drawback: It will break the abstraction of gl2ps in respect to which >>> back-end is used. >>> >>> I am eager to hear your thoughts on this >>> >> >> It's a complicated issue... The main question is: do we only want to >> reproduce what's on screen, or do we want to have additional features >> in the printed output? >> >> In the first case, I like the approach followed by the folks that >> develop FLTK (http://www.fltk.org). They have routines that compute >> the font metrics on all platforms (X11, Win32 and Carbon) and you can >> use that to position the text accurately in the OpenGL window. All >> gl2ps has to do is use a font that is "close enough", and you're all >> set--you don't even need the new "align" flags... (I use this approach >> in my code: http://geuz.org/gmsh/.) >> >> In the second case, you are right: there is no easy way to abstract >> the text handling anymore (unless we parse some higher level markup >> language!), and we need some mechanism to let users manipulate the >> underlying output stream directly. This is in fact what we already do >> for LaTeX output, and what a gl2psRawPS(char*) function would do for >> PostScript. Not sure if we need a new interface for this, though: we >> could for example just use a special font name ("RawPostScript"?) in >> gl2psText()... >> >> Best, >> >> Christophe >> > -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From shaiay at yahoo.com Thu Jul 29 21:36:08 2004 From: shaiay at yahoo.com (Shai Ayal) Date: Thu, 29 Jul 2004 22:36:08 +0300 Subject: [gl2ps] glScissors Message-ID: <410951A8.6020908@yahoo.com> Hi again I am using glScissors in my code and it seems that gl2ps does not support it. There is some reference to glScissors in the gl2ps web page in relation to the glViewport command, although reading their respective manpages does not offer any clue as to the relations -- can I use glViewport to preform clipping as does glScissors? Does gl2ps support this? and how do I use it? If not, can you suggest a workaround? In my code today, on the screen the graphics look as I want them (clipped by glScissors) while in the eps output no clipping is done. Shai Ayal From geuzaine at acm.caltech.edu Fri Jul 30 08:19:18 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Fri, 30 Jul 2004 08:19:18 +0200 Subject: [gl2ps] glScissors In-Reply-To: <410951A8.6020908@yahoo.com> References: <410951A8.6020908@yahoo.com> Message-ID: <4109E866.5@acm.caltech.edu> Shai Ayal wrote: > Hi again > > I am using glScissors in my code and it seems that gl2ps does not > support it. There is some reference to glScissors in the gl2ps web page > in relation to the glViewport command, although reading their respective > manpages does not offer any clue as to the relations -- can I use > glViewport to preform clipping as does glScissors? Does gl2ps support > this? and how do I use it? If not, can you suggest a workaround? > Yes, have a look at gl2psTest.c to see how to use gl2psBeginViewport() and gl2psEndViewport(). PS: use the attached version--the one distributed in the official package is buggy. Best, Christophe -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: gl2psTest.c URL: From shaiay at yahoo.com Thu Aug 12 20:20:17 2004 From: shaiay at yahoo.com (Shai Ayal) Date: Thu, 12 Aug 2004 21:20:17 +0300 Subject: [gl2ps] text display problem Message-ID: <411BB4E1.4050407@yahoo.com> Hi all, looking at a ps file produced by gl2ps (version 1.2.1) I noticed that the structure of the file is: prolog, text , other stuff ... This structure causes a problem: Text can be obscured by polygons etc... I am not sure that this can be called a bug since the placement of text above all other "entities" is not promised anywhere. However it seems reasonable to me that text will be on top of all other things. In the OpenGL window on screen the text does show up on top of everything. Shai From shaiay at yahoo.com Thu Aug 12 20:52:17 2004 From: shaiay at yahoo.com (Shai Ayal) Date: Thu, 12 Aug 2004 21:52:17 +0300 Subject: [gl2ps] rotated text in ps Message-ID: <411BBC61.5020606@yahoo.com> Hi At last, after so many help requests, I have a small contribution -- rotated text in ps output. Actually, I just figured out the ps code, not the changes needed in gl2ps to implement it. just replace the /S macro with /SR { gsave FC translate 0 0 moveto rotate show grestore } BD which now shows rotated text: (rotated) -45 100 25 10 /Helvetica SR All the other "/S??" macros need to be altered accordingly. Tell if you like the idea. Shai From geuzaine at acm.caltech.edu Fri Aug 20 00:10:00 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Thu, 19 Aug 2004 15:10:00 -0700 Subject: [gl2ps] text display problem In-Reply-To: <411BB4E1.4050407@yahoo.com> References: <411BB4E1.4050407@yahoo.com> Message-ID: <41252538.2030006@acm.caltech.edu> Shai Ayal wrote: > Hi all, > > looking at a ps file produced by gl2ps (version 1.2.1) I noticed that > the structure of the file is: prolog, text , other stuff ... Actually, no. The text is simply sorted in the same way as all the other primitives (which is very useful when you want to reproduce 3D scenes with embedded text). If you want all the text strings to appear in front, just use an appropriate z-offset in the glRasterPos calls. Best, Christophe > > This structure causes a problem: Text can be obscured by polygons etc... > I am not sure that this can be called a bug since the placement of text > above all other "entities" is not promised anywhere. However it seems > reasonable to me that text will be on top of all other things. In the > OpenGL window on screen the text does show up on top of everything. > > Shai > _______________________________________________ > gl2ps mailing list > gl2ps at geuz.org > http://www.geuz.org/mailman/listinfo/gl2ps > -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From geuzaine at acm.caltech.edu Fri Aug 20 00:10:50 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Thu, 19 Aug 2004 15:10:50 -0700 Subject: [gl2ps] rotated text in ps In-Reply-To: <411BBC61.5020606@yahoo.com> References: <411BBC61.5020606@yahoo.com> Message-ID: <4125256A.3080107@acm.caltech.edu> Shai Ayal wrote: > Hi > > At last, after so many help requests, I have a small contribution -- > rotated text in ps output. Actually, I just figured out the ps code, not > the changes needed in gl2ps to implement it. just replace the /S macro with > > /SR { gsave FC translate 0 0 moveto rotate show grestore } BD > > which now shows rotated text: > > (rotated) -45 100 25 10 /Helvetica SR > > All the other "/S??" macros need to be altered accordingly. Tell if you > like the idea. > Yep, I'll try to incorporate this in a future release. Thanks! C. -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From dthompsn at vizsolutions.com Tue Aug 31 23:46:15 2004 From: dthompsn at vizsolutions.com (David Thompson) Date: Tue, 31 Aug 2004 15:46:15 -0600 Subject: [gl2ps] PDFs being produced not viewable from 1.2.1 Message-ID: Has anybody else noticed that 1.2.1 doesn't produce a viewable pdf? I can't get a single one to work. PS and EPS are fine. I've been using this on MacOS X and RH Linux. David -- ............................................................................. David L. Thompson Visualization and Imagery Solutions, Inc. mailto:dthompsn at vizsolutions.com 5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472 From geuzaine at acm.caltech.edu Tue Aug 31 23:55:07 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Tue, 31 Aug 2004 14:55:07 -0700 Subject: [gl2ps] PDFs being produced not viewable from 1.2.1 In-Reply-To: References: Message-ID: <4134F3BB.6000303@acm.caltech.edu> David Thompson wrote: > Has anybody else noticed that 1.2.1 doesn't produce a viewable pdf? I > can't get a single one to work. PS and EPS are fine. I've been using > this on MacOS X and RH Linux. > - Do you open your files in binary mode (fopen(file, "wb"))? - Is blending enabled in your OpenGL code? You might want to use the GL2PS_NO_BLENDING option to turn it off in gl2ps for now. Best, C. -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From geuzaine at acm.caltech.edu Wed Sep 1 00:24:41 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Tue, 31 Aug 2004 15:24:41 -0700 Subject: [Fwd: Re: [gl2ps] PDFs being produced not viewable from 1.2.1] Message-ID: <4134FAA9.5060102@acm.caltech.edu> An embedded message was scrubbed... From: David Thompson Subject: Re: [gl2ps] PDFs being produced not viewable from 1.2.1 Date: Tue, 31 Aug 2004 16:02:07 -0600 Size: 2769 URL: From dthompsn at vizsolutions.com Wed Sep 1 21:06:59 2004 From: dthompsn at vizsolutions.com (David Thompson) Date: Wed, 1 Sep 2004 13:06:59 -0600 Subject: [gl2ps] Re: PDF not same as rendered image Message-ID: Oops, I should have paid more attention to the archives. This is actually the bug with Mac OS X showing up. Sorry about that. Anybody have a bug id number for the bug with Apple? Have they said anything about it? David -- ............................................................................. David L. Thompson Visualization and Imagery Solutions, Inc. mailto:dthompsn at vizsolutions.com 5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472 From geuzaine at acm.caltech.edu Wed Sep 1 22:27:40 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Wed, 01 Sep 2004 13:27:40 -0700 Subject: [gl2ps] Re: PDF not same as rendered image In-Reply-To: References: Message-ID: <413630BC.9050306@acm.caltech.edu> David Thompson wrote: > Oops, I should have paid more attention to the archives. This is > actually the bug with Mac OS X showing up. Sorry about that. Anybody > have a bug id number for the bug with Apple? Have they said anything > about it? > It seems to have been fixed by one of the recent Panther updates (everything works fine here on 10.3.4 and 10.3.5). The bugs in Apple's PDF rendering code are still not fixed, though (for example, Preview.app doesn't support '/ShadingType 4', which means that you need to use Acrobat or ghostscript to view/print the files). C. -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From dthompsn at vizsolutions.com Wed Sep 1 23:13:45 2004 From: dthompsn at vizsolutions.com (David Thompson) Date: Wed, 1 Sep 2004 15:13:45 -0600 Subject: [gl2ps] Re: PDF not same as rendered image Message-ID: Really? I'm running 10.3.5 and see the problem; however, I am running XFree86 4.4 underneath instead of the standard install from Apple. I did this to try and fix another problem I was having. Maybe I'll go back as see if I can still reproduce it. As for Apple's PDF rendering code, thanks for that note. I was wondering why most of my PDFs wouldn't show up. I could see them in Acrobat but not in Preview and also couldn't print them. If I use Acrobat to export to PS for my printer and then distill them, then I can view and print them within the OS; however, now I see it just converts them to a jpeg image. Do you know of any other way to make them compatible? I tried using Acrobat's reduce file size (for Acrobat 4) but that didn't work either. Just as a side note, I also couldn't see them in Adobe Illustrator or create swfs with pdf2swf. Maybe they have the same limitations as the OS? David >David Thompson wrote: > >>Oops, I should have paid more attention to the archives. This is >>actually the bug with Mac OS X showing up. Sorry about that. >>Anybody have a bug id number for the bug with Apple? Have they said >>anything about it? >> > >It seems to have been fixed by one of the recent Panther updates >(everything works fine here on 10.3.4 and 10.3.5). > >The bugs in Apple's PDF rendering code are still not fixed, though >(for example, Preview.app doesn't support '/ShadingType 4', which means >that you need to use Acrobat or ghostscript to view/print the files). > >C. > >-- >Christophe Geuzaine >Applied and Computational Mathematics, Caltech >geuzaine at acm.caltech.edu - http://geuz.org -- ............................................................................. David L. Thompson Visualization and Imagery Solutions, Inc. mailto:dthompsn at vizsolutions.com 5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472 From dthompsn at vizsolutions.com Thu Sep 2 01:39:53 2004 From: dthompsn at vizsolutions.com (David Thompson) Date: Wed, 1 Sep 2004 17:39:53 -0600 Subject: [gl2ps] Re: PDF not same as rendered image Message-ID: I just tried re-installing Apple's X11 from scratch on 10.3.5 and still see the problem. From looking at the mailing list archives, this appears to be a problem more with the ATI cards (which I have an ATI 8500). If someone has the bug number, I'd like to see what the status is and add any pertinent info. David -- ............................................................................. David L. Thompson Visualization and Imagery Solutions, Inc. mailto:dthompsn at vizsolutions.com 5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472 From geuzaine at acm.caltech.edu Thu Sep 2 04:44:33 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Wed, 01 Sep 2004 19:44:33 -0700 Subject: [gl2ps] Re: PDF not same as rendered image In-Reply-To: References: Message-ID: <41368911.4010800@acm.caltech.edu> David Thompson wrote: > I just tried re-installing Apple's X11 from scratch on 10.3.5 and still > see the problem. From looking at the mailing list archives, this appears > to be a problem more with the ATI cards (which I have an ATI 8500). If > someone has the bug number, I'd like to see what the status is and add > any pertinent info. > Actually, I've never used gl2ps with X11 on OS X: I always build native apps using either Carbon or Cocoa... Does the gl2psTest demo work on your machine? (You can compile it with "gcc gl2psTest.c gl2ps.c -framework OpenGL -framework GLUT -framework Cocoa".) C. -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From dthompsn at vizsolutions.com Thu Sep 2 07:40:07 2004 From: dthompsn at vizsolutions.com (David Thompson) Date: Wed, 1 Sep 2004 23:40:07 -0600 Subject: [gl2ps] Re: PDF not same as rendered image In-Reply-To: <41368911.4010800@acm.caltech.edu> References: <41368911.4010800@acm.caltech.edu> Message-ID: When I run the demo on my machine, the torus in the outBsp versions show a similar problem to what I'm seeing (I see triangles with some different colors than others; not the smooth shading). So it appears that it is not fixed entirely. David >David Thompson wrote: > >>I just tried re-installing Apple's X11 from scratch on 10.3.5 and >>still see the problem. From looking at the mailing list archives, >>this appears to be a problem more with the ATI cards (which I have >>an ATI 8500). If someone has the bug number, I'd like to see what >>the status is and add any pertinent info. >> > >Actually, I've never used gl2ps with X11 on OS X: I always build >native apps using either Carbon or Cocoa... > >Does the gl2psTest demo work on your machine? (You can compile it >with "gcc gl2psTest.c gl2ps.c -framework OpenGL -framework GLUT >-framework Cocoa".) > >C. > >-- >Christophe Geuzaine >Applied and Computational Mathematics, Caltech >geuzaine at acm.caltech.edu - http://geuz.org -- ............................................................................. David L. Thompson Visualization and Imagery Solutions, Inc. mailto:dthompsn at vizsolutions.com 5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472 From dthompsn at vizsolutions.com Wed Sep 1 20:58:10 2004 From: dthompsn at vizsolutions.com (David Thompson) Date: Wed, 1 Sep 2004 12:58:10 -0600 Subject: [gl2ps] PDF not same as rendered image Message-ID: Here's another question for those working with gl2ps. I have an OpenGL object where render to the screen looks good, but the postscript output shows triangles of different color. I've included the example images. Any help would be much appreciated. This happens with both bsp and simple sorting. -- ............................................................................. David L. Thompson Visualization and Imagery Solutions, Inc. mailto:dthompsn at vizsolutions.com 5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472 -------------- next part -------------- A non-text attachment was scrubbed... Name: image.pdf Type: application/octet-stream Size: 58072 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.gif Type: image/gif Size: 7410 bytes Desc: not available URL: From geuzaine at acm.caltech.edu Thu Sep 2 08:53:13 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Wed, 01 Sep 2004 23:53:13 -0700 Subject: [gl2ps] Re: PDF not same as rendered image In-Reply-To: References: <41368911.4010800@acm.caltech.edu> Message-ID: <4136C359.3000603@acm.caltech.edu> David Thompson wrote: > When I run the demo on my machine, the torus in the outBsp versions show > a similar problem to what I'm seeing (I see triangles with some > different colors than others; not the smooth shading). So it appears > that it is not fixed entirely. OK. (Note that I don't know if the guy who volunteered to file a bug report with Apple actually did it.) Just FYI: everything works fine with Mac OS X Panther 10.3.5 on my 15" Powerbook (the old Titanium model, with the 64Mb ATI card), but I used to have similar problems with Jaguar and early releases of Panther (not sure which update fixed it, though). C. > > David > >> David Thompson wrote: >> >>> I just tried re-installing Apple's X11 from scratch on 10.3.5 and >>> still see the problem. From looking at the mailing list archives, >>> this appears to be a problem more with the ATI cards (which I have an >>> ATI 8500). If someone has the bug number, I'd like to see what the >>> status is and add any pertinent info. >>> >> >> Actually, I've never used gl2ps with X11 on OS X: I always build >> native apps using either Carbon or Cocoa... >> >> Does the gl2psTest demo work on your machine? (You can compile it with >> "gcc gl2psTest.c gl2ps.c -framework OpenGL -framework GLUT -framework >> Cocoa".) >> >> C. >> >> -- >> Christophe Geuzaine >> Applied and Computational Mathematics, Caltech >> geuzaine at acm.caltech.edu - http://geuz.org > > > -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From krischnamurti at users.sourceforge.net Thu Sep 2 09:48:06 2004 From: krischnamurti at users.sourceforge.net (Micha Bieber) Date: Thu, 2 Sep 2004 09:48:06 +0200 Subject: [gl2ps] PDF not same as rendered image In-Reply-To: References: Message-ID: <657130762.20040902094806@traits.de> Wednesday, September 1, 2004, 20:58:10, David Thompson wrote: > postscript output shows triangles of different color. Your attached example is PDF (looks like created native). Features the PS-equivalent the same errors ? Micha -- From geuzaine at acm.caltech.edu Thu Sep 2 21:39:54 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Thu, 02 Sep 2004 12:39:54 -0700 Subject: [gl2ps] PDF not same as rendered image In-Reply-To: <657130762.20040902094806@traits.de> References: <657130762.20040902094806@traits.de> Message-ID: <4137770A.4030504@acm.caltech.edu> Micha Bieber wrote: > Wednesday, September 1, 2004, 20:58:10, David Thompson wrote: > > >>postscript output shows triangles of different color. > > > Your attached example is PDF (looks like created native). Features the PS-equivalent the > same errors ? > Also, looking at your file, the problem seems different from the one we had on OS X in the past. Here it almost looks like you have superimposed triangles (of different colors) and that rounding errors (or whatever) make one or the other appear in front. C. -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From krischnamurti at users.sourceforge.net Thu Sep 2 22:02:11 2004 From: krischnamurti at users.sourceforge.net (Micha Bieber) Date: Thu, 2 Sep 2004 22:02:11 +0200 Subject: [gl2ps] PDF not same as rendered image In-Reply-To: <4137770A.4030504@acm.caltech.edu> References: <657130762.20040902094806@traits.de> <4137770A.4030504@acm.caltech.edu> Message-ID: <854180867.20040902220211@traits.de> Thursday, September 2, 2004, 21:39:54, Christophe Geuzaine wrote: To bring it together, David confirmed to me per email, that the error shows up in PostScript as well as in native produced PDF. I would guess, that it is a problem of the feedback mode or something erroneous in the generating code (more likely). It is also interesting, that the most distant polyeder owns more or less proper colors and for the object in front half of the triangles have also the characteristic of the relevant correct blue shades. Considering also the remaining polyeders, the errors peculiarities seemingly change with every new object. Micha -- From krischnamurti at users.sourceforge.net Thu Sep 2 22:21:26 2004 From: krischnamurti at users.sourceforge.net (Micha Bieber) Date: Thu, 2 Sep 2004 22:21:26 +0200 Subject: [gl2ps] BTW Message-ID: <1951104653.20040902222126@traits.de> ... we all - happened to me yesterday, to Christophe and David today - have been sent parts of our postings cross-over per email. A bit difficult to follow the track this way. And it's something a mailing list is really a solution for ... :-) Micha -- From dthompsn at vizsolutions.com Thu Sep 2 23:00:06 2004 From: dthompsn at vizsolutions.com (David Thompson) Date: Thu, 2 Sep 2004 15:00:06 -0600 Subject: [gl2ps] BTW In-Reply-To: <1951104653.20040902222126@traits.de> References: <1951104653.20040902222126@traits.de> Message-ID: Is there a way to get the Reply-To set up to be the list and not the sender? That would solve a lot of the problems for me. I will post a PDF rendered with the same software (same scene) on a linux box and maybe the comparison will help determine the problem. David At 10:21 PM +0200 9/2/04, Micha Bieber wrote: >... we all - happened to me yesterday, to Christophe and David today - >have been sent parts of our postings cross-over per email. A bit >difficult to follow the track this way. And it's something a mailing list >is really a solution for ... :-) > >Micha >-- > >_______________________________________________ >gl2ps mailing list >gl2ps at geuz.org >http://www.geuz.org/mailman/listinfo/gl2ps -- ............................................................................. David L. Thompson Visualization and Imagery Solutions, Inc. mailto:dthompsn at vizsolutions.com 5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472 From krischnamurti at users.sourceforge.net Thu Sep 2 23:28:49 2004 From: krischnamurti at users.sourceforge.net (Micha Bieber) Date: Thu, 2 Sep 2004 23:28:49 +0200 Subject: [gl2ps] BTW In-Reply-To: References: <1951104653.20040902222126@traits.de> Message-ID: <102860653.20040902232849@traits.de> Thursday, September 2, 2004, 23:00:06, David Thompson wrote: > Is there a way to get the Reply-To set up to be the list and not the > sender? That would solve a lot of the problems for me. It's possible in Mailman lists to override the senders Reply-To field, but not recommended (some sender depend on their special settings and it makes it also harder to send a private mail) > I will post a PDF rendered with the same software (same scene) on a > linux box and maybe the comparison will help determine the problem. Make it as simple as possible. Could you reduce the number of involved polygons ? For PDF, please turn compression off, it makes it a little bit easier for me to check the files. The most important point: Provide a code snippet if possible. It should contain the OpenGL initialization code and also the actual drawing. In any case that might not be enough. I recognized completely different streams of primitives appearing in the feedback buffer for the same code under Linux and Windows. This is one of the reasons for the requested simplicity. Micha -- From alessandro.pedretti at unimi.it Tue Sep 14 09:39:19 2004 From: alessandro.pedretti at unimi.it (Alessandro Pedretti) Date: Tue, 14 Sep 2004 09:39:19 +0200 Subject: [gl2ps] Charater set Message-ID: <001f01c49a2d$f249b8a0$834f959f@antares> Hi, I have a little problem to insert text labels from the OpenGL scene to the gl2ps rendered scene. The labels managed by my software have the ISO latin-1 encoding and PostScript and PDF format use the Adobe character set by default. Is it possible to "switch" from Adobe to ISO latin-1 character set ? I'm looking on the Web in order to find a conversion table between two encoding format, but nothing is present. Thank you very much for the attention. Alessandro Pedretti From krischnamurti at users.sourceforge.net Wed Sep 15 21:04:30 2004 From: krischnamurti at users.sourceforge.net (Micha Bieber) Date: Wed, 15 Sep 2004 21:04:30 +0200 Subject: [gl2ps] Charater set In-Reply-To: <001f01c49a2d$f249b8a0$834f959f@antares> References: <001f01c49a2d$f249b8a0$834f959f@antares> Message-ID: <1506669244.20040915210430@traits.de> I'm not sure whether it helps - the PDF part has only a standard implementation regarding codecs. In case you dont mind to touch the code: Look for: /Encoding /MacRomanEncoding in gl2ps.c Replace '/MacRomanEncoding' by '/WinAnsiEncoding' or remove the complete line mentioned above (these turns on PDF's standard encoding scheme). Recompile the source. All other encoding schemes are more complex and we had to think about an extension in the library. HIH, Micha -- From dthompsn at vizsolutions.com Wed Sep 15 22:00:28 2004 From: dthompsn at vizsolutions.com (David Thompson) Date: Wed, 15 Sep 2004 14:00:28 -0600 Subject: [gl2ps] PDF not same as rendered image In-Reply-To: <854180867.20040902220211@traits.de> References: <657130762.20040902094806@traits.de> <4137770A.4030504@acm.caltech.edu> <854180867.20040902220211@traits.de> Message-ID: Okay, sorry I haven't gotten back on this sooner--but I was trying to meet a deadline. I've now located at least a major issue as to why this was happening. What I had, for each ball located in the scene, there were actually anywhere from 4 - 20 coinciding balls the exact same size. So what was happening was that the triangle from one ball may have been at the front whereas in other areas other triangles were in front. In our software, our software renderer looks at the data structures and determines which one should always be in front based on a data value. When this data is passed to OpenGL, then the ViewMatrix is assessed and a half-pixel width is added to each object moving them toward the viewport keeping one in front of the other. However, with so many objects in the same space, this became almost unmanageable. OpenGL hardware still rendered it correctly but gl2ps didn't get the sorting correct with such small differences. Once I removed the coinciding balls, everything worked as expected. David At 10:02 PM +0200 9/2/04, Micha Bieber wrote: >Thursday, September 2, 2004, 21:39:54, Christophe Geuzaine wrote: > >To bring it together, David confirmed to me per email, that the error >shows up in PostScript as well as in native produced PDF. I would guess, >that it is a problem of the feedback mode or something erroneous in the >generating code (more likely). It is also interesting, that the most >distant polyeder owns more or less proper colors and for the object in >front half of the triangles have also the characteristic of the relevant >correct blue shades. Considering also the remaining polyeders, the >errors peculiarities seemingly change with every new object. > >Micha >-- > >_______________________________________________ >gl2ps mailing list >gl2ps at geuz.org >http://www.geuz.org/mailman/listinfo/gl2ps -- ............................................................................. David L. Thompson Visualization and Imagery Solutions, Inc. mailto:dthompsn at vizsolutions.com 5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472 From wenzel at tu-harburg.de Tue Nov 23 12:03:28 2004 From: wenzel at tu-harburg.de (Fabian Wenzel) Date: Tue, 23 Nov 2004 12:03:28 +0100 Subject: [gl2ps] Intra-quad lines when blending Message-ID: <41A31900.2030001@tu-harburg.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! I am using using gl2ps 1.2.1 and (apart from being happy most of the time) am experiencing some problems when blending. The resulting pdf is perfect except from a tiny hairline in a filled semitransparent GL_QUAD that looks like it is twice opaque as the rest. This hairline crosses the whole quad. The structure which is transparently occluded by the quad has some color artifacts (it seems to be partially non-occluded) near this intersecting hairline. Does anyone know how to deal with it? I could provide a 52k example file. Another hint which might be useful for other people: It has to be made sure that localization is turned off when using gl2ps via unsigned char *oldlocale = setlocale(LC_NUMERIC,"C"); /* ... gl2ps-drawing-stuff */ setlocale(LC_NUMERIC,oldlocale); I am using gl2ps in a wxWidgets-app that turns on localization by default. On my machine I ended up with corrupted output files before I figured out that they were caused by german localization as the decimal point is represented by a comma, so that the output streams were not the way acrobat and ghostscript wanted them to be. Thanks, Fabian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBoxkAbJzYO4mghQIRAlsDAKCwM6bVRSEzofrodz/tFJnZm/nmRgCfXXrJ nUJbgO7mQsAZVv6SnVFPRLg= =DHem -----END PGP SIGNATURE----- From lpe540 at yahoo.com Tue Nov 23 16:44:09 2004 From: lpe540 at yahoo.com (Joe Miller) Date: Tue, 23 Nov 2004 07:44:09 -0800 (PST) Subject: [gl2ps] Missing text on Solaris Message-ID: <20041123154409.19820.qmail@web50006.mail.yahoo.com> Hi, I'm having a problem printing text to a postscript file using gl2ps and I was wondering if anyone had any suggestions. I'm actually using VTK as my api. I use vtk to display a text string. I then print it to postscript. The postscipt file has the text string in it but its coordinate values are very off. I've looked into it a little bit and the values I'm seeing in the postscript are the values that are returned from glGetFloatv(GL_CURRENT_RASTER_POSITION, pos) call in the gl2psTextOpt function. I've run this on various linux boxes and the program works fine. I've also ssh'ed into a solaris machine from a linux box run the program remotely and things worked fine (conversly running remotely from Solaris to Linux produces the error). So I was wondering if there was something I'm not setting up right possibly with my x server. I'm running on Solaris 5.8 and I believe I'm using gl library version 1.2. Any suggestion would greatly be appreciated. If you need any more information please let me know. Thanks in advance -joe __________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com From geuzaine at acm.caltech.edu Thu Nov 25 04:45:16 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Wed, 24 Nov 2004 19:45:16 -0800 Subject: [gl2ps] Missing text on Solaris In-Reply-To: <20041123154409.19820.qmail@web50006.mail.yahoo.com> References: <20041123154409.19820.qmail@web50006.mail.yahoo.com> Message-ID: <41A5554C.70609@acm.caltech.edu> Joe Miller wrote: > Hi, > > I'm having a problem printing text to a postscript > file using gl2ps and I was wondering if anyone had any > suggestions. I'm actually using VTK as my api. I use > vtk to display a text string. I then print it to > postscript. The postscipt file has the text string in > it but its coordinate values are very off. I've looked > into it a little bit and the values I'm seeing in the > postscript are the values that are returned from > glGetFloatv(GL_CURRENT_RASTER_POSITION, pos) call in > the gl2psTextOpt function. I've run this on various > linux boxes and the program works fine. I've also > ssh'ed into a solaris machine from a linux box run the > program remotely and things worked fine (conversly > running remotely from Solaris to Linux produces the > error). So I was wondering if there was something I'm > not setting up right possibly with my x server. I'm > running on Solaris 5.8 and I believe I'm using gl > library version 1.2. Sounds like a bug in the X server... Does the gl2psTest example provided in the gl2ps distribution exhibit the same kind of behavior? Christophe > > Any suggestion would greatly be appreciated. If you > need any more information please let me know. > > Thanks in advance > > -joe > > > > __________________________________ > Do you Yahoo!? > The all-new My Yahoo! - Get yours free! > http://my.yahoo.com > > > _______________________________________________ > gl2ps mailing list > gl2ps at geuz.org > http://www.geuz.org/mailman/listinfo/gl2ps > -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From geuzaine at acm.caltech.edu Thu Nov 25 04:48:18 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Wed, 24 Nov 2004 19:48:18 -0800 Subject: [gl2ps] Intra-quad lines when blending In-Reply-To: <41A31900.2030001@tu-harburg.de> References: <41A31900.2030001@tu-harburg.de> Message-ID: <41A55602.4020905@acm.caltech.edu> Fabian Wenzel wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi! > > > I am using using gl2ps 1.2.1 and (apart from being happy most of the > time) am experiencing some problems when blending. The resulting pdf is > perfect except from a tiny hairline in a filled semitransparent GL_QUAD > that looks like it is twice opaque as the rest. This hairline crosses > the whole quad. The structure which is transparently occluded by the > quad has some color artifacts (it seems to be partially non-occluded) > near this intersecting hairline. It's most probably because we split quads into triangles for sorting purposes. > > Does anyone know how to deal with it? I could provide a 52k example file. Yes, that would be useful. > > Another hint which might be useful for other people: It has to be made > sure that localization is turned off when using gl2ps via > > unsigned char *oldlocale = setlocale(LC_NUMERIC,"C"); > > /* ... gl2ps-drawing-stuff */ > > setlocale(LC_NUMERIC,oldlocale); > > I am using gl2ps in a wxWidgets-app that turns on localization by > default. On my machine I ended up with corrupted output files before I > figured out that they were caused by german localization as the decimal > point is represented by a comma, so that the output streams were not the > way acrobat and ghostscript wanted them to be. Thanks--I'll add a note in the documentation. Take care, Christophe -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From wenzel at tu-harburg.de Thu Nov 25 10:32:51 2004 From: wenzel at tu-harburg.de (Fabian Wenzel) Date: Thu, 25 Nov 2004 10:32:51 +0100 Subject: [gl2ps] Intra-quad lines when blending In-Reply-To: <41A55602.4020905@acm.caltech.edu> References: <41A31900.2030001@tu-harburg.de> <41A55602.4020905@acm.caltech.edu> Message-ID: <41A5A6C3.1000103@tu-harburg.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 | It's most probably because we split quads into triangles for sorting | purposes. Yes, sorting may be a reason, but sometimes the lines do not look like borders of triangles... I have attached an example of a corrupted pdf-file and some OpenGL-code. Those are the same files that I sent to Micha Bieber. He already contacted me off-list and he offered to look into the stuff these days. Thanks! Fabian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBpabCbJzYO4mghQIRAgrOAKCQAW+CUCDNOhLiqisiRwxpWy/a5ACeKUhm VWPMnwelS1HOvJc2u4sl/Ks= =KLSG -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: output.pdf Type: application/pdf Size: 2657 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: transparency.cpp Type: text/x-c++src Size: 2487 bytes Desc: not available URL: From ospite at studenti.unina.it Fri Nov 26 23:10:38 2004 From: ospite at studenti.unina.it (A.O.) Date: Fri, 26 Nov 2004 23:10:38 +0100 Subject: [gl2ps] Debian package for gl2ps. Message-ID: <20041126231038.3161a199.ospite@studenti.unina.it> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hallo, i packaged gl2ps for debian, if anyone is interested i can provide debs and source. I made a Makefile for gl2ps too, maybe it can find its place in the original tarball. I'm new to debian packages, so it is possible my debs are not in good shape, yet. Have a good time, Antonio Ospite. PS: I'm not subscribed to the list so, please, CC me on reply. - -- Public key: http://studenti.unina.it/~ospite/aopubkey.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBp6ne5xr2akVTsAERApQ1AJ9BIMlly1rQkad3YHcpzu7N9Aqv9ACfYZF9 zHeU3MkK+EJJJEROa4+bM8w= =fbvT -----END PGP SIGNATURE----- From lpe540 at yahoo.com Mon Nov 29 15:59:13 2004 From: lpe540 at yahoo.com (Joe Miller) Date: Mon, 29 Nov 2004 06:59:13 -0800 (PST) Subject: [gl2ps] Missing text on Solaris In-Reply-To: <41A5554C.70609@acm.caltech.edu> Message-ID: <20041129145913.71129.qmail@web50001.mail.yahoo.com> Hi Christophe, Thanks for your reply. The test demo also exhibits strange behaviors. The text is shifted out of the bounding box and the actual objects are all displayed in wrong directions (ie the donut is tilted 30 degrees from the xz plane opposed to the expected 150 and box in the bottom display id rotated 90 degrees from what I would have expected). Strangely enough these anomolies do not happen when I link against a mesa version of opengl. I'm trying to get my systems people to install opengl version 1.3 on my system with hope that that might help. If you have any other suggestions I'd gladly take them. Thanks again. -joe --- Christophe Geuzaine wrote: > Joe Miller wrote: > > Hi, > > > > I'm having a problem printing text to a postscript > > file using gl2ps and I was wondering if anyone had > any > > suggestions. I'm actually using VTK as my api. I > use > > vtk to display a text string. I then print it to > > postscript. The postscipt file has the text string > in > > it but its coordinate values are very off. I've > looked > > into it a little bit and the values I'm seeing in > the > > postscript are the values that are returned from > > glGetFloatv(GL_CURRENT_RASTER_POSITION, pos) call > in > > the gl2psTextOpt function. I've run this on > various > > linux boxes and the program works fine. I've also > > ssh'ed into a solaris machine from a linux box run > the > > program remotely and things worked fine (conversly > > running remotely from Solaris to Linux produces > the > > error). So I was wondering if there was something > I'm > > not setting up right possibly with my x server. > I'm > > running on Solaris 5.8 and I believe I'm using gl > > library version 1.2. > > Sounds like a bug in the X server... Does the > gl2psTest example provided > in the gl2ps distribution exhibit the same kind of > behavior? > > Christophe > > > > > > Any suggestion would greatly be appreciated. If > you > > need any more information please let me know. > > > > Thanks in advance > > > > -joe > > > > > > > > __________________________________ > > Do you Yahoo!? > > The all-new My Yahoo! - Get yours free! > > http://my.yahoo.com > > > > > > _______________________________________________ > > gl2ps mailing list > > gl2ps at geuz.org > > http://www.geuz.org/mailman/listinfo/gl2ps > > > > > -- > Christophe Geuzaine > Applied and Computational Mathematics, Caltech > geuzaine at acm.caltech.edu - http://geuz.org > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From geuzaine at acm.caltech.edu Mon Dec 13 06:19:44 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Sun, 12 Dec 2004 21:19:44 -0800 Subject: [gl2ps] nightly archives Message-ID: <41BD2670.30605@acm.caltech.edu> Guys - Just a quick note to let you know that nightly tarballs of the sources will from now on be available on http://geuz.org/gl2ps/src/ I've recently made some changes to the scaling of the z-buffer, which should improve GL2PS_SIMPLE_LINE_OFFSET as well as occlusion culling. If you see anything that's worse with this new approach compared to the old one, please let me now... Take care, Christophe -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From dthompsn at vizsolutions.com Wed Dec 15 20:16:42 2004 From: dthompsn at vizsolutions.com (David Thompson) Date: Wed, 15 Dec 2004 12:16:42 -0700 Subject: [gl2ps] Transparency problems Message-ID: I've been using the gl2ps library for quite a while and have decided to try using some transparency. Whoa!, this isn't working the way I'd expect. For one thing, BeginPage is checking to see if GL_BLEND is on. However, I turn GL_BLEND on for some primitives and not for others--so that check always returns false and makes it so blending doesn't work. I hardcoded it to 1 to get around this problem. Next problem arises with strange outputs of the images. I get boundary lines on a lot of the transparent triangles. It makes the output impossible to use. The Test program shows this problem also (especially OutBSP.pdf). I would like to try and help trouble-shoot this, but I'm just tracing the code and can't quite get my mind around how it is supposed to be working. Anybody have an overview of how the blending is different than the regular output? Then I see that there is a function gl2psEnable(GL2PS_BLEND), but there is no example using this and the documentation really doesn't say what it does. Would this be the way that I should use blending since my primitives are turning blending on and off? David -- ............................................................................. David L. Thompson Visualization and Imagery Solutions, Inc. mailto:dthompsn at vizsolutions.com 5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472 From krischnamurti at users.sourceforge.net Thu Dec 16 09:23:20 2004 From: krischnamurti at users.sourceforge.net (Micha Bieber) Date: Thu, 16 Dec 2004 09:23:20 +0100 Subject: [gl2ps] Transparency problems In-Reply-To: References: Message-ID: <504990220.20041216092320@traits.de> Wednesday, December 15, 2004, 20:16:42, David Thompson wrote: Yes, transparency is tricky. Some of the PDF gurus in comp.text.pdf resist in answering any questions regarding this feature at all. I'm aware of the problem with the bogus lines and have so far no solution yet :-( The implementation _should_ be right following the description in the PDF specification. Concerning your more specific questions I'll get back to you at weekend. Micha -- From geuzaine at acm.caltech.edu Thu Dec 16 04:47:30 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Wed, 15 Dec 2004 19:47:30 -0800 Subject: [gl2ps] Transparency problems In-Reply-To: References: Message-ID: <41C10552.70000@acm.caltech.edu> David Thompson wrote: > I've been using the gl2ps library for quite a while and have decided to > try using some transparency. Whoa!, this isn't working the way I'd expect. > > For one thing, BeginPage is checking to see if GL_BLEND is on. However, > I turn GL_BLEND on for some primitives and not for others--so that check > always returns false and makes it so blending doesn't work. That's how it's supposed to work at the moment. If you want to enable blending locally, you have to use gl2psEnable(GL2PS_BLEND) and gl2psDisable(GL2PS_BLEND) pairs around the OpenGL calls that need blending. I would prefer to treat blending like we deal with lighting (i.e., just do the "right thing" if we detect that we have an alpha component in feedback buffer vertices) but that still needs to be implemented and tested. Christophe > I hardcoded > it to 1 to get around this problem. Next problem arises with strange > outputs of the images. I get boundary lines on a lot of the transparent > triangles. It makes the output impossible to use. The Test program shows > this problem also (especially OutBSP.pdf). I would like to try and help > trouble-shoot this, but I'm just tracing the code and can't quite get my > mind around how it is supposed to be working. Anybody have an overview > of how the blending is different than the regular output? > > Then I see that there is a function gl2psEnable(GL2PS_BLEND), but there > is no example using this and the documentation really doesn't say what > it does. Would this be the way that I should use blending since my > primitives are turning blending on and off? > > David -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From barrand at lal.in2p3.fr Fri Dec 17 13:01:53 2004 From: barrand at lal.in2p3.fr (Guy Barrand) Date: Fri, 17 Dec 2004 13:01:53 +0100 Subject: [gl2ps] PDF production problem Message-ID: <712ED53F-5023-11D9-BB92-000A959A1C6E@lal.in2p3.fr> Hello I have a problem with the PDF production in my application. My context is a litle bit complex, it is an Inventor application (using coin3d) on which I have been able to plug gl2ps (through an Inventor "action" SoGL2PSAction of my own). The PS production is ok, but the PDF produces files not understood by my Mac PDF viewer (something called "Apercu" spawned automatically by the Finder of my Mac (MacOSX 10.3.5). My gl2ps is 1.2.3 and in fact a recent one sent to me by Christophe to work on the line stipple. I have joined a z15.pdf file produced by gl2ps and a capture.pdf produced by the capture system of the Mac in order to see what is expected. On the z15.pdf file, "Apercu" crashes and the mail of the Mac shows a view without the solid shapes. On a Linux xpdf shows the same than the mailer of the Mac. Note that xpdf comlains with : Error: PDF version 1.4 -- xpdf supports version 1.3 (continuing anyway) On a Windows, AcrobateReader 6.0 stops with an error dialog box saying (in French) "Restauration incorrecte". -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1080 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: z15.pdf Type: application/pdf Size: 89985 bytes Desc: not available URL: -------------- next part -------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 4 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: capture.pdf Type: application/pdf Size: 176812 bytes Desc: not available URL: -------------- next part -------------- If you can help.... Cheers Guy ------------------------------------------------------------- Guy Barrand. eXtreme debugger. LAL Universite de Paris-Sud B.P 34 91898 ORSAY CEDEX France e-mail: barrand at lal.in2p3.fr Tel: +33 (1) 64 46 84 17 Fax: +33 (1) 69 07 94 04 office at cern: B01-R001 Tel at cern: 41 22 76 72335 ------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 472 bytes Desc: not available URL: From barrand at lal.in2p3.fr Fri Dec 17 17:31:11 2004 From: barrand at lal.in2p3.fr (Guy Barrand) Date: Fri, 17 Dec 2004 17:31:11 +0100 Subject: [gl2ps] PDF production problems Message-ID: <0FE91DA3-5049-11D9-BB92-000A959A1C6E@lal.in2p3.fr> Hello I have a problem with the PDF production in my application. My context is a litle bit complex, it is an Inventor application (using coin3d) on which I have been able to plug gl2ps (through an Inventor "action" SoGL2PSAction of my own). The PS production is ok, but the PDF produces files not understood by my Mac PDF viewer (something called "Apercu" spawned automatically by the Finder of my Mac (MacOSX 10.3.5). My gl2ps is 1.2.3 and in fact a recent one sent to me by Christophe to work on the line stipple. I have joined a z15.pdf file produced by gl2ps and a capture.pdf produced by the capture system of the Mac in order to see what is expected. On the z15.pdf file, "Apercu" crashes and the mail of the Mac shows a view without the solid shapes. On a Linux xpdf shows the same than the mailer of the Mac. Note that xpdf comlains with : Error: PDF version 1.4 -- xpdf supports version 1.3 (continuing anyway) On a Windows, AcrobateReader 6.0 stops with an error dialog box saying (in French) "Restauration incorrecte". -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1080 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: z15.pdf Type: application/pdf Size: 89985 bytes Desc: not available URL: -------------- next part -------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 4 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: capture.pdf Type: application/pdf Size: 176812 bytes Desc: not available URL: -------------- next part -------------- If you can help.... Cheers Guy ------------------------------------------------------------- Guy Barrand. eXtreme debugger. LAL Universite de Paris-Sud B.P 34 91898 ORSAY CEDEX France e-mail: barrand at lal.in2p3.fr Tel: +33 (1) 64 46 84 17 Fax: +33 (1) 69 07 94 04 office at cern: B01-R001 Tel at cern: 41 22 76 72335 ------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 472 bytes Desc: not available URL: From krischnamurti at users.sourceforge.net Sun Dec 19 00:02:47 2004 From: krischnamurti at users.sourceforge.net (Micha Bieber) Date: Sun, 19 Dec 2004 00:02:47 +0100 Subject: [gl2ps] PDF production problems In-Reply-To: <0FE91DA3-5049-11D9-BB92-000A959A1C6E@lal.in2p3.fr> References: <0FE91DA3-5049-11D9-BB92-000A959A1C6E@lal.in2p3.fr> Message-ID: <663410702.20041219000247@traits.de> Hallo Guy, This looks like a premature call to gl2psEndViewport to me. At least, your PDF seems to contain exactly one graphics state restore too much (If you will fix this, replace the first single letter 'Q' after the sequence "/GSa gs" in your example provided file by '%' with a _binary_ editor). The mentioned function is the only one in gl2ps, producing a 'Q' in this context. The PDF version warnings are completely justified, because gl2ps produces PDF 1.4 - should be no problem as long as no transparency has been included. Transparency uses some PDF 1.4 features. HIH Micha -- From barrand at lal.in2p3.fr Sat Dec 18 16:46:46 2004 From: barrand at lal.in2p3.fr (Guy Barrand) Date: Sat, 18 Dec 2004 16:46:46 +0100 Subject: [gl2ps] gl2ps / gcc 3.4.1 -pedantic Message-ID: <0628FD0A-510C-11D9-BB92-000A959A1C6E@lal.in2p3.fr> Hello I have an error when compiling gl2ps.h with gcc-3.4.1 and -pedantic. The compilation stops at the extra ";" in : #if defined(__cplusplus) }; #endif Removin the extra ";" fixes the problem. Cheers Guy ------------------------------------------------------------- Guy Barrand. eXtreme debugger. LAL Universite de Paris-Sud B.P 34 91898 ORSAY CEDEX France e-mail: barrand at lal.in2p3.fr Tel: +33 (1) 64 46 84 17 Fax: +33 (1) 69 07 94 04 office at cern: B01-R001 Tel at cern: 41 22 76 72335 ------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 661 bytes Desc: not available URL: From barrand at lal.in2p3.fr Sun Dec 19 08:43:22 2004 From: barrand at lal.in2p3.fr (Guy Barrand) Date: Sun, 19 Dec 2004 08:43:22 +0100 Subject: [Fwd: Re: [gl2ps] PDF production problems] In-Reply-To: <41C4EFD7.4010404@acm.caltech.edu> References: <41C4EFD7.4010404@acm.caltech.edu> Message-ID: Le 19 d?c. 04, ? 04:04, Christophe Geuzaine a ?crit : Hello Micha > > > De: Micha Bieber > Date: 19 d?cembre 2004 00:02:47 GMT+01:00 > ?: gl2ps at geuz.org > Objet: R?p : [gl2ps] PDF production problems > > > Hallo Guy, > > This looks like a premature call to gl2psEndViewport to me. At least, > your PDF seems to contain exactly one graphics state restore too much > (If you will fix this, replace the first single letter 'Q' after the > sequence "/GSa gs" in your example provided file by '%' with a _binary_ > editor). The mentioned function is the only one in gl2ps, producing a > 'Q' in this context. You were right for the bad balance Begin/EndViewport. I have corrected that, and now the PDF viewer of the Mac does not crash anymore ; but anyway some problems remain. Mainly all the lines seems ok (including linw width and line pattern), the text too (treated as bitmaps in my things) but all the solids are out ! Any idea ? I have attached two files (e.ps and e.pdf) to demonstrate that. The e.ps is displayed ok with ghostview, but the e.pdf lacks the solids with both "Apercu" and xpdf on a Linux. Thanks for the help. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1435 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: e.pdf Type: application/pdf Size: 98863 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: e.ps Type: application/postscript Size: 175068 bytes Desc: not available URL: -------------- next part -------------- Guy ------------------------------------------------------------- Guy Barrand. eXtreme debugger. LAL Universite de Paris-Sud B.P 34 91898 ORSAY CEDEX France e-mail: barrand at lal.in2p3.fr Tel: +33 (1) 64 46 84 17 Fax: +33 (1) 69 07 94 04 office at cern: B01-R001 Tel at cern: 41 22 76 72335 ------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 437 bytes Desc: not available URL: From shaiay at yahoo.com Sun Dec 19 19:49:16 2004 From: shaiay at yahoo.com (Shai Ayal) Date: Sun, 19 Dec 2004 20:49:16 +0200 Subject: [Fwd: Re: [gl2ps] PDF production problems] In-Reply-To: References: <41C4EFD7.4010404@acm.caltech.edu> Message-ID: <41C5CD2C.3010501@yahoo.com> on my WinXP both acroread 6 for the pdf file & gsview for the eps file show a similar scene with solids -- I guess this is a viewer issue and not a gl2ps issue Shai Guy Barrand wrote: > > > Le 19 d?c. 04, ? 04:04, Christophe Geuzaine a ?crit : > > > Hello Micha > > > * > De: *Micha Bieber > *Date: *19 d?cembre 2004 00:02:47 GMT+01:00 > *?: *gl2ps at geuz.org > *Objet: R?p : [gl2ps] PDF production problems > * > > Hallo Guy, > > This looks like a premature call to gl2psEndViewport to me. At least, > your PDF seems to contain exactly one graphics state restore too much > (If you will fix this, replace the first single letter 'Q' after the > sequence "/GSa gs" in your example provided file by '%' with a _binary_ > editor). The mentioned function is the only one in gl2ps, producing a > 'Q' in this context. > > > You were right for the bad balance Begin/EndViewport. I have corrected > that, and now the PDF viewer of the Mac does not crash anymore ; but anyway > some problems remain. Mainly all the lines seems ok (including linw width > and line pattern), the text too (treated as bitmaps in my things) but > all the solids > are out ! Any idea ? > > I have attached two files (e.ps and e.pdf) to demonstrate that. The e.ps > is displayed ok with ghostview, but the e.pdf lacks the solids with both > "Apercu" > and xpdf on a Linux. > > Thanks for the help. > > > > > > > Guy > > ------------------------------------------------------------- > Guy Barrand. eXtreme debugger. > LAL > Universite de Paris-Sud > B.P 34 > 91898 ORSAY CEDEX France > > e-mail: barrand at lal.in2p3.fr > Tel: +33 (1) 64 46 84 17 > Fax: +33 (1) 69 07 94 04 > > office at cern: B01-R001 > Tel at cern: 41 22 76 72335 > ------------------------------------------------------------- > > > > ------------------------------------------------------------------------ > > _______________________________________________ > gl2ps mailing list > gl2ps at geuz.org > http://www.geuz.org/mailman/listinfo/gl2ps From geuzaine at acm.caltech.edu Sun Dec 19 21:19:46 2004 From: geuzaine at acm.caltech.edu (Christophe Geuzaine) Date: Sun, 19 Dec 2004 12:19:46 -0800 Subject: [Fwd: Re: [gl2ps] PDF production problems] In-Reply-To: <41C5CD2C.3010501@yahoo.com> References: <41C4EFD7.4010404@acm.caltech.edu> <41C5CD2C.3010501@yahoo.com> Message-ID: <41C5E262.7080305@acm.caltech.edu> Shai Ayal wrote: > on my WinXP both acroread 6 for the pdf file & gsview for the eps file > show a similar scene with solids -- I guess this is a viewer issue and Yes, it's because Apple's PDF viewer does not support '/ShadingType 4'. I think someone on the list submitted a bug report to Apple about that last year, but I guess it couldn't hurt to submit a new one. Another solution would be to use the same trick as in PostScript, i.e., provide the option to subdivide the triangles instead of using the shading stuff. Christophe > not a gl2ps issue > > Shai > > Guy Barrand wrote: > >> >> >> Le 19 d?c. 04, ? 04:04, Christophe Geuzaine a ?crit : >> >> >> Hello Micha >> >> >> * >> De: *Micha Bieber >> *Date: *19 d?cembre 2004 00:02:47 GMT+01:00 >> *?: *gl2ps at geuz.org >> *Objet: R?p : [gl2ps] PDF production problems >> * >> >> Hallo Guy, >> >> This looks like a premature call to gl2psEndViewport to me. At least, >> your PDF seems to contain exactly one graphics state restore too much >> (If you will fix this, replace the first single letter 'Q' after the >> sequence "/GSa gs" in your example provided file by '%' with a >> _binary_ >> editor). The mentioned function is the only one in gl2ps, producing a >> 'Q' in this context. >> >> >> You were right for the bad balance Begin/EndViewport. I have corrected >> that, and now the PDF viewer of the Mac does not crash anymore ; but >> anyway >> some problems remain. Mainly all the lines seems ok (including linw width >> and line pattern), the text too (treated as bitmaps in my things) but >> all the solids >> are out ! Any idea ? >> >> I have attached two files (e.ps and e.pdf) to demonstrate that. The e.ps >> is displayed ok with ghostview, but the e.pdf lacks the solids with >> both "Apercu" >> and xpdf on a Linux. >> >> Thanks for the help. >> >> >> >> >> >> >> Guy >> >> ------------------------------------------------------------- >> Guy Barrand. eXtreme debugger. >> LAL >> Universite de Paris-Sud >> B.P 34 >> 91898 ORSAY CEDEX France >> >> e-mail: barrand at lal.in2p3.fr >> Tel: +33 (1) 64 46 84 17 >> Fax: +33 (1) 69 07 94 04 >> >> office at cern: B01-R001 >> Tel at cern: 41 22 76 72335 >> ------------------------------------------------------------- >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> gl2ps mailing list >> gl2ps at geuz.org >> http://www.geuz.org/mailman/listinfo/gl2ps > > > > _______________________________________________ > gl2ps mailing list > gl2ps at geuz.org > http://www.geuz.org/mailman/listinfo/gl2ps > -- Christophe Geuzaine Applied and Computational Mathematics, Caltech geuzaine at acm.caltech.edu - http://geuz.org From krischnamurti at users.sourceforge.net Sun Dec 19 09:55:30 2004 From: krischnamurti at users.sourceforge.net (Micha Bieber) Date: Sun, 19 Dec 2004 09:55:30 +0100 Subject: [gl2ps] PDF production problems] In-Reply-To: References: <41C4EFD7.4010404@acm.caltech.edu> Message-ID: <1367353201.20041219095530@traits.de> > You were right for the bad balance Begin/EndViewport. I have corrected > that, and now the PDF viewer of the Mac does not crash anymore ; but > anyway > some problems remain. Mainly all the lines seems ok (including linw > width > and line pattern), the text too (treated as bitmaps in my things) but > all the solids > are out ! Any idea ? Maybe I'm missing something, but your files look fine here (cf. attachment). I'm using ghostscript 8.14, acrobat 5 on WinXP Micha -- -------------- next part -------------- A non-text attachment was scrubbed... Name: e.png Type: image/png Size: 43528 bytes Desc: not available URL: From barrand at lal.in2p3.fr Mon Dec 20 19:21:00 2004 From: barrand at lal.in2p3.fr (Guy Barrand) Date: Mon, 20 Dec 2004 19:21:00 +0100 Subject: [Fwd: Re: [gl2ps] PDF production problems] In-Reply-To: <41C5E262.7080305@acm.caltech.edu> References: <41C4EFD7.4010404@acm.caltech.edu> <41C5CD2C.3010501@yahoo.com> <41C5E262.7080305@acm.caltech.edu> Message-ID: Le 19 d?c. 04, ? 21:19, Christophe Geuzaine a ?crit : Hello > Shai Ayal wrote: >> on my WinXP both acroread 6 for the pdf file & gsview for the eps >> file show a similar scene with solids -- I guess this is a viewer >> issue and On my Windows (Acrobat reader 6 too) I dont't see the solids !!!! I have a dialog box with (in French) "Erreur dictionnaire ombrage" (then clearly some shading problem). > > Yes, it's because Apple's PDF viewer does not support '/ShadingType > 4'. I think someone on the list submitted a bug report to Apple about > that last year, but I guess it couldn't hurt to submit a new one. Huum my xpdf on Linux does not display the solids. Then it is more general than an Apple problem. > > Another solution would be to use the same trick as in PostScript, > i.e., provide the option to subdivide the triangles instead of using > the shading stuff. Seems a good idea... Cheers > > Christophe > > > >> not a gl2ps issue >> Shai >> Guy Barrand wrote: >>> >>> >>> Le 19 d?c. 04, ? 04:04, Christophe Geuzaine a ?crit : >>> >>> >>> Hello Micha >>> >>> >>> * >>> De: *Micha Bieber >>> *Date: *19 d?cembre 2004 00:02:47 GMT+01:00 >>> *?: *gl2ps at geuz.org >>> *Objet: R?p : [gl2ps] PDF production problems >>> * >>> >>> Hallo Guy, >>> >>> This looks like a premature call to gl2psEndViewport to me. At >>> least, >>> your PDF seems to contain exactly one graphics state restore too >>> much >>> (If you will fix this, replace the first single letter 'Q' after >>> the >>> sequence "/GSa gs" in your example provided file by '%' with a >>> _binary_ >>> editor). The mentioned function is the only one in gl2ps, >>> producing a >>> 'Q' in this context. >>> >>> >>> You were right for the bad balance Begin/EndViewport. I have >>> corrected >>> that, and now the PDF viewer of the Mac does not crash anymore ; but >>> anyway >>> some problems remain. Mainly all the lines seems ok (including linw >>> width >>> and line pattern), the text too (treated as bitmaps in my things) >>> but all the solids >>> are out ! Any idea ? >>> >>> I have attached two files (e.ps and e.pdf) to demonstrate that. The >>> e.ps >>> is displayed ok with ghostview, but the e.pdf lacks the solids with >>> both "Apercu" >>> and xpdf on a Linux. >>> >>> Thanks for the help. >>> >>> >>> >>> >>> >>> >>> Guy >>> >>> ------------------------------------------------------------- >>> Guy Barrand. eXtreme debugger. >>> LAL >>> Universite de Paris-Sud >>> B.P 34 >>> 91898 ORSAY CEDEX France >>> >>> e-mail: barrand at lal.in2p3.fr >>> Tel: +33 (1) 64 46 84 17 >>> Fax: +33 (1) 69 07 94 04 >>> >>> office at cern: B01-R001 >>> Tel at cern: 41 22 76 72335 >>> ------------------------------------------------------------- >>> >>> >>> >>> --------------------------------------------------------------------- >>> --- >>> >>> _______________________________________________ >>> gl2ps mailing list >>> gl2ps at geuz.org >>> http://www.geuz.org/mailman/listinfo/gl2ps >> _______________________________________________ >> gl2ps mailing list >> gl2ps at geuz.org >> http://www.geuz.org/mailman/listinfo/gl2ps > > > -- > Christophe Geuzaine > Applied and Computational Mathematics, Caltech > geuzaine at acm.caltech.edu - http://geuz.org > > Guy ------------------------------------------------------------- Guy Barrand. eXtreme debugger. LAL Universite de Paris-Sud B.P 34 91898 ORSAY CEDEX France e-mail: barrand at lal.in2p3.fr Tel: +33 (1) 64 46 84 17 Fax: +33 (1) 69 07 94 04 office at cern: B01-R001 Tel at cern: 41 22 76 72335 ------------------------------------------------------------- From barrand at lal.in2p3.fr Mon Dec 20 19:45:01 2004 From: barrand at lal.in2p3.fr (Guy Barrand) Date: Mon, 20 Dec 2004 19:45:01 +0100 Subject: [Fwd: Re: [gl2ps] PDF production problems] In-Reply-To: <41C5CD2C.3010501@yahoo.com> References: <41C4EFD7.4010404@acm.caltech.edu> <41C5CD2C.3010501@yahoo.com> Message-ID: <41A8F65C-52B7-11D9-BB92-000A959A1C6E@lal.in2p3.fr> Le 19 d?c. 04, ? 19:49, Shai Ayal a ?crit : Hello > on my WinXP both acroread 6 for the pdf file & gsview for the eps file > show a similar scene with solids -- I guess this is a viewer issue and > not a gl2ps issue Since on your WindowsXP and Acrobat 6 it is ok and that I do not see the solids with the same versions, does the dialog box saying than there is a "shade dictionary error" means that I am lacking something in my installation of Acrobat ? Cheers Guy ------------------------------------------------------------- Guy Barrand. eXtreme debugger. LAL Universite de Paris-Sud B.P 34 91898 ORSAY CEDEX France e-mail: barrand at lal.in2p3.fr Tel: +33 (1) 64 46 84 17 Fax: +33 (1) 69 07 94 04 office at cern: B01-R001 Tel at cern: 41 22 76 72335 ------------------------------------------------------------- From shaiay at yahoo.com Mon Dec 20 20:11:17 2004 From: shaiay at yahoo.com (Shai Ayal) Date: Mon, 20 Dec 2004 21:11:17 +0200 Subject: [Fwd: Re: [gl2ps] PDF production problems] In-Reply-To: <41A8F65C-52B7-11D9-BB92-000A959A1C6E@lal.in2p3.fr> References: <41C4EFD7.4010404@acm.caltech.edu> <41C5CD2C.3010501@yahoo.com> <41A8F65C-52B7-11D9-BB92-000A959A1C6E@lal.in2p3.fr> Message-ID: <41C723D5.4000202@yahoo.com> Hope this helps: this is the system info from the acrobat dialog box: Available Physical Memory: 38784 KB Available Virtual Memory: 1998496 KB BIOS Version: D850GB - 20011002 Installed Acrobat: Installed Acrobat:C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe Version 6.0.2.2004051800 Creation Date 2003/11/03 Creation Time 14:49:24 Locale: English (United Kingdom) OS Manufacturer: Microsoft Corporation OS Name: Microsoft Windows XP Professional OS Version: 5.1.2600 Service Pack 2 Installed plugins: Accessibility.api Version 6.0.2.2004051800 AcroForm.api Version 6.0.2.2004051800 Annots.api Version 6.0.2.2004051800 DigSig.api Version 6.0.1.2003110300 EScript.api Version 6.0.2.2004051800 EWH32.api Version 6.0.1.2003110300 HLS.api Version 6.0.0.2003051500 IA32.api Version 6.0.0.2003051500 ImageViewer.API Version 6.0.1.38590 MakeAccessible.api Version 6.0.1.2003110300 Multimedia.api Version 6.0.0.2003051500 PDDom.api Version 6.0.1.2003110300 PPKLite.api Version 6.0.1.2003110300 PaperMetaData.api Version 6.0.2.15 PictureTasks.api Version 6.0.1.2003110300 SaveAsRTF.api Version 6.0.0.2003051500 Search.api Version 6.0.0.2003051500 Search5.api Version 6.0.0.2003051500 SendMail.api Version 6.0.1.2003110300 Soap.api Version 6.0.1.2003110300 Updater.api Version 6.0.1.2003110300 XFA.api Version 6.0.2.2004052200 eBook.api Version 6.0.2.2004051800 printme.api Version 6, 0, 16, 1 reflow.api Version 6.0.0.2003051500 weblink.api Version 6.0.1.2003110300 Guy Barrand wrote: > > Le 19 d?c. 04, ? 19:49, Shai Ayal a ?crit : > > Hello > >> on my WinXP both acroread 6 for the pdf file & gsview for the eps file >> show a similar scene with solids -- I guess this is a viewer issue and >> not a gl2ps issue > > > Since on your WindowsXP and Acrobat 6 it is ok and that I do not see > the solids > with the same versions, does the dialog box saying > than there is a "shade dictionary error" means that I am lacking > something in my > installation of Acrobat ? > > Cheers > > Guy > > ------------------------------------------------------------- > Guy Barrand. eXtreme debugger. > LAL > Universite de Paris-Sud > B.P 34 > 91898 ORSAY CEDEX France > > e-mail: barrand at lal.in2p3.fr > Tel: +33 (1) 64 46 84 17 > Fax: +33 (1) 69 07 94 04 > > office at cern: B01-R001 > Tel at cern: 41 22 76 72335 > ------------------------------------------------------------- > > From barrand at lal.in2p3.fr Mon Dec 20 20:40:43 2004 From: barrand at lal.in2p3.fr (Guy Barrand) Date: Mon, 20 Dec 2004 20:40:43 +0100 Subject: [Fwd: Re: [gl2ps] PDF production problems] In-Reply-To: <41C723D5.4000202@yahoo.com> References: <41C4EFD7.4010404@acm.caltech.edu> <41C5CD2C.3010501@yahoo.com> <41A8F65C-52B7-11D9-BB92-000A959A1C6E@lal.in2p3.fr> <41C723D5.4000202@yahoo.com> Message-ID: <097164DE-52BF-11D9-BB92-000A959A1C6E@lal.in2p3.fr> Le 20 d?c. 04, ? 20:11, Shai Ayal a ?crit : Hello Shai You have a little bit more recent version than me. Mine is 6.0.0.0 and the same for all plugins. For plugins I have not your below "PaperMetaData"... > Hope this helps: > > this is the system info from the acrobat dialog box: > > Available Physical Memory: 38784 KB > Available Virtual Memory: 1998496 KB > BIOS Version: D850GB - 20011002 > Installed Acrobat: > Installed Acrobat:C:\Program Files\Adobe\Acrobat > 6.0\Reader\AcroRd32.exe > Version 6.0.2.2004051800 > Creation Date 2003/11/03 > Creation Time 14:49:24 > Locale: English (United Kingdom) > OS Manufacturer: Microsoft Corporation > OS Name: Microsoft Windows XP Professional > OS Version: 5.1.2600 Service Pack 2 > > Installed plugins: > > Accessibility.api > Version 6.0.2.2004051800 > AcroForm.api > Version 6.0.2.2004051800 > Annots.api > Version 6.0.2.2004051800 > DigSig.api > Version 6.0.1.2003110300 > EScript.api > Version 6.0.2.2004051800 > EWH32.api > Version 6.0.1.2003110300 > HLS.api > Version 6.0.0.2003051500 > IA32.api > Version 6.0.0.2003051500 > ImageViewer.API > Version 6.0.1.38590 > MakeAccessible.api > Version 6.0.1.2003110300 > Multimedia.api > Version 6.0.0.2003051500 > PDDom.api > Version 6.0.1.2003110300 > PPKLite.api > Version 6.0.1.2003110300 > PaperMetaData.api > Version 6.0.2.15 > PictureTasks.api > Version 6.0.1.2003110300 > SaveAsRTF.api > Version 6.0.0.2003051500 > Search.api > Version 6.0.0.2003051500 > Search5.api > Version 6.0.0.2003051500 > SendMail.api > Version 6.0.1.2003110300 > Soap.api > Version 6.0.1.2003110300 > Updater.api > Version 6.0.1.2003110300 > XFA.api > Version 6.0.2.2004052200 > eBook.api > Version 6.0.2.2004051800 > printme.api > Version 6, 0, 16, 1 > reflow.api > Version 6.0.0.2003051500 > weblink.api > Version 6.0.1.2003110300 > > > > Guy Barrand wrote: >> Le 19 d?c. 04, ? 19:49, Shai Ayal a ?crit : >> Hello >>> on my WinXP both acroread 6 for the pdf file & gsview for the eps >>> file show a similar scene with solids -- I guess this is a viewer >>> issue and not a gl2ps issue >> Since on your WindowsXP and Acrobat 6 it is ok and that I do not >> see the solids >> with the same versions, does the dialog box saying >> than there is a "shade dictionary error" means that I am lacking >> something in my >> installation of Acrobat ? >> Cheers >> Guy >> ------------------------------------------------------------- >> Guy Barrand. eXtreme debugger. >> LAL >> Universite de Paris-Sud >> B.P 34 >> 91898 ORSAY CEDEX France >> e-mail: barrand at lal.in2p3.fr >> Tel: +33 (1) 64 46 84 17 >> Fax: +33 (1) 69 07 94 04 >> office at cern: B01-R001 >> Tel at cern: 41 22 76 72335 >> ------------------------------------------------------------- >> Guy ------------------------------------------------------------- Guy Barrand. eXtreme debugger. LAL Universite de Paris-Sud B.P 34 91898 ORSAY CEDEX France e-mail: barrand at lal.in2p3.fr Tel: +33 (1) 64 46 84 17 Fax: +33 (1) 69 07 94 04 office at cern: B01-R001 Tel at cern: 41 22 76 72335 -------------------------------------------------------------