[BUG R2] /cam_interp_look in test_cmds
#1

/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]
Reply
#2

What..?
Reply
#3

Set the cut (last optional parameter) to CAMERA_MOVE (1) and it will be smooth. It default to CAMERA_CUT.
Reply
#4

Why would you use CAMERA_CUT in InterpolateCameraPos anyway..?
Reply
#5

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.
Reply
#6

This: https://sampforum.blast.hk/showthread.php?tid=324267
Reply
#7

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.
Reply
#8

I am update post. Add video and test command's. UP!!!
Reply
#9

UP!!!
Reply
#10

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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)