https://github.com/seng3694/dynamiclighting
C++ SFML experimental dynamic lighting project
https://github.com/seng3694/dynamiclighting
cmake cpp lighting sfml
Last synced: about 1 year ago
JSON representation
C++ SFML experimental dynamic lighting project
- Host: GitHub
- URL: https://github.com/seng3694/dynamiclighting
- Owner: Seng3694
- Created: 2018-03-18T14:19:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-24T12:46:56.000Z (about 8 years ago)
- Last Synced: 2025-01-26T14:50:09.241Z (about 1 year ago)
- Topics: cmake, cpp, lighting, sfml
- Language: C++
- Homepage:
- Size: 154 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DynamicLighting
C++ SFML experimental dynamic lighting project without shaders.
## Preview ##
8 Light sources:
![Preview1][1]
drawing lines:
![Preview2][5]
## Build ##
Project uses [CMake][2] to generate platform and compiler-specific build files.
### Dependencies ###
Before building, make sure that [SFML 2.0+][3] is installed. Also note that this project uses `C++14` features such as `auto` and `lambdas`, and therefore requires a `C++14` compliant compiler in order to build successfully.
### Building on Windows (Visual Studio) ###
1. Ensure SFML is installed (if CMake fails to find SFML automatically, edit the `SFML_ROOT` variable in the [CMakeLists.txt][4])
2. Clone the repository
```
git clone https://github.com/Seng3694/DynamicLighting SengDynamicLighting
```
3. Generate the build files (depending on your Visual Studio Version the `cmake` command differs. In this case `"Visual Studio 15"` will generate the Visual Studio 2017 project files)
```
mkdir build
cd build
cmake -G "Visual Studio 15" ../SengDynamicLighting
```
4. Open the `.sln` file in Visual Studio and build the `ALL_BUILD` target.
### Building on Linux (Unix Makefiles) ###
1. Ensure SFML is installed
2. Clone the repository
```
git clone https://github.com/Seng3694/DynamicLighting SengDynamicLighting
```
3. Generate the build files
```
mkdir build
cd build
cmake -G "Unix Makefiles" ../SengDynamicLighting
```
4. Building the application
```
make
```
[1]: https://cdn.discordapp.com/attachments/425728769236664350/426402375188611077/dynamic_lighting_preview.gif
[2]: http://www.cmake.org/
[3]: http://www.sfml-dev.org/
[4]: https://github.com/Seng3694/DynamicLighting/blob/master/CMakeLists.txt
[5]: https://cdn.discordapp.com/attachments/425728769236664350/427082786478751755/light_new.gif