Giter Site home page Giter Site logo

grpc-opengl-multiplayer's Introduction

grpc-opengl-multiplayer

Introduction

This is a very quickly written demo of a multiplayer scene, using gRPC and OpenGL. The server listens for clients to connect and as they create a session it provides them with user ids and a list of entities that have been generated in the world. The client tells the server where its camera position is, and the scene tells each client where the other users are.

The longer version of this demo video is here.

Usage

Tested only on windows 10 x64, VS2022, using VCPKG. You must modify the path to gRPC in the top line of the CMakeLists.txt file in src/ to point to your installation of gRPC.

Then do the usual

	git clone https://github.com/billguastalla/grpc-opengl-multiplayer.git
	cd grpc-opengl-multiplayer
	mkdir build
	cd build
	cmake .. .

Things that were borrowed

The gRPC service was adapted from google's examples. Some graphics utilities have been imported from my own software visualisations via cmake, and some of these are also modified from Joey de Vries' tutorials on computer graphics.

Future work

Functionality to rotate and move objects has been descibed in the service definition (.proto) but not implemented in the client/server code.

grpc-opengl-multiplayer's People

Contributors

billguastalla avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.