k, I've updated the MovieMaterial and added lockW and lockH to it to
prevent this once and for all
so basically if you set them, no matter how large the mc is, they will
lock on those settings.
you even can set size greater than the source, if you for instance
plan fill the gaps later on. No need to add a rect filled with alpha
to do this.
Also remember the cliprect prop you can set to avoid redraw whole mc
if you know what have changed...
how to use it: (snipet from this little demo)
var sourcemc:MovieClip = new testMC();
var mat1 = new MovieMaterial(sourcemc , {debug:true});
var mat2 = new MovieMaterial(sourcemc, {debug:true, lockW:200,
lockH:200});
var mat3 = new MovieMaterial(sourcemc , {debug:true, lockH:100,
lockW:450});
var p1:Plane = new Plane({width:400, height:300, material:mat1, y:
320} );
var p2:Plane = new Plane({width:400, height:300,
material:mat2} );
var p3:Plane = new Plane({width:400, height:300, material:mat3,
y:-320} );
p1.rotationX = p2.rotationX = p3.rotationX = 90;
this.scene.addChild(p1);
this.scene.addChild(p2);
this.scene.addChild(p3);
here this code in action:
http://www.closier.nl/playground/MovieLock.swf
Available in your favourite svn!
Fabrice
On Aug 30, 2008, at 7:14 AM, charglerode wrote:
Not sure I understand exactly, but I'll describe my setup. I have two
planes that are 1000x815. The bottom plane has the bitmap material
applied which is a 1000x815 bitmap in the library. The top plane has a
movie material applied which is a 1000x815 movieclip in the library.
The movie material contains multiple movieclips which all pieced
together (think of puzzle pieces) are 1000x815. There is no resizing
of any of the materials or the planes. They are one size when created
and never change.
On Aug 29, 1:44 pm, "Peter Kapelyan" <[EMAIL PROTECTED]> wrote:
Ah, ok then.
I have also seen this bug if you change the size of the
MovieMaterial's
Movieclip dimensions after you create the material+object.
For instance if you had a 100x100 Movieclip, and used it as a
material, then
changed it to 200x200 because something moved outside of the original
dimensions int he movieclip, you will probably see this bug.
If that's the case, then there may be some ways around it still...
Let me know if that happens to be the case.
-Pete
On Fri, Aug 29, 2008 at 1:13 PM, charglerode
<[EMAIL PROTECTED]> wrote:
Yeah the planes are not default size, something like 1000 x 815.
On Aug 29, 6:50 am, "Peter Kapelyan" <[EMAIL PROTECTED]> wrote:
I think I've seen this bug...
I think the solution was to set the size of the plane, if you
leave the
plane default size, i think it may happen...
If that doesn't help I'll try to find the file where I had the same
problem!
-Pete
> On Fri, Aug 29, 2008 at 12:17 AM, charglerode
<[EMAIL PROTECTED]>
wrote:
Good suggestion, works great, the paralaxing effect is gone.
However,
now what happens is that the moviematerial has triangles cut out
for
each segment. So if I have a horizontal segment of 6, I'll get 6
triangles cut across the material.
On Aug 28, 1:35 am, tain <[EMAIL PROTECTED]> wrote:
i have seen in some example that complexity of plane can really
fix
some material (texture) issues, but i cant find it now.
try changing:
segmentsW: x, segmentsH: y where x and y would be more than 1.
tain
On Aug 26, 7:20 pm, charglerode <[EMAIL PROTECTED]> wrote:
I have an interesting problem. I have a plane with a
MovieMaterial
and
in the material is a large bitmap with many smaller
movieclips. The
movieclips overlay the bitmap and are aligned to the image. The
problem is that I cant set the precision of the bitmap in the
MovieMaterial so when it's applied the movieclips are fine but
the
bitmap gets distorted. I've tried using two separate planes one
with
the bitmap material and one with the movie material, but I end
up
getting a strong paralaxing effect as the camera moves even
though
both planes have a y difference of 0.1.
Any ideas?
--
___________________
Actionscript 3.0 Flash 3D Graphics Engine
HTTP://AWAY3D.COM <http://away3d.com/>
--
___________________
Actionscript 3.0 Flash 3D Graphics Engine
HTTP://AWAY3D.COM