oups sorry i write my original code > so my plane are 747px height and m y texture 1494px
On 24 avr, 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 negative offset, 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
