TextureProjector in Beta 4

Software: Away3D 4.x

Mike Samuel, Newbie
Posted: 23 June 2012 01:42 AM   Total Posts: 30

Hi all,
Is there complete working example of TextureProjector use?
I managed to get the projection working on a basic level using this thread over here: /viewthread/1802/

The outcome looks nothing like the image I use in the projection.
I project a circle / triangle, and all I see is bend lines on the target mesh :$
Google is silent on the matter, besides this forum

Here is what I do so far.

material3 = new ColorMaterial(0xcccccc);
var _imageData:BitmapData = new BitmapData(128, 128);
_imageData.draw(new aaabmp(), null, null, null, null, true);
_tp = new TextureProjector(new BitmapTexture(_imageData));
_view.scene.addChild(_tp); //not sure if I need this, it works without

material3.addMethod(new ProjectiveTextureMethod(_tp));
var _plane:PlaneGeometry = new PlaneGeometry(2048, 1024, 4, 4, false);
mesh = new Mesh(_plane, material3);
mesh.geometry.scaleUV(4, 4);
_plane = null;
_view.scene.addChild(mesh);

Anyone any idea’s?

Thank you

Andreas

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X