Hi everybody,
I have a question for Math champions…which i’m not obviously.
I want to make a 3d carrousel, classic stuff. I won’t be able to explain what i want so i uploaded 2 pictures. The first picture attached is what you can usually see and the second one is the effect i want…a little bit more 3d. Hope you’ll understand what i mean.
For now here’s the code i use onEnterFrame :
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - perspective) /(centerY+radiusY-perspective);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
blur.blurX = Math.round(Math.sin(this.angle - Math.PI) * 10);
blur.blurY = Math.round(Math.sin(this.angle - Math.PI) * 10);
this.filters = [blur];
Thank’s for the one who can help me a little bit.