|
|
Op 16/10/2019 om 19:46 schreef Bald Eagle:
> I made some signs for a W that's still IP, maybe you can play with the code and
> see about expanding on it for your own purposes.
>
>
> #macro LetterSign (_Letter, _Color)
> #local SignWidth = 38;
> #local SignHeight = 24;
> #local TextScale = 22;
> #local RoundSquare = intersection {
> box {<-SignWidth/2, -SignHeight/2, -0.01>, <SignWidth/2 , SignHeight/2,
> -0.125>}
> object {Round_Box(<-SignWidth/2, -SignHeight/2, -1>, <SignWidth/2,
> SignHeight/2, 1>, 2 , 0) scale <1, 1, 1>}
> }
>
> #local Border = difference {
> object {RoundSquare scale <0.9, 0.9, 1.1>}
> object {RoundSquare scale <0.8, 0.8, 2>}
> }
>
> #local Object1 = text {ttf "GILB____.TTF", _Letter, 1, <0, 0> scale TextScale
> translate <-8, -7, -0.5>}
> #local Object2 = object {Border}
>
> #local Texture1 =
> texture {
> pigment {
> object {Object1
> color rgb <1, 1, 1>*0.5 // outside
> color rgb _Color //color rgb <1, 0, 0>*0.5 // inside
> } // object
> } // pigment
> }
> #local Texture2 =
> texture {
> pigment {
> object {Object2
> color rgbf <1, 1, 1, 1> // outside
> color rgb _Color //color rgb <0, 1, 0>*0.05 // inside
> } // object
> } // pigment
> }
> object {RoundSquare texture {Texture1} texture {Texture2} translate y*12}
>
> #end // end macro LetterSign
Mmm... I have to investigate this. At first glance, you seem to be doing
what I failed to do one way or another. Thanks!
--
Thomas
Post a reply to this message
|
|