# Does anyone know the Matrix effect?

**URL:** <https://forum.kirupa.com/t/does-anyone-know-the-matrix-effect/2231>\
**Category:** flash\
**Created:** [May 4, 2002, 1:08pm UTC](https://forum.kirupa.com/t/does-anyone-know-the-matrix-effect/2231 "2002-05-04T13:08:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2002, 1:08pm UTC](https://forum.kirupa.com/t/does-anyone-know-the-matrix-effect/2231/1 "2002-05-04T13:08:04Z")

</div>

Does anyone know how to do the Matrix effect where like, the camera spins and zooms around the object??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2002, 2:04pm UTC](https://forum.kirupa.com/t/does-anyone-know-the-matrix-effect/2231/2 "2002-05-04T14:04:47Z")

</div>

Hey, man, you’re the 20,000,000,364th to ask that question, and I’ll answer once more : Frame by frame, it’s very long but not so difficult. With Actionscript, it can be quick if ‘algebra’ is your middle name, but otherwise it’s very very hard.\r\rThere. Good luck.\r\rpom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2002, 2:21pm UTC](https://forum.kirupa.com/t/does-anyone-know-the-matrix-effect/2231/3 "2002-05-04T14:21:33Z")

</div>

yeah what he said. If you aren’t “God’s gift to ActionScript” then its difficult using that, but if you do it frame by frame it will be easy just take a looooooooooooooong time.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 8, 2002, 10:35pm UTC](https://forum.kirupa.com/t/does-anyone-know-the-matrix-effect/2231/4 "2002-05-08T22:35:23Z")

</div>

ok here it is…try to understand it…‘cuz i don’t…but it IS there…\<img src=http://www.ezboard.com/intl/aenglish/images/emoticons/ohwell.gif ALT=":"\> \r\r// Matrix3D constructor \r// ------------------ \rfunction matrix3D () { \r this.element = new Array(); \r this.createBase(); \r this.vCount = 0; \r} \r\r// Base creation \r// ------------- \rmatrix3D.prototype.createBase = function() { \r this.base = new Array(); \r this.base[1] = new Array(1,0,0); \r this.base[2] = new Array(0,1,0); \r this.base[3] = new Array(0,0,1); \r} \r// Adding a vector \r// --------------- \rmatrix3D.prototype.addVector = function (x,y,z) { \r this.vCount++; \r this.element[this.vCount] = new Array(); \r this.element[this.vCount][1] = x; \r this.element[this.vCount][2] = y; \r this.element[this.vCount][3] = z; \r} \r// Deleting a vector \r// --------------- \rmatrix3D.prototype.delVector = function (index,count) { \r if (!count) count = 1; \r this.element.splice(index, count); \r this.vCount -= count; \r} \r// Getting an element’s value \r// -------------------------- \rmatrix3D.prototype.get = function(row, column) { \r return (this.element[row][column]); \r} \r// Setting an element’s value \r// -------------------------- \rmatrix3D.prototype.set = function(row, column, arg) { \r this.element[row][column] = arg; \r} \r\r// Rotation around the X axis \r// -------------------------- \r// It multiplicates each vector (dot multiplication) by the transformation matrix: \r// \r// 1 0 0 \r// 0 cos ß -sin ß \r// 0 sin ß cos ß \r// \r// So, it will result the matrix transformed by: \r// \r// x’ = x \r// y’ = (cos ß) \* y - (sin ß) \* z \r// z’ = (sin ß) \* y + (cos ß) \* z \r// \rmatrix3D.prototype.Xrotation = function(beta) { \r for (var iVector = 1; iVector \<= this.vCount; iVector++) { \r this.element[iVector][2] = ((Math.cos(beta))\*this.element[iVector][2])-((Math.sin(beta))\*this.element[iVector][3]); \r this.element[iVector][3] = ((Math.sin(beta))\*this.element[iVector][2])+((Math.cos(beta))\*this.element[iVector][3]); \r } \r} \r// Rotation around the Y axis \r// -------------------------- \r// Transformation Matrix: \r// \r// cos ß 0 sin ß \r// 0 1 0 \r// -sin ß 0 cos ß \r// \rmatrix3D.prototype.Yrotation = function(beta) { \r for (var iVector = 1; iVector \<= this.vCount; iVector++) { \r this.element[iVector][1] = ((Math.cos(beta))\*this.element[iVector][1])+((Math.sin(beta))\*this.element[iVector][3]); \r this.element[iVector][3] = (-(Math.sin(beta))\*this.element[iVector][1])+((Math.cos(beta))\*this.element[iVector][3]); \r } \r} \r// Rotation around the Z axis \r// -------------------------- \r// Transformation Matrix: \r// \r// cos ß -sin ß 0 \r// sin ß cos ß 0 \r// 0 0 1 \r// \rmatrix3D.prototype.Zrotation = function(beta) { \r for (var iVector = 1; iVector \<= this.vCount; iVector++) { \r this.element[iVector][1] = ((Math.cos(beta))\*this.element[iVector][1])-((Math.sin(beta))\*this.element[iVector][2]); \r this.element[iVector][2] = ((Math.sin(beta))\*this.element[iVector][1])+((Math.cos(beta))\*this.element[iVector][2]); \r } \r} \r// Base Translation \r// ---------------- \rmatrix3D.prototype.translate = function(x,y,z) { \r this.base[1] = new Array(x,0,0); \r this.base[2] = new Array(0,y,0); \r this.base[3] = new Array(0,0,z); \r} \r\r:eek:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 12:57am UTC](https://forum.kirupa.com/t/does-anyone-know-the-matrix-effect/2231/5 "2002-05-09T00:57:35Z")

</div>

how would i use that??? someone please help without getting mad

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 9, 2002, 2:29am UTC](https://forum.kirupa.com/t/does-anyone-know-the-matrix-effect/2231/6 "2002-05-09T02:29:56Z")

</div>

good luck finding someone that can break that apart. not easy.
