[Papervision3D] How to render nice Text ?

jerome birembaut jerome.birembaut at gmail.com
Wed Feb 13 02:48:48 PST 2008


Hi,
i try to add some texte in my application and it's crappy,
i know i need to turn the cacheAsBitmap to true and use smooted material but
it's always crappy :D

in this demo of andy it's awesome ( i wanna rock's too :D )
http://lab.zupko.info/TextDemo/ <http://lab.zupko.info/TextDemo/>


i try this :

<http://lab.zupko.info/TextDemo/>            var label:TextField = new
TextField();
            label.selectable=false
            label.autoSize = TextFieldAutoSize.LEFT;
            var format:TextFormat = new TextFormat();
            format.font = "Verdana";
            format.color = 0xFFFFFF;
            format.size = 100;
            label.defaultTextFormat = format;
            label.text="Blablabla";
            label.cacheAsBitmap=true
            var bitmapStuff:BitmapData=new BitmapData(label.width,
label.height,true);
            bitmapStuff.draw( label,null,null,null,null,true);
            var t:BitmapMaterial=new BitmapMaterial(bitmapStuff);
            t.smooth=true;
            var plane:Plane = new Plane( t, label.width, label.height, 6,
2);
            scene.addChild(plane);


---------------------------------------
http://www.shirotokoro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080213/9f31bcfa/attachment-0001.html 


More information about the Papervision3D mailing list