Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ParametricPlot3D: shading?

  • To: mathgroup at
  • Subject: [mg4453] Re: [mg4368] ParametricPlot3D: shading?
  • From: John Fultz <jfultz>
  • Date: Mon, 29 Jul 1996 02:37:12 -0400
  • Sender: owner-wri-mathgroup at

> I am trying to use ParametricPlot3D in the form
> ParametricPlot3D[{fx, fy, fz, s}, ...]
> where s is a colour specification. I expected that the following two
> commands would give roughly the same output:
> In[3]:= ParametricPlot3D[{x, y, 1, Hue[x]}, {x, 0, 1}, {y, 0, 1}]
> Out[3]= -Graphics3D-
> In[4]:= Plot3D[{1, Hue[x]}, {x, 0, 1}, {y, 0, 1}]
> Out[4]= -SurfaceGraphics-
> But while the second gives a nicely coloured surface, the first does
> not.
> What am I doing wrong? Or is there a bug?
> James Lawry.

Not a bug, per se, but definitely an assumption that throws a lot of users
off.  By default, ParametricPlot3D uses the lighting model to determine
color, and so all color specifications are ignored.  In order to expose
the color, you need to shut off the lighting.

ParametricPlot3D[{x, y, 1, Hue[x]}, {x, 0, 1}, {y, 0, 1}, Lighting->False]

does the trick.


John Fultz
jfultz at
Applications Group
Wolfram Research, Inc.


  • Prev by Date: Pentium Performance
  • Next by Date: Re: help: Write data to file into many columns
  • Previous by thread: Re: ParametricPlot3D: shading?
  • Next by thread: Re: ParametricPlot3D: shading?