GithubHelp home page GithubHelp logo

sovr610 / pge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 222464/pge

1.0 1.0 0.0 48.31 MB

PGE: Parallel Game Engine

License: Other

CMake 0.93% Python 1.99% C 39.26% GLSL 8.55% C++ 49.27%

pge's Introduction

README

Logo

PGE - Parallel Game Engine

An engine intended for fast and pretty 3D artficial intelligence experiments.

PGE is currently set up to interface with the OpenAI Gym (https://github.com/openai/gym). It allows you to train your reinforcement learning agents using the OpenAI Gym API.

SETUP:

To get started with PGE, you need your favorite compiler and CMake (http://www.cmake.org/cmake/resources/software.html).

You will also need to install 2 libraries: Bullet Physics and SFML.

Get the libraries here: https://github.com/bulletphysics/bullet3/releases http://www.sfml-dev.org/download.php

You may also need to generate an OpenGL extension loader with glLoadGen, if the existing include ones don't work for you: https://bitbucket.org/alfonse/glloadgen/wiki/Home

Once you have these libraries all set up, set CMake's source code directory to the PGE directory (the one that contains the /source folder as well as a CMakeLists.txt).

Set CMake's build directory to the same directory as in the previous step. Optionally, you can also set it to a folder of your choice.

Then press configure, and choose your compiler.

It will likely error if you did not install some of the libraries to a standard location. If this happens, no fear!

You can specify the paths where CMake looks manually. They will appear in red if they need to be set in the CMake GUI.

Typically, you can manually define an entry in CMake with the format <library name here>_ROOT, and point that to the root directory of the library to automatically set multiple paths. When eventually the configuration does not result in errors you can hit generate. This will generate files necessary for your compiler.

To use the engine with the OpenAI Gym, you will need to have the Gym installed. Follow the instructions on the OpenAI Gym site to do this. Once installed, all you need to do to use the PGE environments with the Gym is copy the PGE executable to the root directory (where CMakeLists.txt is), and create your Python experiment code such that it also starts from this directory. You can then import pypge (Python PGE), which will automatically register the environment with the Gym.

Name Description State Action
BlockGame-v0 A simple block stacking game in 3D. The agent must get as high up as possible, by moving blocks to build structures. 9 integers in range [0, inf) (3x3 square of block heights around agent) 8 discrete actions [0, 8)
CartPole3D-v0 Cart pole extended to 3 dimensions. The agent must balance an inverted pendulum on a cart that can move horizontally in X and Z. 8 real values. Approximate range of (-1.0, 1.0). 2 real values in [-1, 1]
Quadruped3D-v0 A mammalian quadruped with body twist joint. The agent must move the quadruped as far from the starting point as possible. 34 real values. Approximate range of (-1.0, 1.0). 27 real values in [-1, 1]
Tennis3D-v0 A single-player tennis game (more similar to volleyball really). The agent must bounce an incoming ball back to the other side of the net. 10 real values. Approximate range of (-2.0, 2.0). 2 real values in [-1, 1]

Images

BlockGame-v0:

Image of BlockGame-v0

CartPole3D-v0:

Image of CartPole3D-v0

Quadruped3D-v0:

Image of Quadruped3D-v0

Tennis3D-v0:

Image of Tennis3D-v0

pge's People

Contributors

222464 avatar rcrowder avatar fergalbyrne avatar

Stargazers

Parker Bidigare avatar

Watchers

James Cloos 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.