|
![](/i/fill.gif) |
Felbrigg wrote:
> Very Nice, How'd you do the text?
Lettres are stored in an array and a while loop take each of them,
translate and rotate creating an union used in CSG's difference.
The problem is that each lettres don't use the same space ("i" take less
than "m") so i choose to create another array populated with rotation
values.
Here is a sample code (in hope that's clearer than my poor english) :
#declare MyArray = array[12]; #declare Mydecal = array[12];
#declare MyArray[0]="D"; #declare Mydecal[0] = 0;
#declare MyArray[1]="E"; #declare Mydecal[1] = Mydecal[0]+10;
#declare MyArray[2]="N"; #declare Mydecal[2] = Mydecal[1]+10;
#declare MyArray[3]="I"; #declare Mydecal[3] = Mydecal[2]+10;
#declare MyArray[4]="S"; #declare Mydecal[4] = Mydecal[3]+7.5;
#declare MyArray[5]="&"; #declare Mydecal[5] = Mydecal[4]+10;
[...]
#declare i = 0;
#declare nom = union {
#while(i<12)
text {
ttf "../TTF/courbd.ttf", MyArray[i], 1, 0
scale 0.2
translate <0,0.182,0>
translate <0,0,.521>
rotate y*Mydecal[i]
}
#declare i = i+1;
#end
}
Quite ugly but... it works :)
--
Denis Bodor
http://www.lefinnois.net Irc : Lefinnois
Post a reply to this message
|
![](/i/fill.gif) |