Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4771
| From | Roger Bagula <roger.bagula@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Texture in version 8, fine, but don't export...? |
| Date | 2011-09-06 07:57 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j44jpj$8vb$1@smc.vnet.net> (permalink) |
I spent some time uploading to Scultpeo models of one of my surfaces
with both of the new texture types ( color and Black and white)
and I got some pretty pictures in Mathematica.
Maybe I'm doing something wrong, so I made up these demo
programs of Steiner's Roman surface/ projective plane.
In my experiments the surface colors come through, but not the
textures.
Clear[x, y, z, m, t, p]
(*Steiner's projective plane as a spherical harmonic*)
x = Cos[t]*Sin[p];
y = Sin[t]*Sin[p];
z = Cos[p];
m = {{0, x, -y},
{-x, 0, z},
{y, -z, 0}};
mm = m.Transpose[m];
w = {mm[[1, 2]], mm[[1, 3]], mm[[2, 3]]};
(* color texture graphic*)
g1 =
ParametricPlot3D[w, {t, 0, Pi}, {p, 0, Pi}, PlotPoints -> 100,
TextureCoordinateFunction -> ({2 #4, #5} &),
PlotStyle ->
Directive[Pink, Specularity[White, 50],
Texture[ExampleData[{"ColorTexture", "Metal4"}]]], Axes -> False,
Mesh -> None, Boxed -> False, PlotPoints -> 100]
Export["Steiner1.3ds", g1]
Export["Steiner1.obj", g1]
Import["Steiner1.3ds"]
(* texture graphic*)
g2 =
ParametricPlot3D[w, {t, 0, Pi}, {p, 0, Pi}, PlotRange -> All,
Boxed -> False, Axes -> False, PlotPoints -> 100, Mesh -> None,
TextureCoordinateFunction -> ({2 #4, #5} &),
PlotStyle ->
Directive[Cyan, Specularity[White, 50],
Texture[ExampleData[{"Texture", "Bubbles3"}]]]]
Export["Steiner2.3ds", g2]
Export["Steiner2.obj", g2]
Import["Steiner2.3ds"]
Try these yourself...Pink and Cyan is what you get back...
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-06 07:57 +0000
Re: Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-07 09:46 +0000
Re: Texture in version 8, fine, but don't export...? Murray Eisenberg <murray@math.umass.edu> - 2011-09-08 09:28 +0000
Re: Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-12 08:34 +0000
Re: Texture in version 8, fine, but don't export...? Murray Eisenberg <murray@math.umass.edu> - 2011-09-13 11:24 +0000
Re: Texture in version 8, fine, but don't export...? Yves Klett <yves.klett@googlemail.com> - 2011-09-15 08:38 +0000
Re: Texture in version 8, fine, but don't export...? W Craig Carter <ccarter@mit.edu> - 2011-09-14 09:14 +0000
Re: Texture in version 8, fine, but don't export...? "Hans Michel" <hmichel@cox.net> - 2011-09-08 09:30 +0000
Re: Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-12 08:33 +0000
Re: Texture in version 8, fine, but don't export...? "Hans Michel" <hmichel@cox.net> - 2011-09-16 09:56 +0000
Re: Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-17 10:31 +0000
Re: Texture in version 8, fine, but don't export...? Roger Bagula <roger.bagula@gmail.com> - 2011-09-20 10:12 +0000
csiph-web