POV-Ray : Newsgroups : povray.newusers : Alphabet Blocks : Re: Alphabet Blocks Server Time
29 Jul 2024 22:26:50 EDT (-0400)
  Re: Alphabet Blocks  
From: Daniel
Date: 6 Feb 2005 16:06:28
Message: <420686d4$1@news.povray.org>
Plus.  I have some vector art that i wish to use on one face of the block. 
I need help importing it.  TY!
"Ian Gilmour" <ian### [at] igilmour_dot_pluscom> wrote in message 
news:4206850a$1@news.povray.org...
>
> "Daniel" <new### [at] hotmailcom> wrote in message 
> news:42066ccb$1@news.povray.org...
>>I would like to create those little wooden alphabet blocks that we all 
>>used when we were a child.  I am figuring somethings out.  But if someone 
>>would be kind enough, I would like to see a sample on.  I would be 
>>grateful.  The face with the letter should be imported from an image file 
>>and made 3d looking.  Thanks.  Email me at new### [at] hotmailcom
>>
>>
> Something like this?
>
> #declare kidcube = object {
>  Round_Box (<-1, -1, -1>  // one corner position <X1 Y1 Z1>
>                < 1,  1,  1>  // other corner position <X2 Y2 Z2>
>                .1
>                0)
>       texture{
>                T_Wood10
>                normal { wood .5 scale 0.2 turbulence 0.01}
>                finish { ambient 0.1 diffuse 0.9 phong 1 }
>                rotate<60,0,45> scale 0.125
>              }
> }
>
> #macro toy_cube (cubecolour, lettercolour, letter)
> difference {
>  object {kidcube pigment { color cubecolour }  }
>  object {
>        text {
>                ttf "Arlrdbd.ttf" letter .15, 0
>                scale 2
>                translate <-.6,-.65,-1.2>
>        texture{
>                T_Wood10
>                pigment { color lettercolour }
>                normal { wood 0.5 scale 0.2 turbulence 0.01}
>                finish { ambient 0.1 diffuse 0.9 phong 1 }
>                rotate<60,0,45> scale 0.125
>              }
>         }
>  }
> }
> #end
> object {  toy_cube (Red, Blue, "A") rotate -40*y translate <0, 1, 1 > 
> scale 1}
>
> cheers,
>
> Ian G.
>
>


Post a reply to this message

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