|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
iceqb <nomail@nomail> wrote:
> Didn't think about that, but then I would have to declare the letter before
> using it in the difference
Correct.
--
- Warp
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Wasn't it iceqb who wrote:
>Warp <war### [at] tagpovrayorg> wrote:
>
>> min_extent() and max_extent()
>
>Didn't think about that, but then I would have to declare the letter before
>using it in the difference, i don't suppose there's a way to do it in the
>text {..} block?
Not in official POV, but there are h_align_center and v_align_center
keywords in MegaPOV.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Mike Williams <nos### [at] econymdemoncouk> wrote:
> Not in official POV, but there are h_align_center and v_align_center
> keywords in MegaPOV.
Aren't they kind of obsolete? It isn't much more difficult to do the
same with the extents functions.
--
- Warp
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Wasn't it Warp who wrote:
>Mike Williams <nos### [at] econymdemoncouk> wrote:
>> Not in official POV, but there are h_align_center and v_align_center
>> keywords in MegaPOV.
>
> Aren't they kind of obsolete? It isn't much more difficult to do the
>same with the extents functions.
The extents functions were there first, but the MegaPOV text alignment
options keep getting reinvented. Over time MegaPOV has had "position 2"
and "align_center" syntax for text centring as well as the current
"h_align_center"/"v_align_center" syntax. I guess some people feel that
there's a need for it.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
iceqb wrote:
> Warp <war### [at] tagpovrayorg> wrote:
>
>
>> min_extent() and max_extent()
>
>
> Didn't think about that, but then I would have to declare the letter before
> using it in the difference, i don't suppose there's a way to do it in the
> text {..} block?
Try this:
#local txtL=text { ttf FontName, "A",1,0 }
object { txtL
translate -(min_extent(txtL)+max_extent(txtL))/2
}
Regards,
John
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Mike Williams <nos### [at] econymdemoncouk> wrote:
> Not in official POV, but there are h_align_center and v_align_center
> keywords in MegaPOV.
Are these special text functions still in MegaPOV 1.2.1, I didn't know.
Thanks for the advice!
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Wasn't it iceqb who wrote:
>Mike Williams <nos### [at] econymdemoncouk> wrote:
>> Not in official POV, but there are h_align_center and v_align_center
>> keywords in MegaPOV.
>
>Are these special text functions still in MegaPOV 1.2.1, I didn't know.
>Thanks for the advice!
They're in 1.2, I've not checked 1.2.1 but it's very unlikely that
functions would get deleted from a minor level change.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
John VanSickle <evi### [at] hotmailcom> wrote:
> Try this:
>
> #local txtL=text { ttf FontName, "A",1,0 }
>
> object { txtL
> translate -(min_extent(txtL)+max_extent(txtL))/2
> }
looks good, my code is a little dirtier:
----code
#macro WoodBlock(Letter, BlockColor)
#declare LetObj = text {
ttf "AdLibRg_.ttf", Letter, .2, 0
rotate 90*y
scale 1.5
texture {
pigment { BlockColor }
finish { phong 1 }
normal { Norm_W }
}
}
#declare Center = max_extent(LetObj)-min_extent(LetObj);
difference {
object {
IW_Plank_RoundW(18, 2, 2, 2, 4, 2, 0.1, 0.004, P_CM_IW_01, Fin_W, Norm_W,
1)
translate -z-y
}
object {
LetObj
translate <-max_extent(LetObj).x , -Center.y , Center.z>/2
}
}
#end
----code
I used Christoph's IsoWood macros btw
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp <war### [at] tagpovrayorg> wrote:
> Correct.
Thanks for the help, you can view the final result here:
http://www.deviantart.com/view/25888579/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Mike Williams <nos### [at] econymdemoncouk> wrote:
> They're in 1.2, I've not checked 1.2.1 but it's very unlikely that
> functions would get deleted from a minor level change.
yep, I checked the documentation, still in.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |