Wow, no kidding John, what a difference! Great work Mike! -----Original Message----- From: John Hunter [mailto:jdh2...@gmail.com] Sent: Friday, August 07, 2009 12:54 PM To: Michael Droettboom Cc: Reinier Heeres; Ryan Wagner; matplotlib-devel@lists.sourceforge.net Subject: Re: [matplotlib-devel] Adding Shades Keyword to 3D routines.
On Fri, Aug 7, 2009 at 1:39 PM, Michael Droettboom<md...@stsci.edu> wrote: > I'm not sure if Gouraud triangles (as supported by Agg, PDF and PS) are > really sufficient for drawing interpolated quad meshes, because of the > effect described here: > > http://books.google.com/books?id=19SpFYj82owC&lpg=PA280&ots=r3gnxKn9As&dq=shading%20quadrilaterals%20with%20gouraud%20triangles&pg=PA281#v=onepage&q=&f=false > > Running quadmesh_demo.py, you can see some sharp edges between triangles in > the same quad, but it's not too bad in all places. If anyone has any ideas > about how to ameliorate that effect, feel free to have a crack at it. I > just wanted to get a proof-of-concept starting point in before heading on > vacation for a few days. Wow -- hat tip to you! With productivity like this, how can we afford to lose you for a few days to vacation :-) I had to run the example with mpl99 to appreciate the changes, since you decreased the n from 56 to 12 to show off the effects of the interpolation, and the interpolation with n=12 is about as visually good as the grid w/o with n=56. Very nice. I don't have time to dig into the code now since I have some pressing work stuff, but I look forward to doing a read-through over the weekend. Enjoy your vacation, but don't forget your computer graphics texts and laptop -- I think lighting, shadows and several shaders should get you through a few days on the beach <wink> BTW, it looks like the edges of the polys are aliased in the "masked" side of the figure. Have you noticed this? JDH ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel