[Plib-users] matrix problem with sg
Brought to you by:
sjbaker
From: FragFreak <ult...@gm...> - 2001-11-17 15:08:24
|
hi, i would like to use the sg library for a 3d engine, it looks quite nice. to test it i replaced gluLookAt() with sgMakeLookAtMat4() and it doesnt work:-( i do it this way: sgMat4 m; sgVec3 c,e,u; e[0]=e[1]=e[2]=10;//eye c[0]=c[1]=c[2]=0;//center u[0]=0;u[1]=1;u[2]=0;/up sgMakeLookAtMat4(m,e,c,u); glMultMatrix((float*)m); i looked at the sgMakeLookAtMat4() code and it seams that the y-z coordinates are swapped compared to gluLookAt(). can i use the other sg-functions like the gl-functions? or does sg use another coordinate system? thanks for any help cody |