|
|
> 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
|
|
|
|
"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
|
|
|
|
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
|
|