Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: Brian Bacon Newsgroups: scea.yaroze.programming.3d_graphics Subject: I need help with ApplyMatrix Date: Tue, 02 Sep 1997 10:27:17 -0700 Organization: SCEA News Server Lines: 30 Message-ID: <340C4C75.5D11@geocities.com> NNTP-Posting-Host: 205.238.16.55 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01Gold (Win95; I) Hello, I need help with apply matrix. I am doing some advanced 3d programming (hehe.. I'm rotating two cubes and a view) everything with the cubes works just fine, but when I rotate the view matrix, then use Apply Matrix after about the 3rd revolution of the view it will lockup. Here is the function I am using: //****************START******************* void RotTransPer(SVECTOR *v0, VECTOR_2D *v1, MATRIX *matrix) { VECTOR vt; register unsigned long h_z; ApplyMatrix(matrix, v0, &vt); vt.vx += matrix->t[0]; vt.vy += matrix->t[1]; vt.vz += matrix->t[2]; h_z=(1581056/vt.vz); v1->x = (short)((vt.vx * h_z)>>12); v1->y = (short)((vt.vy * h_z)>>12); } //*****************END******************** Is there any kind of limitation to ApplyMatrix that might be locking it up? And why would it work just fine when I rotate the cubes but not when I rotate the view? -Brian Bacon