[Papervision3D] VectorLetter3D height and width settings
David Di Biase
dave.dibiase at gmail.com
Sun Jul 19 10:59:14 PDT 2009
Well I just checked, the scale value does indeed work. I should have
realised that, apologies. From what I remember there ARE height/width values
on that class....oh well.
On Sun, Jul 19, 2009 at 1:43 PM, David Di Biase <dave.dibiase at gmail.com>wrote:
> I'm not using Text3D, I'm using VectorLetter3D. The first from what I
> understand generates a string the second generates a character. That class
> *does* have height and width properties.
>
> Dave
>
>
> On Sun, Jul 19, 2009 at 1:37 PM, Jeff Winder <info at jeffwinder.nl> wrote:
>
>>
>> height isn't a setter in the Text3D class, so you cannot set the height of
>> a
>> vector letter like this. I think the only way to work around this is
>> assigning different letters to different text3D instances and then scale
>> them using the scale property.
>>
>> Jeff.
>>
>>
>>
>> David Di Biase wrote:
>> >
>> > Hi there,
>> >
>> > I'm trying to create taller letters for my application but whenever I
>> set
>> > the height or width values in my code, the class doesn't seem to take it
>> > into effect when generating the proportions. Here is my code:
>> >
>> > textMat = new Letter3DMaterial(0x0066CC);
>> > textMat.doubleSided = true;
>> >
>> > textFont = new Eurostile();
>> >
>> > text = new VectorLetter3D("S", textMat, textFont);
>> > text.height = 350;
>> > view.scene.addChild(text);
>> >
>> > text = new VectorLetter3D("A", textMat, textFont);
>> > text.height = 150;
>> > text.width = 100;
>> > text.x = 60;
>> > view.scene.addChild(text);
>> >
>> > Both S and A appear on stage next to each other but at the same exact
>> > size.
>> > Weird.
>> >
>> > Maybe I'm missing something important? Heh.
>> >
>> > Dave
>> >
>> > _______________________________________________
>> > Papervision3D mailing list
>> > Papervision3D at osflash.org
>> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/VectorLetter3D-height-and-width-settings-tp24547425p24559093.html
>> Sent from the Papervision3D mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D at osflash.org
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090719/21a82f8b/attachment.html>
More information about the Papervision3D
mailing list