A
Akari
Guest
I trying to guess what is the scale value in field file.
Now I think this is zoom. Ie we move camera to where it looks. But I can't get value that works in all cases. Now I use this formula for calculate matrix translation.
Code: [Select]
I just move camera along Z axis. It almost works, but not entirely. Looks like I need fix my perspective projection :|
Does anyone have any guesses?
Now I think this is zoom. Ie we move camera to where it looks. But I can't get value that works in all cases. Now I use this formula for calculate matrix translation.
Code: [Select]
Code:
oz += (scale - 512) * 4; float tx = ox * vxx + oy * vyx + oz * vzx; float ty = ox * vxy + oy * vyy + oz * vzy; float tz = ox * vxz + oy * vyz + oz * vzz;
Does anyone have any guesses?