From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1094ba,2fea9208be028b50 X-Google-Attributes: gid1094ba,public X-Google-Thread: 111c93,2fea9208be028b50 X-Google-Attributes: gid111c93,public X-Google-Thread: 100e2d,2fea9208be028b50 X-Google-Attributes: gid100e2d,public From: Pincon Bruno Subject: Re: Mesa on Alpha/Linux and 3-D scientific plotting Date: 2000/02/14 Message-ID: <38A7BFE1.1B72@iecn.u-nancy.fr>#1/1 X-Deja-AN: 585651246 Content-Transfer-Encoding: 8bit References: <38A7748F.976E55CB@nospam.com> Organization: IECN & ESIAL Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Newsgroups: comp.lang.fortran,comp.os.linux.alpha,comp.graphics.misc G. Hugh Song wrote: > > Compaq ported Mesa into the rpm format on Alpha/Linux for > everyone to grab. > > I am looking for Fortran-callable graphics routines for > scientific contour/3-D surface plotting. Does Mesa have > appropriate routines in the library? It appears Mesa can do > far more complicated things than just 3-D surface plotting. > Mesa is an OpenGl implementation so you use OpenGl instructions (and also Glut's ones to deal with windows events : OpenGl do only rendering). If it is relatively easy to plot some coloured triangles, contour-lines (up to my knowledge of OpenGl) must be coded. Perhaps you may find somebody who have already coded some routines which do the stuff. Nevertheless OpenGl is really a powerfull way to do every thing about graphics but with some efforts. Another problem is that OpenGl is for rendering on a screen. If you can easily grab a window (for instance with xv) and transfert it in a graphical format (postscript, gif, ...) the obtained picture have the screen resolution which may be to low for quality publishing. About this subject you may found (in the C examples which come with mesa) a routine which is a postscript driver that used the graphical representation of an OpenGl object before the last operations (as one of theses is the hidden faces elimination with the depth buffer algorithm, the triangular faces have to be ordered so as to obtain this effect in postscript) f90 examples codes come with the f90 OpenGl bindings : http://math.nist.gov/f90gl/ A last point : mesa generaly transforms OpenGl instructions in X11 instructions (*) and X11 is basically 2d : this means that in this case, mesa don't use 3d capability of the hardware and rendering may be slow (nevertheless it is usable : I am happy to have mesa for my linux box !). (*) they are some drivers for some graphical chips (Voodoo, and others) and in this case mesa may used 3d capabilities of the graphical board. --------------------------------------------------- Bruno Pin�on IECN / ESIAL / UHP (Nancy 1) t�l : 03 83 91 26 80 Email : Bruno.Pincon@iecn.u-nancy.fr