Local Environment

The local environment aims to provide an easy way to develop and test your application, while still being very close to the actual production setup. For this purpose, we provide a configuration of our set of services that can be run next to the game. We still require being connected to a live-streaming service so that you can check for the actual latency between your game and the client view, as well as test your web code with the actual live-streaming viewer of the chosen service.

The main differences between the local-only version and the production version are the following:

  • No scalability support
  • No support for direct hardware encoding
  • The services are launched in an unsecure environment

Other than that, these are the same services that would be run on the production servers.

Samples

Genvid provides two sample integrations that show how to integrate Genvid with your own game. A sample script local.py is provided for managing the services and launching the game. The script provides basic functionalities for managing the services and the game in a high level view. Our scripts are written in Python and are based on the Python Genvid Toolbox. Feel free to modify them to fit better your own workflow and to adapt them to your game.

Both samples also used Node.js and TypeScript for the website integration, both for the backend side and the client side. However, the backend integration consists only of some webservice calls and the TypeScript generates a clean JavaScript API to integrate with your framework of choice.

In the same way of Swap, Plug and Play, the choice of Nomad to run the game is just as an example. You can decide any other technology that you consider fit for your environment to launch the game. Our services actually depend on both Consul and Nomad to run, but their requirements are simple enough to be adapted easily to other environments.

The tutorial sample

The Tutorial sample is a small application that shows how to integrate Genvid with your own game. The application is built in C++ with DirectX11 and the website is served with Node.js, using TypeScript and the AngularJS framework.

The Unreal Tournament Sample

The Unreal Tournament sample demonstrates the integration of Genvid inside a very popular Unreal Engine 4 game. It requires you to access the source code of Unreal Tournament on your machine and to be able to build the game. The website is served with Node.js, using TypeScript and jQuery. This is a bit more advanced than the tutorial sample but could show you how to deal with some more intricate aspects of creating a Genvid Experience.