POV-Ray : Newsgroups : povray.newusers : Simple 2D text on a cylinder's surface Server Time
29 Jul 2024 02:20:10 EDT (-0400)
  Simple 2D text on a cylinder's surface (Message 21 to 23 of 23)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Tim Attwood
Subject: Re: Simple 2D text on a cylinder's surface
Date: 23 Oct 2007 18:31:46
Message: <471e7652$1@news.povray.org>
> Not having used the scroll object, I cannot say for certain if this will 
> work with it. You may want to try interior_texture. Since objects in POV 
> have two sides (inside, outside), there is a provision for texturing both 
> sides separately.
>
> Try something like this:
>
> object{ my_object
>  texture{
>   pigment{ my_text_pigment }
>  }
>  interior_texture{
>   pigment{ no_text_pigment }
>  }
> }

This should work fine, the scroll is a surface without a
clearly defined inside... the back is the interior_texture.


Post a reply to this message

From: Leef me
Subject: Re: Simple 2D text on a cylinder's surface
Date: 23 Oct 2007 19:15:01
Message: <web.471e7f8cee0c3636892adb1d0@news.povray.org>
"Tim Attwood" <tim### [at] comcastnet> wrote:
> > Not having used the scroll object, I cannot say for certain if this will
> > work with it. You may want to try interior_texture. Since objects in POV
> > have two sides (inside, outside), there is a provision for texturing both
> > sides separately.
> >
> > Try something like this:
> >
> > object{ my_object
> >  texture{
> >   pigment{ my_text_pigment }
> >  }
> >  interior_texture{
> >   pigment{ no_text_pigment }
> >  }
> > }
>
> This should work fine, the scroll is a surface without a
> clearly defined inside... the back is the interior_texture.

Thanks Sam and Tim, and also to Gregjohn for his original question

I found out about interior_texture a little while ago by reading and
experiments

I found that I had to use keyword uv_mapping or the text was pixelated as
before

For anyone else, here is an example of a disc with text and background on
one side and background only on the other side


#declare my_text= text{   ttf"arialbd.ttf"      "This is a test"    1,0

  translate -z/2
// suggested by fellow pover Samuel Benge  Date: 21 Oct 2007 20:39:07
// Re: Simple 2D text on a cylinder's surface
  scale .2
  //rotate <0,0,90>
  translate<-.7,0,0>
   // when the Z rotation is 90, then these parameters are y,x,z
   // when the Z rotation is 0, then these parameters are x,y,z
}

disc {
  <0, 0, 0>  // center position
  y,         // normal vector
  1.0,       // outer radius

    uv_mapping
      texture {                     // one side has background and text
      pigment{
        pigment_pattern{
          object{my_text 0,1}
          }
        pigment_map{
            [0 color Black]
            [1 color White]
        }
      }
    }
    interior_texture {             // the other side has another background
      pigment {
            color Blue
        }
      }
    rotate x*-45
    rotate x*90*clock             // look at both sides of the disc
}

Leef_me


Post a reply to this message

From: Marty Schrader
Subject: Re: Simple 2D text on a cylinder's surface
Date: 15 Nov 2007 17:31:18
Message: <473cc8b6$1@news.povray.org>
This appears to be the solution I will have to employ. My original intent was to 
make use of POV-Ray as a very low (like, zero) cost solution for a complex and 
tedious problem. However, POV itself has turned out to be a complex and tedious 
system that has more flaws and shortcomings than the manual solution provided by 
other tools.

So, it's back to Google to shop for 3D design tools that won't bust the budget.

Thanks for all the help, folks. See you around.
-- 
Marty Schrader

Embedded Technology Consulting from

Parsec Systems, Inc.
0N107 Cottonwood Drive
Wheaton, IL  60187
(630) 588-0241
www.parsecsystemsinc.com
mar### [at] parsecsystemsinccom


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.