用Red5创建虚拟世界
我正在考虑使用开源套接字服务器“Red5”创建一个虚拟世界。 我知道我必须开发一个自定义适配器/插件才能使其适合虚拟世界。但我不确定从哪里开始。我对java有很好的了解。
I'm thinking about creating a virtual world using the open source socket server 'Red5'.
I know that i'd have to develop a custom adapter/addin to make it suitable for a virtual world. but am unsure where to start. I have a good knowledge of java.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从未做过虚拟世界,但对我来说,这样的项目开始的地方是粗略地(在纸上)设计世界。当客户端连接时会发生什么,当客户端突然断开/断开时会发生什么,哪些数据是持久的等等。然后设计客户端如何与服务器以及彼此之间进行通信(即协议)。想必如果您计划使用 RED5,这将是一个集中式的事情,而不是 P2P 的事情。一旦您在纸上设计了协议,您就可以对其进行编码并查看您错过了什么 ->迭代次数 2。根据您对此类内容的经验程度,您需要进行 2-10 次通信迭代。
对于设计状态,我会查看游戏引擎并了解它们在分布式游戏方面提供的功能。我想你会想使用游戏引擎来渲染这些东西,所以你无论如何都需要一个。
如果您以前从未做过这样的事情,那么制作一个小游戏来看看您需要考虑哪些事情可能是值得的。例如,多人乒乓球比赛。尽管 pong 的实时限制与虚拟世界的实时限制略有不同(至少如果世界上没有人以 200 公里/小时的速度行驶的话)。
I've never done a virtual world, but where a project like this would start for me is designing the world roughly (on paper). What happens when a client connects, what happens when the client disconnects/drops suddenly, what data is persistent and so on. Then designing how the clients communicate with the server and with each other (ie. the protocol). Presumably if you are planning on using RED5 this would be a centralised thing not a P2P one. Once you have the protocol designed on paper you can code it up and see what you've missed -> iteration number 2. Depending on how much experience you have on stuff like this you'll need to do 2-10 iterations of the communications.
For the design state I would look at game engines and see what they provide in terms of distributed play. I'd imagine that you'll want to use a game engine to render the stuff so you'll need one anyway.
If you've never done stuff like this before, it might be worthwhile to make a little game just to see what are the things you need to take into account. Like a multiplayer pong for instance. Although the realtime constraints on pong are slightly different to those of a virtual world (at least if there is no one driving around at 200 km/h in the world).