Skip to content

pendingchaos/WIP12

Repository files navigation

#WIP12

screenshot

A work in progress using OpenGL and Bullet Physics in C++. Please do not submit any pull requests. This is my own project that I am making for fun and knowledge. If you want to clone this, pass --depth 1 or you'll end up downloading ~1GiB of data.

The program has only been tested on a GNU/Linux based operating system.

Dependencies

The program requires g++, SDL2, Bullet, FreeType, libdl, a c standard library implementation, a c++ standard library implementation, and an OpenGL implementation supporting OpenGL 3.3 or higher, GL_ARB_tesselation_shader and GL_ARB_separate_shader_objects.

They can be installed by running or something similar:

yum install SDL2-devel bullet-devel gcc-c++ freetype-devel

resourceconverter.py depends on Pillow. It can be installed with

pip2 install Pillow

If you have yum and pip (the Python 2 one) you can run

make install_deps

The rest should already be installed.

The scripts have only been tested with Python 2.7 but they might work with a different version.

Compiling

To compile, run compile.py in the scripts directory or use the Code::Blocks project with an IDE that supports it. You might want to change process_count in compile.py to the number of cores on your CPU (and possibly plus one or two). You can also run compile.py like this:

make compile

Running

Before you run, run resourceconverter.py or run this:

make resource_convert

Then run

make run_main

or bin/run_main.

Compiling and running the lazy way

make lazy

Attribution

The Soldier 1.0 model (http://opengameart.org/content/soldier-10) was created by killyoverdrive and released under the Creative Commons Attribution ShareAlike 3.0 Unported license.