Hey Ben

no, this is not possible in f10 - using the drawTriangles method (which this
does, encapsulated inside a GraphicsData object) to get perspective correct
textures automatically disables the matrix property in the fill.

however, you can scale a bitmapmaterial (get it to tile, rotate etc) by
using the TransformBitmapMaterial class. Just check the SaltFlatsFerrari
demo in the flash10 demos folder (or zip file) and you'll see how it's done.

cheers

Rob

On Mon, Jul 27, 2009 at 4:03 PM, ben <[email protected]> wrote:

>
> For those who used to have a look at the AbstractRenderSession class
> v3.3.3, in the method:
>
>  public function renderTriangleBitmapF10(bitmap:BitmapData,
> vertices:Vector.<Number>, uvtData:Vector.<Number>, smooth:Boolean,
> repeat:Boolean, layerGraphics:Graphics = null,scale:Boolean =
> false):void
>        {
>                if (!layerGraphics && _layerDirty)
>                        createLayer();
>
>
>                fill.bitmapData = bitmap;
>                fill.repeat = true;
>                fill.smooth = smooth;
>
>                path.vertices = vertices;
>                path.uvtData = uvtData;
>
>                        if (layerGraphics) {
>                                layerGraphics.lineStyle();
>                                layerGraphics.drawGraphicsData(drawing);
>                        } else {
>                                graphics.lineStyle();
>                                graphics.drawGraphicsData(drawing);
>                        }
>        }
>
> I should be able to change the drawing scale per face by addin:
> as fill is a GraphicsBitmapFill object
> fill.matrix = new Matrix();
> fill.matrix.scale(.2,.2);
>
> but nothing changes ??? any idea ?




-- 
Rob Bateman
Flash Development & Consultancy

[email protected]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to