ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* shading in meta[post/play] & PDF
@ 2005-01-15  5:16 Mojca Miklavec
  2005-01-15 21:04 ` [metapost] " Laurence Finston
  2005-01-15 22:02 ` [metapost] " Laurence Finston
  0 siblings, 2 replies; 9+ messages in thread
From: Mojca Miklavec @ 2005-01-15  5:16 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-01-22  1:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-15  5:16 shading in meta[post/play] & PDF Mojca Miklavec
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

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).