使用papervision3d在立方体上应用抗锯齿文本作为纹理的最佳技术是什么?
制作动态文本字段,将其转换为moviematerial,然后将其应用于立方体的面。
使用任何图片编辑器设计位图并制作 bitmapFileMaterial 以应用于立方体的面。
请有任何其他建议。
使用papervision3d在立方体上应用抗锯齿文本作为纹理的最佳技术是什么?
制作动态文本字段,将其转换为moviematerial,然后将其应用于立方体的面。
使用任何图片编辑器设计位图并制作 bitmapFileMaterial 以应用于立方体的面。
请有任何其他建议。
// create your text field and set its content.
var t:TextField = new TextField();
t.text = "Hello world!";
// create a BitmapData of your wished width and height
var bitmap:BitmapData = new BitmapData(100,100);
// Fill bmp with the content of your TextField.
//It's as if you took a picture of t.
bitmap.draw(t);
// Create a material with the resulting BitmapData and you can use it on any DisplayObject3D!
var material:BitmapMaterial = new BitmapMaterial(bitmap);
material.smooth = true;
material.doubleSided = true;
// Create cube
var cube:Cube = new Cube(material)