![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <36533ae4.0@news.povray.org>, "Patrick Dugan"
<pat### [at] usti com> wrote:
>Does anyone know a way to create "rounded off" text?
>When I create a text object using a TTF the edges of the letters are sharp
>and I would like to create a rounded or smooth edge to the letters. Is
>there a command/parameter or some way to do this?
If you mean beveled text, try the following macro. The code is modified
from some that Michael Lundahl posted to
comp.graphics.rendering.raytracing a few months ago. 'nbr_of_objects' is
actually the 'smoothness' of the beveling; think of it as anti-aliasing.
bevel_text("Courier","I Want My MTV",0.02, 1.0, 10)
//creates beveled text
#macro bevel_text (bevelFont, bevelText, bevel_depth, text_depth,nbr_of_objects)
union {
#local i = 0;
#while (i < 1)
//This is the bevel itself
text {
ttf bevelFont, bevelText, bevel_depth, <bevel_depth,0,0>
matrix < 1, 0, 0,
0, 1, 0,
cos(i*2*pi), sin(i*2*pi), 1,
0, 0, 0 >
}
//This is what is behind the bevel.
//Set text_depth to 0 if you only want the bevel.
#if (text_depth > 0)
text {
ttf bevelFont, bevelText, text_depth, <bevel_depth,0,0>
translate <cos(i*2*pi)*bevel_depth,
sin(i*2*pi)*bevel_depth,
bevel_depth>
}
#end
#declare i = i + 1/nbr_of_objects;
#end
}
#end
jer### [at] hoboes com
http://www.hoboes.com/jerry/ e-mail hel### [at] hoboes com
What Your Children Are Doing: http://www.hoboes.com/html/NetLife/Children/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Patrick Dugan wrote:
>
> Does anyone know a way to create "rounded off" text?
> When I create a text object using a TTF the edges of the letters are sharp
> and I would like to create a rounded or smooth edge to the letters. Is
> there a command/parameter or some way to do this?
>
> --
> ----------------------------------------------------------
> Patrick Dugan
> ----------------------------------------------------------
Not my invention and not a very fast method but easy to tweak:
use a graphics program like PaintShop to create an image of the text, blur it,
then use that as a heightfield. Use the water level to cut of the background.
Use the same heightfield inversed to give the text a backside.
Not long ago there was an example doing this in the binaries-images group (with
the SGI-logo), but I can't remember by who.
Good luck,
Remco
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>Patrick Dugan wrote:
>>
>> Does anyone know a way to create "rounded off" text?
>> When I create a text object using a TTF the edges of the letters are sharp
>> and I would like to create a rounded or smooth edge to the letters. Is
>> there a command/parameter or some way to do this?
If what you are talking about is like "beveled" text, go to dejanews and
look for bevel in the POV-Ray newsgroup. There are at least two examples
there, one for POV 3.0 and one for POV 3.1.
Jerry
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Jerry wrote:
> If what you are talking about is like "beveled" text, go to dejanews and
> look for bevel in the POV-Ray newsgroup. There are at least two examples
> there, one for POV 3.0 and one for POV 3.1.
>
> Jerry
There better not be any reference to a pov-ray newsgroup
at dejanews. This is a closed server and does not appear
on usenet. If it does someone should report it to the povray
admin team immediatly. Perhaps you mean c.g.r.r. or one of
the other subject groups on this server ?
Ken Tyler
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Dejanews accumulated an archive from the period when there
was a USENET leak on the povray news server. This was later
currected, so the Dejanews archive terminates in September.
Dan
Ken wrote:
>
> Jerry wrote:
>
> > If what you are talking about is like "beveled" text, go to dejanews and
> > look for bevel in the POV-Ray newsgroup. There are at least two examples
> > there, one for POV 3.0 and one for POV 3.1.
> >
> > Jerry
>
> There better not be any reference to a pov-ray newsgroup
> at dejanews. This is a closed server and does not appear
> on usenet. If it does someone should report it to the povray
> admin team immediatly. Perhaps you mean c.g.r.r. or one of
> the other subject groups on this server ?
>
> Ken Tyler
--
http://www.flash.net/~djconnel/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <36646603.31F68562@pacbell.net>, Ken <tyl### [at] pacbell net> wrote:
>Jerry wrote:
>> If what you are talking about is like "beveled" text, go to dejanews and
>> look for bevel in the POV-Ray newsgroup. There are at least two examples
>> there, one for POV 3.0 and one for POV 3.1.
>
> There better not be any reference to a pov-ray newsgroup
>at dejanews. This is a closed server and does not appear
>on usenet. If it does someone should report it to the povray
>admin team immediatly. Perhaps you mean c.g.r.r. or one of
>the other subject groups on this server ?
I meant comp.graphics.rendering.raytracing. Which is not a POV-Ray
newsgroup (although POV-Ray is on topic within it) and I have no idea why
I used that phrase.
Jerry
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Ken is getting sloppy in his high output volume.
Of course there are references to news.povray.org in dejanews. A quick check will
reveal
that. They were archived during the leak, which was acknowleged and fixed
by the administrators. But it will take years for that section of the archive to
be purged.
Dan
Jerry wrote:
>
> In article <36646603.31F68562@pacbell.net>, Ken <tyl### [at] pacbell net> wrote:
>
> >Jerry wrote:
> >> If what you are talking about is like "beveled" text, go to dejanews and
> >> look for bevel in the POV-Ray newsgroup. There are at least two examples
> >> there, one for POV 3.0 and one for POV 3.1.
> >
> > There better not be any reference to a pov-ray newsgroup
> >at dejanews. This is a closed server and does not appear
> >on usenet. If it does someone should report it to the povray
> >admin team immediatly. Perhaps you mean c.g.r.r. or one of
> >the other subject groups on this server ?
>
> I meant comp.graphics.rendering.raytracing. Which is not a POV-Ray
> newsgroup (although POV-Ray is on topic within it) and I have no idea why
> I used that phrase.
>
> Jerry
--
http://www.flash.net/~djconnel/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Dan Connelly wrote:
>
> Ken is getting sloppy in his high output volume.
Say WHAT ? I thought it was a fair and reasonable warning and
also appended the statement saying I thought Jerry had simply
made a mistake in his reference to the newgroup in question.
It appears I have been vendicated since that is indeed what
heppened.
> Of course there are references to news.povray.org in dejanews. A quick check will
reveal
> that. They were archived during the leak, which was acknowleged and fixed
> by the administrators. But it will take years for that section of the archive to
> be purged.
>
> Dan
It is because of that snafu that I took the defensive on the
Pov teams behalf.
Getting sloppy my rendered tush !
--
Ken Tyler
tyl### [at] pacbell net
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Ken wrote:
>
> It is because of that snafu that I took the defensive on the
> Pov teams behalf.
>
> Getting sloppy my rendered tush !
Ahh -- you said there should be "no reference" to povray newsgroups....
I did a quick search for text references as follows :
http://www.dejanews.com/dnquery.xp?ST=PS&QRY=text&defaultOp=AND&DBS=1&format=terse&showsort=score&maxhits=25&LNG=ALL&subjects=&groups=povray.*&authors=&fromdate=&todate=
... plenty of matches. It is true there should be no references to recent articles,
but
I still maintain your statement was a bit hasty.
Granted -- you were correct that the original recommendation was a typo. I'm just
being picky because I have too much to do at work and need to get out my frustrations
:).
Dan
--
http://www.flash.net/~djconnel/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Dan Connelly wrote:
> I still maintain your statement was a bit hasty.
I remember clearly that I typed it slowly.
> Granted -- you were correct that the original recommendation was a typo. I'm just
> being picky because I have too much to do at work and need to get out my
frustrations
Just keep saying to yourself "I am not a machine ! I am not a machine !".
--
Ken Tyler
tyl### [at] pacbell net
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |