ill make a movie in camstaa tonight and send to your mail tomorrow
morning, btw do you know about waiting for textures to be loaded (ie
bitmapfile) and trigerring events when loading them?

On Apr 21, 2:16 pm, desgraci <[email protected]> wrote:
> my bad, i forgot to tell u can move over the scene with a camera hover
> looking at center, btw i posted that it was some planes in a
> carrousel, and they used both faces and the faces had diferent alpha
> levels.
>
> On Apr 21, 10:13 am, Peter Kapelyan <[email protected]> wrote:
>
> > Well, I tried for you and don't see any bug. I can't see the same problem
> > you have, so maybe try not using zoom?
>
> > Here is a simple swf to show it works, and no bugs:
>
> >http://away3d.com/pete/zoom.swf
>
> > package {
> >     import flash.display.*;
> >     import flash.events.*;
> >     import away3d.core.base.*;
> >     import away3d.core.math.*;
> >     import away3d.containers.*;
> >     import away3d.primitives.*;
> >     import away3d.cameras.*;
> >     import away3d.core.render.*;
> >     import away3d.materials.*;
> >     import away3d.core.utils.*;
> >     public class HelloWorld extends Sprite {
> >         var view:View3D;
> >         var sphereA;
> >         function HelloWorld() {
> >             stage.frameRate=30;
> >             away3dcreate();
> >             addEventListener(Event.ENTER_FRAME,away3dloop);
> >         }
> >         function away3dcreate():void {
> >             addChild(view=new View3D({x:300, y:200}));
> >             sphereA=new Plane({yUp:false,material:Cast.bitmap("smile")});
> >             view.scene.addChild(sphereA);
> >             addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);
> >         }
> >         function away3dloop(event:Event):void {
> >             view.camera.moveTo(sphereA.x,sphereA.y,sphereA.z-5000);
> >             view.render();
> >         }
> >         function mouseWheelHandler(event:MouseEvent):void {
>
> >                view.camera.zoom += (event.delta/3);
>
> >                if (view.camera.zoom<100)
> >                                view.camera.zoom=100;
>
> >                if (view.camera.zoom>500)
> >                                view.camera.zoom=500;
> >          }
> >     }
>
> > }
>
> > -Pete
>
> > On Tue, Apr 21, 2009 at 10:55 AM, desgraci <[email protected]> wrote:
>
> > > ok no problem my friend
>
> > > there u go
>
> > > function mouseWheelHandler(event:MouseEvent):void {
>
> > >                 camera.zoom += (event.delta/3);
>
> > >                 if (camera.zoom<100)
> > >                                camera.zoom=100;
>
> > >                if (camera.zoom>500)
> > >                                camera.zoom=500;
>
> > >                trace(camera.zoom);
> > >  }
>
> > > its the full function, waht i used to prevent the glitch was to ask if
> > > the disk was on scene and block the funciton, at least i hope this
> > > helps someone that doesnt know how to make zoom so all this discussion
> > > be useful XD
>
> > > anyway, im alkso looking for a way to control actions AFTER u have
> > > loaded x amount of assets, is that possible?
> > > ie load an asset of a plane, then put the plane, no before it havent
> > > loaded (white screens)
>
> > > On Apr 20, 12:56 pm, Peter Kapelyan <[email protected]> wrote:
> > > > Hi!
>
> > > > Can you paste the code you used for zoom etc?
>
> > > > I've never used zoom/focus to create a carousel, but I can try for you.
>
> > > > I am interested in the way you used zoom/focus, so that I can find the
> > > > problem you are having, and suggest a solution.
>
> > > > -Pete
>
> > > > On Mon, Apr 20, 2009 at 1:21 PM, desgraci <[email protected]>
> > > wrote:
>
> > > > > hi mr peter
>
> > > > > i was on vacation
>
> > > > > ok about that, i wasnt allowed to send u the .swf until i finish the
> > > > > contract by my boss, that develops with me, i can give u instead
> > > > > pieces of the code,
>
> > > > > for example
> > > > > i make planes and materials
>
> > > > >        p1 = new Plane({width:0, height:0, rotationX:0, rotationY:0, y:
> > > > > 0,material:p1fM,back:p1bM, bothsides:true});
> > > > >        p1.x = 0;
>
> > > > > i make the carrousel like this
>
> > > > > a function called by button:
> > > > >                                        //funcion de ir metiendo poco a
> > > poco
> > > > > el carrusel
> > > > >                                        scene.addChild(carrusel);
> > > > >                                        scene.addChild(disc);
> > > > >                                        scene.addChild(p1);
> > > > >                                        scene.addChild(p2);
> > > > >                                        scene.addChild(p3);
> > > > >                                        scene.addChild(p4);
> > > > >                                        p1fM.alpha=.9;
> > > > >                                        p1bM.alpha=.5;
> > > > >                                        p2fM.alpha=.9;
> > > > >                                        p2bM.alpha=.5;
> > > > > ... so on
> > > > >                                        disc.radius=0;
> > > > >                                        disc.height=0;
> > > > >                                        disc.y=0;
> > > > >                                        disc.segmentsW=0;
> > > > >                                        salt=00;
>
> > > > >  p1.width=p1.height=p1.x=p1.z=p1.y=p1.rotationY=p1.rotationX=0;
> > > > > and so on...
>
> > > > > finish that function the carrusel have some planes
>
> > > > > after that i implemet the function to change the cameraa zoom and when
> > > > > i zoom the faces starts to swap up and down...
>
> > > > > it is only me?
>
> > > > > u cna see how to make a carrousel also in flashmagazine tutorials,
> > > > > thats the ones i learned from XD
>
> > > > > also when i load em on the internet i see white textures always and in
> > > > > some cubes that i put on the carrousel also has the same problems, i
> > > > > was thinking of making an evbent when the textures are loaded now that
> > > > > i see this:
>
> > > > >http://groups.google.com/group/away3d-dev/browse_thread/thread/7e627d.
> > > ..
>
> > > > > On Mar 31, 3:16 pm, Peter Kapelyan <[email protected]> wrote:
> > > > > > I'm not sure I know what you mean about the back face problem, do 
> > > > > > you
> > > > > have a
> > > > > > swf I can see?
>
> > > > > > -Pete
>
> > > > > > On Tue, Mar 31, 2009 at 4:12 PM, desgraci <[email protected]>
> > > > > wrote:
>
> > > > > > > I already was doing that jejeje, maybe a kind of ASCII, but looks
> > > > > > > like, in my research appears to be that it dependes, cause its an
> > > > > > > calculation of the laptop :s.
>
> > > > > > > looks like u said a problem from the adobe guys, but it would be a
> > > > > > > good dev to sell, if u ask me.
>
> > > > > > > btw the glitch i have tried another .swf and still the same
> > > problem,
> > > > > > > looks like a glitch to me, correct me if im wrong, try to make
> > > 2faced
> > > > > > > plane, and zoom in, the back face have problems.
>
> > > > > > > On 31 mar, 10:19, Peter Kapelyan <[email protected]> wrote:
> > > > > > > > One thing maybe you can try is, see if there is a special 
> > > > > > > > keycode
> > > for
> > > > > > > that
> > > > > > > > trackpad scrollbar. Just an idea :/
>
> > > > > > > > -Pete
>
> > > > > > > > On Tue, Mar 31, 2009 at 11:17 AM, Peter Kapelyan <
> > > > > [email protected]
> > > > > > > >wrote:
>
> > > > > > > > > Ah I see,
>
> > > > > > > > > I tried searching on google real quick, but found nothing 
> > > > > > > > > about
> > > > > this. I
> > > > > > > > > think this may be a problem with Actionscript itself.
>
> > > > > > > > > I'm not sure if that would be supported since it's not
> > > technically
> > > > > the
> > > > > > > > > mouse driver operating this scroll function :/
>
> > > > > > > > > It's an interesting problem,  and worth researching but not
> > > sure if
> > > > > > > there
> > > > > > > > > is an answer to this. Anyone?
>
> > > > > > > > > -Pete
>
> > > > > > > > > On Tue, Mar 31, 2009 at 10:53 AM, desgraci <
> > > > > [email protected]
> > > > > > > >wrote:
>
> > > > > > > > >> Ok, first thanks for the help Pete, second,
> > > > > > > > >> i was doing the wrong question :d, i have the probnlem with
> > > the
> > > > > laptod
> > > > > > > > >> due to the fact that i cant get to recognize the vertical
> > > > > scrollbar so
> > > > > > > > >> it can do the zoom function, what im doing and works, with a
> > > > > normal
> > > > > > > > >> mouse is this function:
>
> > > > > > > > >> that was what i meaned with events, looks like the
> > > WheelHandler
> > > > > doesnt
> > > > > > > > >> works on the touch pads.
>
> > > > > > > > >> function mouseWheelHandler(event:MouseEvent):void {
> > > > > > > > >>        if (done==true){
> > > > > > > > >>                camera.zoom += (event.delta/3);
>
> > > > > > > > >>                if (camera.zoom<10)
> > > > > > > > >>                                camera.zoom=10;
>
> > > > > > > > >>                if (camera.zoom>50)
> > > > > > > > >>                                camera.zoom=50;
>
> > > > > > > > >>                trace(camera.zoom);
> > > > > > > > >>        }
> > > > > > > > >>  }
>
> > > > > > > > >> Second the glitch is what i said, i got an carrusel with come
> > > > > planes
> > > > > > > > >> on it, make the disk rotate +.3, and when the mouse wheel it
> > > > > adjust
> > > > > > > > >> the zoom/scale dividing the properties of plane over the
> > > > > camera.zoom,
> > > > > > > > >> thats when the glitch happens, i use X, Y, width and height,
> > > > > removing
> > > > > > > > >> this, the glitch goes away, hope this helps.
>
> > > > > > > > >> oh btw,
>
> ...
>
> read more »

Reply via email to