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


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

Re: Texture in version 8, fine, but don't export...?

From Murray Eisenberg <murray@math.umass.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Texture in version 8, fine, but don't export...?
Date 2011-09-08 09:28 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j4a1s5$42h$1@smc.vnet.net> (permalink)
References <j44jpj$8vb$1@smc.vnet.net> <201109070940.FAA21529@smc.vnet.net>

Show all headers | View raw


Just a quick suggestion without my trying it here...

Try exporting to PostScript, view that with GhostView, say. Only then 
use some graphics utility to convert to the formats you require.

It's been the case, in the past at least, that even direct export to pdf 
can lose some graphics features, but exporting first to .eps and then 
converting that to .pdf works.

On 9/7/11 5:40 AM, Roger Bagula wrote:
> So how to get real textures into Mathematica
> that show up in models?
> I don't notice the guys working at Mathematica jumping in on this one, LOL.
> I'm learning this stuff the hard way by doing and cr....
> Here is a working "VertexData" version using ListSurfacePlot3D:
> ( as you can see this is my 5th experiment: the first two went very
> badly....):
>
> Clear[x, y, z, w, r, g, ga, gb, gc]
> x = If[Sin[t]*Cos[p]<  0, Sin[t]*Cos[p]/2, Sin[t]*Cos[p]];
> y = Sin[t]*Exp[1 - Sin[p]];
> z = Cos[t];
> w = {-x, 2*y, z};
> r = x^2 + y^2 + z^2;
> g = Flatten[Table[N[w/r], {t, 0, Pi, Pi/70}, {p, -Pi, Pi, 2*Pi/70}],
>     1];
> Length[g]
> ga = ListSurfacePlot3D[g, MaxPlotPoints ->  140, Lighting ->  "Neutral",
>     Mesh ->  None, Axes ->  False, Boxed ->  False,
>    PlotStyle ->  {Pink, Specularity[White, 20]}]
> gb = ParametricPlot3D[N[w/r], {t, 0, Pi}, {p, -Pi, Pi},
>    PlotPoints ->  100,
>    PlotStyle ->  Directive[Purple, Specularity[White, 50]],
>    Axes ->  False, Mesh ->  None, Boxed ->  False]
> gc = Show[{ga, gb}, PlotRange ->  All]
> Export["AlienSpaceshipListSurfacePlot5.3ds", gc]
> Export["AlienSpaceshipListSurfacePlot5.obj", gc]
> Export["AlienSpaceshipListSurfacePlot5.stl", gc]
>
> The obj takes forever and ever..
>

-- 
Murray Eisenberg                     murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

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


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