ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec1@email.si>
Subject: shading in meta[post/play] & PDF
Date: Sat, 15 Jan 2005 06:16:48 +0100	[thread overview]
Message-ID: <41E8A740.7010703@email.si> (raw)

[-- Attachment #1: Type: text/plain, Size: 1521 bytes --]

There's a wonderful tutorial on drawing 3D graphics in PostScript on 
http://www.math.ubc.ca/~cass/graphics/manual/, specifically
http://www.math.ubc.ca/~cass/graphics/manual/code/doughnut.eps as an 
example.

And there's a detailed description on shading in PostScript in
http://partners.adobe.com/public/developer/en/ps/PLRM.pdf, page 259
(I attached an example and have some more on computer if anyone is 
interested; I downloaded them from Adobe, but don't know the URL any 
more) or on shading in PDF in
http://partners.adobe.com/public/developer/en/pdf/PDFReference16.pdf, 
page 272. (They're basically the same.)

In metapost, "perfect" spheres can be drawn, like on 
http://www.gnu.org/software/3dldf/cdsmpls.html. But how can I add colour?

Even if it would be too tricky to add colour and proper shading on the 
sphere - Is there any possibility to use advanced shading techiques 
described in PLRM inside metapost/metaplay for the most simple cases, 
say, like in the attached example? Metaplay allows circular and gradient 
shading and no others. I don't mind if I had to hard-code the shading.

PSTricks allows some more advanced shading techniques and even direct 
PostScript code integration (with \special I think). Is anything similar 
possible in metapost/play?

The spheres drawn directly in PostScript as in the examples above still 
have straight lines (well, I agree that with some mathematics it would 
be possible to draw them with proper splines as well).

Thanks for all the suggestions,
	Mojca

[-- Attachment #2: DECAHED.PS --]
[-- Type: application/postscript, Size: 2374 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

             reply	other threads:[~2005-01-15  5:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-15  5:16 Mojca Miklavec [this message]
2005-01-15 21:04 ` [metapost] " Laurence Finston
2005-01-19 10:00   ` Mojca Miklavec
2005-01-19 10:59     ` Laurence Finston
2005-01-19 11:48     ` Hans Hagen
2005-01-20 23:47       ` Mojca Miklavec
2005-01-21 20:55         ` h h extern
2005-01-22  1:36           ` Mojca Miklavec
2005-01-15 22:02 ` [metapost] " Laurence Finston

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41E8A740.7010703@email.si \
    --to=mojca.miklavec1@email.si \
    --cc=mojca.miklavec@guest.arnes.si \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).