|
|
A couple of things.
Careful with that translator. ;)
You need to use a pigment_pattern to make the plane patterned with the text.
See how I calculated the string length and used that to scale the repeat warp.
Then you need a color map to pigment the text (which is now formally the parts
of the plane corresponding to the 'inside' of the object pattern), and the plane
(which is now formally the rest of the plane corresponding to the 'outside' of
the object pattern)
The text needs to be scaled to be thick in the z direction, and then shifted
back to center it.
I haven't gotten around to implementing WP's suggestion to infinitely scale it
with a function.
This is also very quick just to show you the basics - you'll probably want to
align the pigment pattern with the plane so the text doesn't look like Star Wars
or Dick Balaska's epic 30-year movie intro.
#version 3.7;
global_settings {assumed_gamma 1.0}
// text on a plane Bald Eagle May 2018
#include "colors.inc"
#include "functions.inc"
#include "strings.inc"
sky_sphere {pigment {rgb <1, 1, 1>*0.2}}
camera {
location <0, 0, -50> // position & direction of view
look_at <0, 0, 0>
right x*image_width/image_height // horizontal size of view
up y // vertical size of view
}
light_source {<25, 25, -150> color White}
#declare Message = "POV-RAY 3.0";
#declare Length = strlen(Message)/1.9;
#declare text1 =
text {
ttf "timrom.ttf" Message 100, 0
pigment { Red }
translate -z*50
}
plane {<0,-10,-2>, 4
texture{
pigment{
pigment_pattern{
object{text1}
warp {repeat x*Length}
warp {repeat y}
} // end pigment pattern
color_map {
[0.0 rgb <0, 1, 0>]
[1.0 rgb <0, 0, 1>]
} // end color_map
} // end pigment
} // end texture
}
Post a reply to this message
|
|