[BUG RC2] InterpolateCamera(Pos & LookAt) -
AirKite - 10.03.2012
/cam_interp_look in default FS test_cmds - not worked.
InterpolateCameraPos with InterpolateCameraLookAt, not set camera look or no smooth.
/cam_interp and my /cam_look
pawn Код:
//test
if(strcmp(cmd, "/cam_look",true) == 0) {
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
TogglePlayerControllable(playerid, false);
InterpolateCameraLookAt(playerid, X, Y, Z, 100.0, 100.0, 1000.0, 10000);
return 1;
}
work, but time(smooth) not correct. I mean, work only if single use InterpolateCameraLookAt or InterpolateCameraPos.
UPD:
pawn Код:
//
if(strcmp(cmd, "/camtest1",true) == 0) {
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
InterpolateCameraPos(playerid, X, Y, Z, X + 20.0, Y + 20.0, Z + 65.0, 10000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, X, Y, Z, 100.0, 100.0, 100.0, 10000, CAMERA_MOVE);
return 1;
}
if(strcmp(cmd, "/camtest2",true) == 0) {
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
InterpolateCameraPos(playerid, X, Y, Z, X + 20.0, Y + 20.0, Z + 65.0, 10000);
InterpolateCameraLookAt(playerid, X, Y, Z, 100.0, 100.0, 100.0, 10000);
return 1;
}
if(strcmp(cmd, "/camtest3",true) == 0) {
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
InterpolateCameraPos(playerid, X, Y, Z, X + 20.0, Y + 20.0, Z + 65.0, 10000);
return 1;
}
if(strcmp(cmd, "/camtest4",true) == 0) {
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
InterpolateCameraLookAt(playerid, X, Y, Z, 100.0, 100.0, 100.0, 10000);
return 1;
}
[ame]http://www.youtube.com/watch?v=R4xaY0cjv-o[/ame]
Re: [BUG R2] /cam_interp_look in test_cmds -
MP2 - 10.03.2012
What..?
Re: [BUG R2] /cam_interp_look in test_cmds -
Vince - 10.03.2012
Set the cut (last optional parameter) to CAMERA_MOVE (1) and it will be smooth. It default to CAMERA_CUT.
Re: [BUG R2] /cam_interp_look in test_cmds -
MP2 - 10.03.2012
Why would you use CAMERA_CUT in
InterpolateCameraPos anyway..?
Re: [BUG R2] /cam_interp_look in test_cmds -
Jochemd - 10.03.2012
Quote:
Originally Posted by MP2
Why would you use CAMERA_CUT in InterpolateCameraPos anyway..?
|
What the heck does that function do anyway, it's something I don't get.
Re: [BUG R2] /cam_interp_look in test_cmds -
Vince - 10.03.2012
This:
https://sampforum.blast.hk/showthread.php?tid=324267
Re: [BUG R2] /cam_interp_look in test_cmds -
AirKite - 10.03.2012
Quote:
Originally Posted by Vince
Set the cut (last optional parameter) to CAMERA_MOVE (1) and it will be smooth. It default to CAMERA_CUT.
|
ok. I check this.
Quote:
Originally Posted by MP2
Why would you use CAMERA_CUT in InterpolateCameraPos anyway..?
|
What? I use? This code in default FS test_cmds.pwn in samp03e_svr_RC2_win32.zip
UPD:
Quote:
Originally Posted by Vince
|
I see that you have it works. But it not mean works for all. = BUG!
Quote:
Originally Posted by Vince
Set the cut (last optional parameter) to CAMERA_MOVE (1) and it will be smooth. It default to CAMERA_CUT.
|
I checked this. But nothing happened.
If i use single, InterpolateCameraPos or InterpolateCameraLookAt it have smooth. (
And it does not matter CAMERA_MOVE or CAMERA_CUT). If i use InterpolateCameraPos and InterpolateCameraLookAt like
pawn Код:
InterpolateCameraPos(playerid, X, Y, Z, X + 10.0, Y + 10.0, Z + 45.0, 10000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, X, Y, Z, 100.0, 100.0, 100.0, 10000, CAMERA_MOVE);
i have no any move for InterpolateCameraLookAt.
Re: [BUG R2] /cam_interp_look in test_cmds -
AirKite - 10.03.2012
I am update post. Add video and test command's. UP!!!
Re: [BUG R2] /cam_interp_look in test_cmds -
AirKite - 21.03.2012
UP!!!
Re: [BUG R2] /cam_interp_look in test_cmds -
Kar - 21.03.2012
I don't think this is a bug, i noticed it also.
You need to set the camera pos or only the 'lookat' will move obviously, it's just the lookat, (like angle)
Or I could be totally wrong..