From Kevin Wafer · 1996-04-10 05:10 · #77544 in X_FILES
In reply to 3d rotations by Kevin Wafer
-> Hello Kevin, -> -> In a message on 4 Apr 96, you wrote to all: -> -> KW> Hi all, I've got a little prob I hope someone can help me with. -> Theres KW> a free subscription or two to my 4 node bbs (TFR 0181 -> 2874190) to KW> whoever can help me out. -> Cash prefered :-) well if you can actually give me the answer to my prob i might send ya some cash. but no one seems to be able to give me a decent answer. -> -> KW> Im doing a little 3D engine for fun, ive got my poly filler, rot -> I'm doing the same, but with texture mapping as well (well, I was bef -> electronics project came up). -> -> KW> Do I have to put in an extra rotation in there, i.e. I'm doing -> rotation KW> around X,Y and Z for the object matrix and camera -> matrix, in Z,X,Y KW> order. Do I need another rotation or something -> for the camera matrix? It sounds like you are doing the rotation in -> the wrong order. You should -> rotate around the Y first. Y X Z is the most natural way to do it. yeah, it doesnt really make much difference which way round you do them thats not really what my prob is . my prob is that all the rotations work. but when youre doing the camera rotation (or the second rotation of the object in other words.) you can for example roll the object , but when it gets to 90 degrees then you add yaw it adds pitch instead etc. (just how it should do for object rotation) -> -> KW> I can't find any decent docs on camera rotation only object rota -> I couldn't find any docs on anything except what came with a PD -> compiler. Everything else I've either worked out or read in fido. -> there seems to be loads of info on rotation, but its just object rotation. i cant find any working camera rotation algorithms -> -> BTW, do you have a full Z clipping function I could have(in C) ? -> why do you give my board a call? 0181 287 4190. 15,000 odd files on there, 2,000 programming related files. cheers --- WILDMAIL!/WC v4.12 * Origin: Wall Street - Stocks'n'Shares - (2:2502/1000.0)