The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Re: [mg4368] ParametricPlot3D: shading?
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
John Fultz

Posts: 736
Registered: 12/7/04
Re: [mg4368] ParametricPlot3D: shading?
Posted: Jul 19, 1996 2:51 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> 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
Applications Group
Wolfram Research, Inc.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.