That's strange..
I'm importing the Projector class
import away3d.materials.utils.Projector;
then creates my material
var ballmat:TransformBitmapMaterial;
var pro:project;
var stars:stars_mono=new stars_mono(0,0);
ballmat = new TransformBitmapMaterial(stars);
ballmat.repeat = true;
ballmat.offsetY = 20;
ballmat.scaleX = 0.2;
ballmat.scaleY = 0.2;
ballmat.throughProjection = false;
ballmat.globalProjection = false;
pro = new project(ball, "front");
but I'm getting a compile error
Scene 1, Layer 'Layer 1', Frame 1, Line 83 1180: Call to a possibly
undefined method project.
Scene 1, Layer 'Layer 1', Frame 1, Line 24 1046: Type was not found or
was not a compile-time constant: project.
what am I missing there?
On 19 fév, 20:39, Fabrice3D <[email protected]> wrote:
> away3d.materials.utils.Projectorcould may be help you. Set after projection
> scaleX, scaleY and repeat true on your material.
>
> Fabrice
>
> On Feb 19, 2011, at 20:21, goonzy <[email protected]> wrote:
>
> > Hi all,
>
> > I'm a bit stuck with some kind of simple issue. I'd like to project a
> > bitmap texture on a sphere but I need it to be tiled and prjected
> > orthogonally, not spherically. I tried to use the
> > TransformBitmapMaterial in order to have already the texture repeat
> > itself around the sphere but unsuccessfully.
>
> > Is there a specific thing to do in order to achieve this cause I can't
> > find how using the proposed propeties.
>
> > Thanks in advance