From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17959 Path: main.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: shading in meta[post/play] & PDF Date: Sat, 22 Jan 2005 02:36:44 +0100 Message-ID: <41F1AE2C.2020002@guest.arnes.si> References: <20050115210457.24F53127CC@ronja.ntg.nl> <41EE2FA8.4080002@guest.arnes.si> <41EE4903.4060705@wxs.nl> <41F04319.2070402@guest.arnes.si> <41F16C44.4020106@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1106613078 21563 80.91.229.6 (25 Jan 2005 00:31:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Jan 2005 00:31:18 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 25 01:31:11 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CtEbv-000453-00 for ; Tue, 25 Jan 2005 01:31:11 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D2D4A12792; Tue, 25 Jan 2005 01:31:10 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22133-02; Tue, 25 Jan 2005 01:31:10 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3D8CD127A2; Tue, 25 Jan 2005 01:29:24 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C5618127A2 for ; Tue, 25 Jan 2005 01:29:22 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21895-05-2 for ; Tue, 25 Jan 2005 01:29:21 +0100 (CET) Original-Received: from acheron.informatik.uni-muenchen.de (acheron.informatik.uni-muenchen.de [129.187.214.135]) by ronja.ntg.nl (Postfix) with ESMTP id BD61812792 for ; Tue, 25 Jan 2005 01:29:21 +0100 (CET) Original-Received: from internaldeliver.acheron.informatik.uni-muenchen.de (localhost [127.0.0.1]) by acheron.informatik.uni-muenchen.de (Postfix) with ESMTP id 380054366F; Mon, 24 Jan 2005 22:51:51 +0100 (CET) Original-Received: from [141.84.30.35] (b35.lmu.vpn.lrz-muenchen.de [141.84.30.35]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by acheron.informatik.uni-muenchen.de (Postfix) with ESMTP id 2BD524358F; Mon, 24 Jan 2005 22:51:51 +0100 (CET) User-Agent: Mozilla/4.5-4.75 (Windows; U; Windows NT 5.1; sl-SI; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: sl, en, en-us, de Original-To: mailing list for ConTeXt users In-Reply-To: <41F16C44.4020106@wxs.nl> X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17959 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17959 >> Page 746 of PDF Reference, version 1.6 also defines an interesting new >> feature: 3D objects (3D Artwork as they call it), but I haven't found >> anything else about that. > > > there is a section about shading, the function numbers differ; ? How? (I was talking only about shading types, not about function types at all anyway, but the number *should* be the same.) > take a look at supp-mpe.tex, all we need is some variant on > > \defineMPspecial{31} > {\startMPshading{16}% type 3 > \setMPshadingcolors{4}{5}{6}{10}{11}{12}% > \immediate\pdfobj > {< /Domain [\gMPs1 \gMPs2] > /C0 [\MPshadeA] > /C1 [\MPshadeB] > /N \gMPs3>>}% > \immediate\pdfobj > {< /ColorSpace /\MPshadeC\space > /Function \the\pdflastobj\space 0 R > /Coords [\gMPs7 \gMPs8 \gMPs9 \gMPs{13} \gMPs{14} \gMPs{15}] > /Extend [true true]>>}% > \stopMPshading} > > (plus some more depending on what parameters need to be passed) Thanks for pointing it out. This piece of code is very nice (however the whole bunch of code that resides in the file ... I wonder how you managed to put all that stuff together :) > if you can locate the right stuff in the pdf ref manual we can see what > can be done (off list); i can add more 'special' handlers to the mp to > pdf converted Here are some more examples: http://partners.adobe.com/public/developer/ps/sdk/index_archive.html http://partners.adobe.com/public/developer/en/ps/sdk/TN5600.SmoothShading.pdf http://partners.adobe.com/public/developer/en/ps/sdk/sample/smooth.zip (I didn't want to send the material to the list and I didn't find the links until now.) I'll try to make the drawings I need (in PostScript for the beginning) and collect the ideas of how the things have to be implemented (which features supported and how). I'm in no way such a 'superwoman' to be able to do dozens of things efficiently in one day as you do, but I'll do my best; exams are approaching, so it may take me slightly longer - please apologize me. Thanks again for being prepared to help. I'll write back as soon as I have something to report. Mojca