1
使用papervision3d將反鋸齒文本作爲紋理應用於立方體的最佳技術是什麼?如何在papervision3d中的多維數據集上使用文本作爲紋理?
使動態文本字段,將其轉換爲moviematerial然後將其應用到多維數據集的面孔。
使用任何圖片編輯器設計一個位圖,並將bitmapFileMaterial應用到立方體的面上。
請任何其他建議。
使用papervision3d將反鋸齒文本作爲紋理應用於立方體的最佳技術是什麼?如何在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)
立方需要MaterialList並不重大。不管怎麼說,還是要謝謝你。我會試一下 – 2010-01-19 07:47:27