POV-Ray : Newsgroups : povray.newusers : Bevelled text macro Server Time
23 Nov 2024 15:12:17 EST (-0500)
  Bevelled text macro (Message 1 to 5 of 5)  
From: DGClarke
Subject: Bevelled text macro
Date: 13 Jun 2013 19:05:00
Message: <web.51ba4ef39e2f4b799125bdc0@news.povray.org>
cannot get the right syntax for this macro
Have tried a number of different ways
this is one of them

#macro Bevelled_Text(timrom, Wonder,4, 25, 3, 2, -1 )

any ideas what I am doing wrong
shapes.inc


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Bevelled text macro
Date: 13 Jun 2013 20:21:20
Message: <51ba6200@news.povray.org>
DGClarke wrote:

> #macro Bevelled_Text(timrom, Wonder,4, 25, 3, 2, -1 )

1. Keyword #macro is only for defining a macro, not for calling it

2. My version of shapes.inc has 8 parameters, you seem to be missing one

    #macro Bevelled_Text(Font, String, Cuts, BevelAng,
                         BevelDepth, Depth, Offset, UseMerge)

    UseMerge should be true if for transparent material, otherwise false

3. Strings require quotes and it may be the font name requires
    extension: "timrom.ttf", "Wonder".

4. Also, best to try a unbevelled text object first

    text {ttf Font String Depth, Offset}

    Then you can see how big it is and use appropriate values
    for bevelling. Text height will be of order 1.0 so your
    values may be too large.


Post a reply to this message

From: Alain
Subject: Re: Bevelled text macro
Date: 14 Jun 2013 13:41:50
Message: <51bb55de$1@news.povray.org>

> DGClarke wrote:
>
>> #macro Bevelled_Text(timrom, Wonder,4, 25, 3, 2, -1 )
>
> 1. Keyword #macro is only for defining a macro, not for calling it
>
> 2. My version of shapes.inc has 8 parameters, you seem to be missing one
>
>     #macro Bevelled_Text(Font, String, Cuts, BevelAng,
>                          BevelDepth, Depth, Offset, UseMerge)
>
>     UseMerge should be true if for transparent material, otherwise false
>
> 3. Strings require quotes and it may be the font name requires
>     extension: "timrom.ttf", "Wonder".
>
> 4. Also, best to try a unbevelled text object first
>
>     text {ttf Font String Depth, Offset}
>
>     Then you can see how big it is and use appropriate values
>     for bevelling. Text height will be of order 1.0 so your
>     values may be too large.

Another thing, your offset is -1, whitch get expanded to <-1, -1, -1>.
The macro then impose a value of zero to the z component.

This effectively shift your characters left and down one unit from the 
preceding one. This will NOT place your characters in a vertical line as 
they probably don't all have the same width. Most fonts are 
proportional. "i" and "." are very narow, while "W" and "M" are prety 
whide...

It best to start with an offset of 0. If you use a non-zero value, you 
should provide a full vector.


Alain


Post a reply to this message

From: DGClarke
Subject: Re: Bevelled text macro
Date: 16 Jun 2013 16:30:00
Message: <web.51be1f8dd117c337c62f57420@news.povray.org>
Thankyou for the help...this works

Bevelled_Text("timrom.ttf", "Wonder",1, 1, 1, 1, 0, false )


Christian Froeschlin <chr### [at] chrfrde> wrote:
> DGClarke wrote:
>
> > #macro Bevelled_Text(timrom, Wonder,4, 25, 3, 2, -1 )
>
> 1. Keyword #macro is only for defining a macro, not for calling it
>
> 2. My version of shapes.inc has 8 parameters, you seem to be missing one
>
>     #macro Bevelled_Text(Font, String, Cuts, BevelAng,
>                          BevelDepth, Depth, Offset, UseMerge)
>
>     UseMerge should be true if for transparent material, otherwise false
>
> 3. Strings require quotes and it may be the font name requires
>     extension: "timrom.ttf", "Wonder".
>
> 4. Also, best to try a unbevelled text object first
>
>     text {ttf Font String Depth, Offset}
>
>     Then you can see how big it is and use appropriate values
>     for bevelling. Text height will be of order 1.0 so your
>     values may be too large.


Post a reply to this message

From: DGClarke
Subject: Re: Bevelled text macro
Date: 16 Jun 2013 16:30:01
Message: <web.51be1fb3d117c337c62f57420@news.povray.org>
Thankyou for the help...this works

Bevelled_Text("timrom.ttf", "Wonder",1, 1, 1, 1, 0, false )

Alain <kua### [at] videotronca> wrote:

> > DGClarke wrote:
> >
> >> #macro Bevelled_Text(timrom, Wonder,4, 25, 3, 2, -1 )
> >
> > 1. Keyword #macro is only for defining a macro, not for calling it
> >
> > 2. My version of shapes.inc has 8 parameters, you seem to be missing one
> >
> >     #macro Bevelled_Text(Font, String, Cuts, BevelAng,
> >                          BevelDepth, Depth, Offset, UseMerge)
> >
> >     UseMerge should be true if for transparent material, otherwise false
> >
> > 3. Strings require quotes and it may be the font name requires
> >     extension: "timrom.ttf", "Wonder".
> >
> > 4. Also, best to try a unbevelled text object first
> >
> >     text {ttf Font String Depth, Offset}
> >
> >     Then you can see how big it is and use appropriate values
> >     for bevelling. Text height will be of order 1.0 so your
> >     values may be too large.
>
> Another thing, your offset is -1, whitch get expanded to <-1, -1, -1>.
> The macro then impose a value of zero to the z component.
>
> This effectively shift your characters left and down one unit from the
> preceding one. This will NOT place your characters in a vertical line as
> they probably don't all have the same width. Most fonts are
> proportional. "i" and "." are very narow, while "W" and "M" are prety
> whide...
>
> It best to start with an offset of 0. If you use a non-zero value, you
> should provide a full vector.
>
>
> Alain


Post a reply to this message

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