one last question please to close our discution about MovieMaterial:
so i have my plane with the half-top of my movie clip map on it.

Let's imagine that my movie clip is animated on his full size

it's better to set a clipRect to the top of my texture, or  is not
important cause we see only the half-top, so away3d don't redraw the
full clip (i'm looking for the best optimisation) ?
i dont see real difference, so perhaps you know how does it work...

and just to finish, i have note that i can set a "clipRec"t directly
in my  texture declaration. I must use :
textName.clipRect = myRectangle

after my material init, it's normal ?

Thanks you very very much


On 28 avr, 13:20, Fabrice3D <[email protected]> wrote:
> in regard with your last answer i think it's the way you mean, that's
> true ?
> Yes, thats exactly what I ment. Glad you've decoded my english:)
>
> je veux pas te faire péter les plombs, donc je comprendrai que tu ne  
> répondes pas
>
> Y'm faut plus que ca pour les faire péter.
>
> On Apr 28, 2010, at 12:34, Colir <[email protected]> wrote:
>
> > well, i tried a lots of setup in my MovieMaterial declaration...
>
> > the only way that 's work for me to have the half bottom of my
> > movieClip is  to scale my texture by 2 and apply a negative offset
>
> > var summerMatTop:MovieMaterial = new MovieMaterial(summerPlan,
> > {smooth:true,precision:2,lockW:1182,clipRect:bottomMatClip,scaleY:
> > 2,offsetY:-1050});
> > var topPlane = new Plane({material:summerMatTop,width:1182,height:
> > 525,segmentsW:3,segmentsH:3});
>
> > in regard with your last answer i think it's the way you mean, that's
> > true ?
>
> > i dont' want to boring you..
>
> > je veux pas te faire péter les plombs, donc je comprendrai que tu ne
> > répondes pas
>
> > On 27 avr, 22:33, Fabrice3D <[email protected]> wrote:
> >> btw, on my way home, thought about your issue.
> >> I might have been confusing (as usual ) using terms like .5
> >> I ment here that you need "see" on the plane only .5 of the source,  
> >> so it needs to be twice on scale on one axis.
>
> >> using bellow zero you get indeed repeats.
>
> >> I think that with scaleX, on both and use OffsetX to correct the  
> >> second plane. (if its horizontal)
> >> you should be just fine.
>
> >> Hope it helps :)
>
> >> Fabrice
>
> >> On Apr 27, 2010, at 3:53 PM, Colir wrote:
>
> >>> Hi  fabrice,
> >>> im really sorry but i try what you say, and i get the result i
> >>> except...the movieMaterial are tilled...
> >>> here is my code:
>
> >>> var topMatClip = new Rectangle(0,0,1182,525)
> >>> var bottomMatClip = new Rectangle(0,525,1182,1050)
>
> >>> var rainningMatTop:MovieMaterial = new MovieMaterial(rainningPlan,
> >>> {smooth:true,precision:2,lockH:525,clipRect:topMatClip});
> >>> var rainningMatBottom:MovieMaterial = new MovieMaterial
> >>> (rainningPlan,
> >>> {smooth:true,precision:2,lockH:525,clipRect:bottomMatClip,offsetY:
> >>> 525});
>
> >>> var topPlane = new
> >>> Plane
> >>> ({material:summerMatTop,back:rainningMatBottom,bothsides:true,width:
> >>> 1182,height:525,segmentsW:3,segmentsH:3});
> >>> var bottomPlane = new
> >>> Plane
> >>> ({m
> >>> aterial:summerMatBottomBack,
> >>> back:summerMatBottom,bothsides:true,width:
> >>> 1182,height:525,segmentsW:3,segmentsH:3});
>
> >>> wahts wrong with this ?
>
> >>> thanks you very much
>
> >>> On 24 avr, 14:59, Fabrice3D <[email protected]> wrote:
> >>>> MovieMaterial has LockH and W and a  clipRect. Both planes with
> >>>> 500,500 locks. On clip rect with 0,500 on H, the other 500,1000.  
> >>>> Set
> >>>> on second material offsetY to .5.
> >>>> So you have two materials using same mc but clipping is different.
>
> >>>> Note that cliprect defines the region that will be updated.
>
> >>>> Fabrice
>
> >>>> On Apr 24, 2010, at 10:00, Colir <[email protected]> wrote:
>
> >>>>> so the only solution i found is this one:
>
> >>>>> context :
> >>>>> i have 2 plane and one texture as MovieMaterial  to use on it. i  
> >>>>> want
> >>>>> to split my texture.
>
> >>>>> my planes is 500px height and my Movie material is 1000px height.
> >>>>> I want  my bottom texture to be 180° flipped
>
> >>>>> here is my code for the texture :
>
> >>>>> var summerMatTop:MovieMaterial = new MovieMaterial(summerPlan,
> >>>>> {smooth:true,precision:2,lockH:747});
> >>>>> var summerMatBottom:MovieMaterial = new MovieMaterial(summerPlan,
> >>>>> {smooth:true,precision:2,scaleY:-2,offsetY:2988});
>
> >>>>> i dont know if is the best way to do this.
>
> >>>>> Can you give me your feedback ?
>
> >>>>> On 22 avr, 19:04, Colir <[email protected]> wrote:
> >>>>>> hello,
> >>>>>> i'm looking for a solution to give an negative offsetY value to a
> >>>>>> movieMaterial that i use on a plane.
>
> >>>>>> i have two MovieMaterial and one plane.
> >>>>>> My plane is half height from the movieMaterial
>
> >>>>>> The idea is to use the top part of the first MovieMaterial for  
> >>>>>> the
> >>>>>> front, and use the bottom part of the second for the back.
>
> >>>>>> MoviesMaterials must be bigger than the plan (2x plane height),
> >>>>>> because i will invert the part of them during the animation i  
> >>>>>> create
>
> >>>>>> The problem is that when i setup a negativeoffset, the texture is
> >>>>>> tilled, cause i also setup the lockH property to keep aspect  
> >>>>>> ratio of
> >>>>>> the movie clip
>
> >>>>>> here is my code :
>
> >>>>>> var summerPlan:MovieClip = new SummerPlan() as MovieClip;
> >>>>>> var rainningPlan:MovieClip = new RainningPlan() as MovieClip;
>
> >>>>>> var summerMatTop:MovieMaterial = new MovieMaterial(summerPlan,
> >>>>>> {smooth:true,precision:2,lockH:742});
> >>>>>> var rainningMatBottom:MovieMaterial = new MovieMaterial
> >>>>>> (rainningPlan,
> >>>>>> {smooth:true,precision:2,lockH:742,offsetY:-742});
>
> >>>>>> How i can fix this please?
>
> >>>>>> thank you very much.
>
> >>>>>> --
> >>>>>> Subscription settings:http://groups.google.com/group/away3d-dev/
> >>>>>> subscribe?hl=en

Reply via email to