https://github.com/gamefoundry/bsfexamples
Example projects for the bs::framework
https://github.com/gamefoundry/bsfexamples
Last synced: about 1 year ago
JSON representation
Example projects for the bs::framework
- Host: GitHub
- URL: https://github.com/gamefoundry/bsfexamples
- Owner: GameFoundry
- License: mit
- Created: 2018-03-16T11:35:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-10-25T17:50:21.000Z (over 3 years ago)
- Last Synced: 2025-04-01T02:58:26.287Z (over 1 year ago)
- Language: C++
- Size: 132 KB
- Stars: 63
- Watchers: 15
- Forks: 24
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
| CI | Community | Support |
| ------------- |-------------|--------|
[](https://travis-ci.org/GameFoundry/bsfExamples) [](https://ci.appveyor.com/project/BearishSun/bsfexamples) | [](https://discourse.bsframework.io) | [](https://www.patreon.com/bePatron?c=1646501) [](https://www.paypal.me/MarkoPintera/10)
# Compile steps
- Install git (https://git-scm.com) and CMake 3.12.4 or higher (https://cmake.org)
- Ensure they are added to your *PATH* environment variable
- Run the following commands in the terminal/command line:
- `git clone https://github.com/GameFoundry/bsfExamples.git`
- `cd bsfExamples`
- `mkdir Build`
- `cd Build`
- `cmake -G "$generator$" ../`
- Where *$generator$* should be replaced with any of the supported generators. Some common ones:
- `Visual Studio 15 2017 Win64` - Visual Studio 2017 (64-bit build)
- `Unix Makefiles`
- `Ninja`
- `Xcode`
- See all valid generators: [cmake-generators](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html)
- Build the project using your chosen tool
- Build files are in the `bsfExamples/Build` folder
- Run the examples
- Example binaries are placed in the `bsfExamples/Build/bin` folder
# Examples
* Audio - Demonstrates how to import audio clips and use audio sources and listeners.
* CustomMaterials - Demonstrates how to use custom materials that override vertex, surface and lighting aspects of the renderer.
* Decals - Demonstrates how to project decal textures onto other surfaces.
* GUI - Demonstrates how to use the built-in GUI system. Demoes a variety of basic controls, the layout system and shows how to use styles to customize the look of GUI elements.
* LowLevelRendering - Demonstrates how to use the low-level rendering system to manually issue rendering commands. This is similar to using DirectX/OpenGL/Vulkan, except it uses bs::framework's platform-agnostic rendering layer.
* Particles - Demonstrates how to use the particle system to render traditional billboard particles, 3D mesh particles and GPU simulated particles.
* PhysicallyBasedRendering - Demonstrates the physically based renderer using the built-in shaders & lighting by rendering an object in a HDR environment.
* Physics - Demonstrates the use of variety of physics related components, including a character controller, rigidbodies and colliders.
* SkeletalAnimation - Demonstrates how to import an animation clip and animate a 3D model using skeletal (skinned) animation.