
-----------------------------------
Catalyst
Fri Jun 13, 2003 11:57 pm

Matrix Cubes
-----------------------------------
it uses the matrix effect
it involves cubes

give it a couple of seconds to normalize

*glaux needed*

-----------------------------------
Martin
Fri Jun 13, 2003 11:59 pm


-----------------------------------
Are those cubes or 6 quads? (per box)

-----------------------------------
Catalyst
Sat Jun 14, 2003 12:00 am


-----------------------------------
they were inteded to be cubes but two of the sides appear to be jutting out (i think it has to do with copying the texture)

-----------------------------------
Martin
Sat Jun 14, 2003 12:01 am


-----------------------------------
Put your name into the middle box, then output the screen to a whole bunch of bmp's, and then make it into a gif...crazy cool avatar.

Good job. I'd give you bits btw, but I don't think that you care.

-----------------------------------
Catalyst
Sat Jun 14, 2003 12:02 am


-----------------------------------
solved the problem, though theyre more like boxes now

reuploaded

-----------------------------------
Catalyst
Sat Jun 14, 2003 12:03 am


-----------------------------------
edit:...

-----------------------------------
Homer_simpson
Sat Jun 14, 2003 2:23 am


-----------------------------------
how do u do that changing texture stuff?!

-----------------------------------
Martin
Sat Jun 14, 2003 2:25 am


-----------------------------------
I think we've just been left in the dust...

-----------------------------------
Homer_simpson
Sat Jun 14, 2003 4:33 am


-----------------------------------
ah... nm... i just found out how... :D

-----------------------------------
Martin
Sat Jun 14, 2003 12:12 pm


-----------------------------------
Hard? Care to share?

-----------------------------------
Homer_simpson
Sat Jun 14, 2003 12:17 pm


-----------------------------------
not hard...
i think he's using 
glCopyTexImage2D
to intialize his moving texture... (not sure =/)
am i right catalyst?

-----------------------------------
Catalyst
Sat Jun 14, 2003 12:20 pm


-----------------------------------
ya that what im using
i just draw out the matrix effect 
grab the screen into a texture
clear the screen
draw the cubes using that texture
swap buffers

-----------------------------------
Homer_simpson
Sat Jun 14, 2003 1:03 pm


-----------------------------------
yes i thought so...:D but that matrix effect that your makin with the particle engine is nice... i gotto learn how to use a particle engine...

-----------------------------------
Catalyst
Sat Jun 14, 2003 1:16 pm


-----------------------------------
NUM_LETT needs to be defined
its the length of the letter trails


float RandomNumP ()
{
return (((float)rand() / (float)(RAND_MAX)));
}

float RandomNum ()
{
return (((float)rand() / (float)(RAND_MAX))*2)-1;
}


class matrixLetter
{
    public:

    float tX1[NUM_LETT],tX2[NUM_LETT],tY1[NUM_LETT],tY2[NUM_LETT];
    bool hLight;
    float x,y,z;
    float xv,yv,zv;
    float sizeX,sizeY;
    int i;
    
    void InitLetter (float l1,float l2,float X,float Y,float Z,float SIZE)
    {
    
    for (i=0;i