Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10027

How to combine 3D Graphics?

From Jee Lou <ywdr1987@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject How to combine 3D Graphics?
Date 2012-05-11 04:13 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <joi3lp$n45$1@smc.vnet.net> (permalink)

Show all headers | View raw


I have tried to combine a translucent 3D-plot graph with its density plot by using Show. But it doesn't work. Here's my code:
g1=Plot3D[Sin[x + y], {x, 0, Pi}, {y, 0, Pi}, Mesh -> False,PlotStyle->Opacity[.5]];
g2=DensityPlot[Sin[x + y], {x, 0, Pi}, {y, 0, Pi}, Frame -> False];
g3=Plot3D[-1, {x, 0, Pi}, {y, 0, Pi}, Mesh -> None,TextureCoordinateFunction -> ({#1, #2} &), PlotStyle -> Directive[Texture[g2]]];
Show[g1,g3]
It turns out that the density graph disappears T_T.
How can I make it right? 

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How to combine 3D Graphics? Jee Lou <ywdr1987@gmail.com> - 2012-05-11 04:13 +0000
  Re: How to combine 3D Graphics? JUN <noeckel@gmail.com> - 2012-05-13 07:03 +0000
    Re: How to combine 3D Graphics? Jee Lou <ywdr1987@gmail.com> - 2012-05-14 05:36 +0000

csiph-web