Tutoriel cube en 3 d
+3
jo93
Magali
Bérengére Passion Psp
7 participants
Page 2 sur 2
Page 2 sur 2 • 1, 2
Re: Tutoriel cube en 3 d
idem pour le cube je sais pas si c moi qui ai un prob mais en klikant sur ton lien il me demande si je veux enregister un document et meme en l'enregistrant ca va pas
Invité- Invité
Re: Tutoriel cube en 3 d
coucou melialove c'est un document pdf mon lien je viens de le tester il est un peu long j'ai attendu un peu et il est apparut
biz
biz
Re: Tutoriel cube en 3 d
Bérengére pourrais-tu remettre ici le code à mettre dans la fenêtre action stp !
Je te remercie d'avance !
Bizzz.
Je te remercie d'avance !
Bizzz.
Re: Tutoriel cube en 3 d
ok voila
function createImages()
{
var _loc1 = 6;
while (_loc1--)
{
theScene.createEmptyMovieClip("face" + _loc1, _loc1);
theScene["face" + _loc1].createEmptyMovieClip("contents", _loc1);
theScene["face" + _loc1].contents.attachBitmap(flash.display.BitmapData.loadBitmap("face" +
_loc1), 1, false, true);
}
}
function pointsTransform(points, rotations)
{
var _loc17 = new Array();
var _loc10 = Math.sin(rotations.x);
var _loc12 = Math.cos(rotations.x);
var _loc8 = Math.sin(rotations.y);
var _loc11 = Math.cos(rotations.y);
var _loc7 = Math.sin(rotations.z);
var _loc9 = Math.cos(rotations.z);
var _loc16;
var _loc15;
var _loc3;
var _loc5;
var _loc4;
var _loc6;
var _loc18;
var _loc14;
var _loc13;
var _loc1 = points.length;
while (_loc1--)
{
_loc16 = points[_loc1].x;
_loc15 = points[_loc1].y;
_loc3 = points[_loc1].z;
_loc5 = _loc12 * _loc15 - _loc10 * _loc3;
_loc4 = _loc10 * _loc15 + _loc12 * _loc3;
_loc18 = _loc11 * _loc4 - _loc8 * _loc16;
_loc6 = _loc8 * _loc4 + _loc11 * _loc16;
_loc14 = _loc9 * _loc6 - _loc7 * _loc5;
_loc13 = _loc7 * _loc6 + _loc9 * _loc5;
_loc17[_loc1] = {x: _loc14, y: _loc13};
}
return (_loc17);
}
function movieClip3PointTransform(mc, a, b, c)
{
mc._visible = pointsIsVisible(a, b, c);
if (!mc._visible)
{
return;
}
var _loc1 = mc.transform.matrix;
_loc1.tx = b.x;
_loc1.ty = b.y;
_loc1.a = (a.x - b.x) / mc.contents._width;
_loc1.b = (a.y - b.y) / mc.contents._width;
_loc1.c = (c.x - b.x) / mc.contents._height;
_loc1.d = (c.y - b.y) / mc.contents._height;
mc.transform.matrix = _loc1;
}
function pointsIsVisible(a, b, c)
{
var _loc5 = b.x - a.x;
if (!_loc5)
{
return (a.y > b.y == c.x > a.x);
}
var _loc4 = c.x - a.x;
if (!_loc4)
{
return (a.y > c.y == b.x < a.x);
}
return ((b.y - a.y) / _loc5 < (c.y - a.y) / _loc4 != (a.x < b.x == a.x > c.x));
}
Stage.scaleMode = "noScale";
var rotations = {x: 0, y: 0, z: 0};
var boxPoints = [{x: -75, y: -75, z: -75}, {x: 75, y: 75, z: -75}, {x: -75, y: 75, z: -75}, {x: -75, y:
-75, z: 75}, {x: 75, y: -75, z: 75}, {x: 75, y: 75, z: 75}];
this.createEmptyMovieClip("theScene", 1);
theScene._x = theScene._y = 150;
createImages();
theScene.onEnterFrame = function ()
{
rotations.x = rotations.x - this._ymouse / 3000;
rotations.y = rotations.y + this._xmouse / 2000;
var _loc2 = pointsTransform(boxPoints, rotations);
movieClip3PointTransform(this.face0, _loc2[2], _loc2[0], _loc2[3]);
movieClip3PointTransform(this.face1, _loc2[5], _loc2[1], _loc2[2]);
movieClip3PointTransform(this.face2, _loc2[0], _loc2[2], _loc2[1]);
movieClip3PointTransform(this.face3, _loc2[4], _loc2[3], _loc2[0]);
movieClip3PointTransform(this.face4, _loc2[3], _loc2[4], _loc2[5]);
movieClip3PointTransform(this.face5, _loc2[1], _loc2[5], _loc2[4]);
};
Re: Tutoriel cube en 3 d
petit coucou
bonsoir
voilà un ptit essai lol
bonne soirée
gros bisous
mamiebabou
bonsoir
voilà un ptit essai lol
bonne soirée
gros bisous
mamiebabou
Dernière édition par mamiebabou le Sam 27 Nov - 18:15, édité 2 fois
mamiebabou- Nouveaux membres
- Messages : 26
Date d'inscription : 13/10/2010
Re: Tutoriel cube en 3 d
Merci Eyesshiva
ça sent les fêtes
et j'adore ça lol
bonne soirée
gros bisous
mamiebabou
ça sent les fêtes
et j'adore ça lol
bonne soirée
gros bisous
mamiebabou
mamiebabou- Nouveaux membres
- Messages : 26
Date d'inscription : 13/10/2010
Re: Tutoriel cube en 3 d
toc toc
pourquoi mon cube est parti
du moins on le ne voit plus sniff lol
belle journée
gros bisous
mamiebabou
mamiebabou- Nouveaux membres
- Messages : 26
Date d'inscription : 13/10/2010
Re: Tutoriel cube en 3 d
oh c'est peu etre un hebergeur gratuit que tu as utilise? il ne garde pas les images tres longtemps si tu en a un perso style free tu peux essayer la
Page 2 sur 2 • 1, 2
Sujets similaires
» Concours tutoriel "Bad dream"
» Concour tutoriel 1 AMELIA[FINI]
» Tutoriel pour créer un calendrier
» Tutoriel creer un masque Partie 1
» Concours tutoriel 2 " Rever" FINI
» Concour tutoriel 1 AMELIA[FINI]
» Tutoriel pour créer un calendrier
» Tutoriel creer un masque Partie 1
» Concours tutoriel 2 " Rever" FINI
Page 2 sur 2
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|