|
|
Marc Cuypers <mc-### [at] pandorabe> wrote:
> What I need is text flowing on a plane or curve.
I'm still a bit confused whether you want real 3D letter objects
(as produced by the 'text' primitive) or if it's enough to bet a pigment
with your text, which is then transformed so that it follows a curve.
(Often the latter case is what one needs because real 3D letter objects
seldom have a real use, except for special effects.)
If you want your 3D letter objects to follow some curved path, you'll
have to create individual letters and rotate/translate them so that they
follow the path. However, this will not deform the individual letters.
There's no easy way in POV-Ray to get deformed 3D letter objects. You'll
probably need an external tool which generates eg. triangle meshes for
this.
If it's enough to get a pigment with your letters, then you can use
the 'text' object to create an object pattern, use this pattern to create
a pattern function and then use for example a spline function to deform
this pattern function. It is possible in POV-Ray 3.5 to deform a pattern
function according to a spline, even though I don't remember the specifics.
You can then use this deformed pattern function as a pattern to create
the pigment (or texture, or whatever).
It's not trivial, but it can be done.
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
|