dimarts, 2 d’abril del 2013

Working On Networking

So, for starters i've been trying some tutorials about the whole networking thing. Every single one is like:drag those scripts and make the magic work. Finally, I sem to have found one that actually teaches you stuff. (thanks to paladin games for the comprehensive guide)

So basically there is two types of network communication methods:

1) Remote Procedure Calls (RPC): Basically, you can call functions stored on a different computer
2) State synchronization: You update the state of a variable or vector

I've been trying to work on both, essentially state synchronization seems faster and used for position, transformation, rotation etc of elements that the client cant affect (for example, other player's avatars). And RPC's are used for more complex actions like spawning elements or complex interactions (a sandstorm for example or an explosion)

For the first test, i've created an interface that acts both as a server and a client. 


When initializing a server, it spawns a cube in a fixed position:

When connected as a client, it spawns a second cube. Both cubes can be controlled from its screen and they update its position on the other. 


This serves as a preliminary test for client-server interaction. Also, the servers can hold up to 32 players (which can be changed) so each new client connection will spawn a new cube in all the screens and can also be controlled by its owner.

As it is now, the difference between server and client is purely anecdotic: they both act as a client with a cube that can be moved around. It is necessary to be connected to a server in order for the interaction to work, but I will elaborate on this later.


diumenge, 3 de març del 2013

Working with the terrain

So for the first chapters, i've focused on terrain.

First thing was to create a flat area, add some mountains and depressions. The program allows you to fix maximum height and lowest, so you can work with the boundaries you desire. Here for the first tests i've tried with some cliffs and something slightly resemblant to a lake... Added some textures and different tools the program offers. Overall is like playing on paint: the program does everything for you, handles colisions and transparencies.

The progress is shown as I add the sky shadows some brushes and finally some water and fog. Notice that water handles its own reflections. It is an amazing program







Beginning a new project

Hello,
this is a blog dedicated to my final project. The idea is to be able to create a multiplayer game based on unity. Althiugh this is the initial intention of the project, it may vary depending on the circumstances and the speed in which advances. 
The initial idea is to design a MOBA game based on a scifi universe. Not much of an original idea, but it will allow me to work with some multiplayer ideas (which is the core of the project) and put them to work on a unity enviroment. 
I have the intention of updating the blog regularly, in order to leave some proof of my advances and also to force myself to work on it.