游戏开发论坛

 找回密码
 立即注册
搜索
查看: 4426|回复: 10

有谁懂客户端预测(client side prediction)的请进来

[复制链接]

2

主题

13

帖子

13

积分

新手上路

Rank: 1

积分
13
发表于 2007-4-3 11:42:00 | 显示全部楼层 |阅读模式
我想知道客户端预测的是啥东西,是自己的行为动作还是别的客户端的,我看到的文章好像讲是预测自己的行为,为啥?而且如果得到的预测与服务器端的不同时还要被服务器端更正。客户端的行为直接由玩家操作怎么能被服务器修改呢?

52

主题

637

帖子

1420

积分

金牌会员

Rank: 6Rank: 6

积分
1420
发表于 2007-4-3 13:39:00 | 显示全部楼层

Re:有谁懂客户端预测(client side prediction)的请进来

你是晕菜了,

客户端预测,对于第一人称游戏,修正的是玩家看到的其他玩家的角色的行为,不是玩家自己控制的那个角色的行为。

如果是第三人称,比如点地面走路的,那么走的过程中是玩家不可控制的,玩家只决定最终目的地,因此也可以修正。

2

主题

13

帖子

13

积分

新手上路

Rank: 1

积分
13
 楼主| 发表于 2007-4-3 14:57:00 | 显示全部楼层

Re:有谁懂客户端预测(client side prediction)的请进来

那请问楼上:这段英文该怎么理解:
Client-side prediction refers to the process of having the client predict the
results of user input before the server has acknowledged the input and updated
the game state. So, instead of the client only sending control input to the server
and waiting for an updated game state in return, the client also, in parallel
with this, predicts the game state locally, and gives the user feedback without
awaiting an updated game state from the server.

6

主题

471

帖子

1047

积分

金牌会员

Rank: 6Rank: 6

积分
1047
发表于 2007-4-3 15:33:00 | 显示全部楼层

Re:有谁懂客户端预测(client side prediction)的请进来

比较有用的例子,还模拟了丢包情况.

http://www.gaffer.org/downloads/NetworkedPhysics.zip

2

主题

13

帖子

13

积分

新手上路

Rank: 1

积分
13
 楼主| 发表于 2007-4-3 15:36:00 | 显示全部楼层

Re:有谁懂客户端预测(client side prediction)的请进来

非常感谢4楼的,我正在看他的文章

2

主题

13

帖子

13

积分

新手上路

Rank: 1

积分
13
 楼主| 发表于 2007-4-3 16:42:00 | 显示全部楼层

Re:有谁懂客户端预测(client side prediction)的请进来

This technique completely eliminates movement lag for the “client’s own character”
其他文章里也是这么解释的,但我就是没搞明白具体的逻辑

2

主题

13

帖子

13

积分

新手上路

Rank: 1

积分
13
 楼主| 发表于 2007-4-3 17:04:00 | 显示全部楼层

Re:有谁懂客户端预测(client side prediction)的请进来

有谁懂啊,快进来解释一下

0

主题

275

帖子

676

积分

高级会员

Rank: 4

积分
676
发表于 2007-4-3 22:39:00 | 显示全部楼层

Re:有谁懂客户端预测(client side prediction)的请进来

???碚f就是Next Frame pos&rot ??B预测...把移?舆^程掩?更平滑

???G包或是?路lag..也不??刑?乐氐耐滑F 或是?以忍受??效果如火箭人
像是航海演算法就是2D移?宇A?y

2

主题

13

帖子

13

积分

新手上路

Rank: 1

积分
13
 楼主| 发表于 2007-4-4 08:58:00 | 显示全部楼层

Re:有谁懂客户端预测(client side prediction)的请进来

非常感谢楼上的回答,但我想知道的是预测的是自己的行为还是其他client的?

0

主题

275

帖子

676

积分

高级会员

Rank: 4

积分
676
发表于 2007-4-4 12:09:00 | 显示全部楼层

Re:有谁懂客户端预测(client side prediction)的请进来

都可以
因???lient端的程序?碚f,每??player包括自己都是proxy object


BUT不是??y行??是??y??
玩家目前?檎玖⑾乱??行?槭翘?S...????

但是跳? 可以??y空中??跟落地?
因?樘?S是已知的行??.可以推?С隽α扛?嚯x.跟??物?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-21 16:10

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表