/firelight

Next-generation procedural lighting engine

Primary LanguageC++OtherNOASSERTION

Firelight

Next-generation procedural lighting engine. Details coming soon.

Developing on Linux

The preferred development environment for Firelight is Linux (any flavor). Instructions for getting started will be written up soon. While these instructions may also apply to Mac OS X, the developers do not have any Apple hardware and have made no effort to test this software on Mac OS X. Users who have successfully built and ran the software on Mac OS X are encouraged to submit pull requests to document the setup of that platform.

Developing on Windows

Firelight is cross-platform and can be build and run on Windows, although less testing has been done for this platform.

  1. Download Requirements
  1. Install Qt
  • Launch Qt Online installer
  • Select latest version, and under Tools, select MingW 4.8 (if you don't already have MingW)
  • Grab some coffee
  1. Install Python
  • Use the latest 2.7 release (2.7.6 at the time of this writing) and the 32-bit version.
  1. Build Boost
  • Extract the zip file to a folder (e.g. boost_1_55_0)
  • Open a MingW-enabled command prompt (found under Qt in the start menu) to that folder
  • Run bootstrap.bat mingw
  • Run b2.exe toolset=gcc cxxflags="-include cmath " python (omit the python if you want to build the whole boost library). Note that the cxxflags argument is currently needed to workaround an issue with building Boost.Python using MinGW.
  • Grab some more coffee
  • When complete, make sure the BOOST_ROOT environment variable is set to point to the boost_1_55_0 folder.
  1. Build Boost.Numpy
  • Install CMake, making sure to add it to the PATH.
  • Clone the Boost.Numpy repo to a folder (e.g. Boost.Numpy)
  • Open a MingW-enabled command prompt to the folder
  • Run cmake -G "MinGW Makefiles"
  • Run cmake --build . --config release
  • Run cmake --build . --config release --target install
  1. Build portaudio (currently not fully tested on Windows)
  • Extract the archive to a folder (e.g. portaudio)
  • Open a MingW-enabled command prompt to the folder
  • Run ./configure --enable-cxx
  • Run make
  • Run make install
  1. Configure Qt Creator
  • Open Qt Creator
  • File -> Open, select src/firelight.pro from the working copy of this repo
  • Qt Creator should automatically list your MingW compiler settings. Click Configure to confirm.
  • Click Projects tab on the left, then click qmake under build steps to show the options for qmake.
  • Open firelight.pro in the text editor and edit the paths under the win32 section to make sure your include and library paths are correct.
  1. Build and Run
  • Click the build button (hammer) in the lower left
  • If you have problems, make sure that your paths are set up correctly to Boost, Python, Boost.Numpy, and portaudio.

Licensing and Attribution

First-party code is (c) Jonathan Evans and released under the MIT License (see LICENSE.txt) Third-party components are licensed as follows:

Firelight uses the Silk icon set by Mark James (http://www.famfamfam.com/lab/icons/silk/)