Original Post
Hello.
I know it''s pretty simple to code but it''s just doesn''t work!
What I''m to do is a pretty simple world , an object and a camera.
let''s say for now that the object is a simple point in 3d.
both the object and the camera is represented by matrix:
(though I''m coding in java I''ll write it in simple writing)
I have several matrix for each
xrotate matrix
yrotate matrix
zrotate matrix
trasformation matrix
and each one have it''s position and all axis angles
and each is first calculated in it''s own world space.
rotating the point and moving it around worked perfect.
the steps with rotating and moving the point was
initialing each matrix with the angles or position
and the multipling all the matrix together
and at the end multipling the final matrix with the point coords.
the problems begun when I added the camera.
I did the same I did with the point and I thought that if I''ll multiply the final matrix of the point and the final camera matrix and then multipling the outcome with the point coords.
well WRONG! didn''t work.
So if anyone can help I''d apriciate it very much and 10x for anyone who reached this line , I know it''s a little bit long.
sorry for my english!