|
 |
"Bald Eagle" <cre### [at] netscape net> wrote:
> "Leroy" <whe### [at] gmail com> wrote:
> >
> > Using the 'object' pattern should do the trick.
>
> Hmm. Yes.
> However, that doesn't function like an image_map -
> it's a volumetric inside/outside test on 3D text.
> I can of course import that into a function and use a pigment {function {F(x, y,
> 0)}} to extend that infinitely in the z direction, but if I want color, then I
> have to resort to making an average {} texture . . . and that starts to get
> involved and messy.
I take it that you mean averaging three weighted color functions to get full
color. Yeah, it's involved.
I do sense your desire to somehow create an actual pigment pattern from text, to
be used like any other POV-ray pattern. I wouldn't know how to do that-- but as
a practical matter, it seems to me that Leroy's object pattern idea would
fulfill the goal, simply by scaling it VERY large in z. 'Infinitely' long, so to
speak. And the result can use actual colors.
I have attached a test scene; that's the first example.
My 2nd example is more involved, and makes use of a 'function image'-- which
produces an image_map of the text object. By nature, it is 'infinitely long' in
z, just like any other simple image_map application. But it has a problem, due
to one of the various function uses (probably the OBJ_PATT_TO_FUNC): The result
is strictly grayscale. I've tried different ways of adding colors at various
places, but they all fail. Even adding an inline color_map after
image_map{
function 600,600 {OBJ_PATT_TO_FUNC(x,y,z).green}
doesn't work like it usually does for averaged color functions, fatal error.
Maybe there is *some* other way of adding colors that I don't yet grasp.
Anyway, if you feel like experimenting, have fun with the code.
Post a reply to this message
Attachments:
Download 'tester for be text-to-pattern question 2_23_25.pov.txt' (2 KB)
|
 |