Yeah, that makes sense. Thanks.

My project has things layed out in 2D as well as 3D, so I'll probably try and 
wire it up so that I draw the 2D version after I've resized it, before I render 
the 3D version.

I forgot about doing it this way, but I guess I wanted to avoid it because it 
goes against my architecture. You've got to do what you have got to do :)



On Tue, 29 Dec 2009 12:05:18 -0800, Peter Kapelyan <[email protected]> wrote:

Whoops, Movie Material, that may be tough.

You might need to create a hidden MC with a mask that you control the size
according to the size of the plane, and draw just that part using draw().
Then you can take that bitmap and feed it to a BitmapMaterial each time your
plane changes size.

Let me know if it makes sense.

-Pete

On Tue, Dec 29, 2009 at 3:00 PM, Peter Kapelyan <[email protected]> wrote:

Offhand, an easy way may be to use a TransformBitmapMaterial and come up
with some calculation for the materials scaleX,Y and offsetX,Y, according to
the scale of the plane that you feed that calculation.

 If I had some time (I don't sorry) I would give it a shot, but I don't
think it should take more than 30 mins - an hour of messing with the
numbers.

Let me know if it works out for you.

-Pete



On Tue, Dec 29, 2009 at 1:06 PM, Joshua Granick <[email protected]>wrote:

I want to resize a plane without squishing its material. Is there a way to
do that? I'm using a MovieMaterial. I'm okay with using a clipping mask of
some kind, but I'm not sure how to do that on an object level. I know how to
add a clipping mask for a View, but that doesn't help me in this case.

Thanks in advance for the help!




--
___________________

Actionscript 3.0 Flash 3D Graphics Engine

HTTP://AWAY3D.COM



Reply via email to