POV-Ray : Newsgroups : povray.general : Bent text? : Re: Bent text? Server Time
19 Nov 2024 15:17:26 EST (-0500)
  Re: Bent text?  
From: Chaps
Date: 14 Feb 2002 08:30:55
Message: <3c6bbc0f$1@news.povray.org>
Hi Hershel,

I can propose you something that worked for one of my picture, move and
place each letter individualy. It is painfull when writing the scene, but
efficient at rendering. I used the following macro to place each letter. It
can be automated.

//Macro
#macro MDepTexte(Ax)
#declare DepTexte = transform {
        scale 1.5
        rotate 90*z
        translate <0,0,-4>
        rotate Ax * x
        translate <0,0,4>
        translate <-7,-2,-1>}
transform DepTexte
#end

// usage: to write 3 times the word Spheres
#declare Angle = 16;
#declare AngOff = -120;
#declare i =0;

#while (i<3)

// create a TrueType text shape
text
{
  ttf
  "couri.ttf",
  "S",
  0.5,
  0
  MDepTexte(-3*Angle+AngOff)
  texture { T_Stone27 scale 2 }
}
text
{
  ttf
  "couri.ttf",
  "p",
  0.5,
  0
  MDepTexte(-2*Angle+AngOff)
  texture { T_Stone27 scale 2 }
}
text
{
  ttf
  "couri.ttf",
  "h",
  0.5,
  0
  MDepTexte(-1*Angle+AngOff)
  texture { T_Stone27 scale 2 }
}
text
{
  ttf
  "couri.ttf",
  "e",
  0.5,
  0
  MDepTexte(0*Angle+AngOff)
  texture { T_Stone27 scale 2 }
}
text
{
  ttf
  "couri.ttf",
  "r",
  0.5,
  0
  MDepTexte(1*Angle+AngOff)
  texture { T_Stone27 scale 2 }
}
text
{
  ttf
  "couri.ttf",
  "e",
  0.5,
  0
  MDepTexte(2*Angle+AngOff)
  texture { T_Stone27 scale 2 }
}
text
{
  ttf
  "couri.ttf",
  "s",
  0.5,
  0
  MDepTexte(3*Angle+AngOff)
  texture { T_Stone27 scale 2 }
}

#declare AngOff = AngOff + 120;
#declare i = i + 1;

#end // while

"Hershel Robinson" <her### [at] yahoocom> wrote in message
news:3c6bb80e@news.povray.org...
> I would like to model a column with words engraved or carved into or out
of
> (i.e. protruding from) the column.  I don't know how to create 3D letters
> which are curved to match the column, however.
>
> The hard way would be to use Chris Colefax's Bend include file.  Hard in
> terms of render time--I have more than one column with unique text.  I
would
> like to ask if anyone knows of an easier way to accomplish this.
>
> Thanks,
> Hershel
>
>


Post a reply to this message

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