Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion AxesLabel parallel to 3D axes?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
JUN  
View profile  
 More options May 13 2011, 6:26 am
Newsgroups: comp.soft-sys.math.mathematica
From: JUN <noec...@gmail.com>
Date: Fri, 13 May 2011 10:26:17 +0000 (UTC)
Local: Fri, May 13 2011 6:26 am
Subject: Re: AxesLabel parallel to 3D axes?
On May 12, 1:31 am, "Christopher O. Young" <c...@comcast.net> wrote:

> Isn't there some way to paste images onto surfaces in 3D views? Then, if we
> could just have a flat rectangle with an image of the label on it, we'd be
> all set. Especially if the rectangle could be transparent while the
> lettering on it could be kept opaque.

> On 8/1/10 4:55 AM, in article i33cph$81...@smc.vnet.net, "Fred Klingener"

Yes, there is:

rasterText[s_, bg_:None] :=
 With[{r = Rasterize[Style[s, Magnification -> 10], Background ->
bg]},
  Apply[Graphics3D[{EdgeForm[], Texture[r],
      Polygon[{{0, 0, 0}, {#1, 0, 0}, {#1, #2, 0}, {0, #2, 0}},
       VertexTextureCoordinates -> {{0, 0}, {1, 0}, {1, 1}, {0,
          1}}]}] &, ImageDimensions[r]]]

Show[rasterText[Style["This is a text", FontFamily -> "Times"]],
 Lighting -> "Neutral", Boxed -> False]

The only problem is that Mathematica doesn't allow us to use
transparent textures, so the 3D text will be on a solid background.

In Fred's bitmap solution, you can have what amounts to a transparent
background, but at the expense of a large polygon count.

Jens


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.