flash on 2009-12-26
♥0 |
Line 25 |
Modified 2009-12-26 10:21:03 |
MIT License
archived:2017-03-20 08:59:23
ActionScript3 source code
/**
* Copyright albatrus_jp ( http://wonderfl.net/user/albatrus_jp )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/mpRa
*/
package {
import flash.events.*;
import flash.utils.*;
import org.papervision3d.materials.*;
import org.papervision3d.materials.special.*;
import org.papervision3d.typography.fonts.*;
import org.papervision3d.typography.*;
import org.papervision3d.view.*;
public class Font3D extends BasicView {
public function Font3D():void{
var material:Letter3DMaterial = new Letter3DMaterial(0xff3399,0.3);
material.doubleSided = true;
var font:HelveticaMedium = new HelveticaMedium();
var word:Text3D = new Text3D("Parpervision3D",font,material);
scene.addChild(word);
startRendering();
addEventListener(Event.ENTER_FRAME,loop);
}
private function loop(e:Event):void{
camera.x = 500* Math.sin(getTimer() /1000);
camera.y = 500* Math.cos(getTimer() /1000);
camera.z = 500* Math.sin(getTimer() /2500);
}
}
}