#3d #game-engine #engine #gamedev

BearishSun 8e23f57d9d Resource handle refactor (part 2) há 10 anos atrás
BansheeCore 8e23f57d9d Resource handle refactor (part 2) há 10 anos atrás
BansheeD3D11RenderAPI 609490dbe6 Refactoring resource handles (part 1) há 10 anos atrás
BansheeD3D9RenderAPI 22aa527617 Validate renderable vertex inputs in the renderer há 10 anos atrás
BansheeEditor 609490dbe6 Refactoring resource handles (part 1) há 10 anos atrás
BansheeEditorExec e53ea729fe Added a project for default Game.exe há 10 anos atrás
BansheeEngine ab1231720c Use separate debug and release assemblies when building há 10 anos atrás
BansheeFBXImporter 4afb3bb55a Disabled exceptions solution wide há 10 anos atrás
BansheeFontImporter e3f01f3c80 Font importing supports multiple render styles há 10 anos atrás
BansheeFreeImgImporter 4afb3bb55a Disabled exceptions solution wide há 10 anos atrás
BansheeGLRenderAPI 22aa527617 Validate renderable vertex inputs in the renderer há 10 anos atrás
BansheeMono 0025c6b2dd Updated all relevant paths so that executable files can be placed in root directory of the built application, but also kept the old paths to keep the file structure while using non-packaged builds (e.g. debugging) há 10 anos atrás
BansheeOISInput 4afb3bb55a Disabled exceptions solution wide há 10 anos atrás
BansheeSL f801e0445c Slightly better error reporting from BSLFX importer há 10 anos atrás
BansheeUtility 625b2afd34 Build systems appears functional há 10 anos atrás
ExampleProject ab1231720c Use separate debug and release assemblies when building há 10 anos atrás
Game 991d3aa857 When building only one icon is required há 10 anos atrás
License 2536cc0898 Moving the data folder next to /bin so it makes sense when editor installation is available há 10 anos atrás
MBansheeEditor 4356e8e773 Main camera aspect ratio switching works há 10 anos atrás
MBansheeEngine 4356e8e773 Main camera aspect ratio switching works há 10 anos atrás
RenderBeast cf708239e6 Fixed a bug with scene view where the render texture would get stretched at smaller sizes há 10 anos atrás
SBansheeEditor ab1231720c Use separate debug and release assemblies when building há 10 anos atrás
SBansheeEngine 00d78189f3 More work on Play in editor há 10 anos atrás
Scripts ab1231720c Use separate debug and release assemblies when building há 10 anos atrás
.gitignore 22028f04e4 Clear prefab diffs when saving prefabs for build há 10 anos atrás
BansheeEngine.sln 22028f04e4 Clear prefab diffs when saving prefabs for build há 10 anos atrás
Dependencies.txt 0ac4c456b4 DX11 meshes now render even if their vertex declaration doesn't match the shader há 10 anos atrás
Mono-3.2.3-IntegrationGuide.txt ed1d293920 Fix for an issue causing a nullref when releasing a managed instance há 11 anos atrás
Mono-3.4.0-IntegrationGuide.txt ed1d293920 Fix for an issue causing a nullref when releasing a managed instance há 11 anos atrás
Mono-3.8.0-IntegrationGuide.txt 24f99ac96e Various fixes in order to get handles operational há 11 anos atrás
NVTTCompilationGuide.txt bfc32ed4b4 Tiny doc updates há 11 anos atrás
README.md 7b9fe8d212 Albedo rendering in the deferred renderer working há 10 anos atrás
TODO.txt 4356e8e773 Main camera aspect ratio switching works há 10 anos atrás
TODOExperimentation.txt cf708239e6 Fixed a bug with scene view where the render texture would get stretched at smaller sizes há 10 anos atrás

README.md

BansheeEngine

A modern open-source game development toolkit. It aims to provide simple yet powerful environment for creating games and other graphical applications. A wide range of features are available, ranging from a math and utility library, to DirectX 11 and OpenGL render systems all the way to asset processing, fully featured editor and C# scripting.

Banshee aims to become a standard in game development by providing rock solid implementations of known and widely used techniques while also being flexible enough to implement constantly changing cutting edge techniques. Built from ground up to be a modern library using modern design principles - everything is modular, layered and decoupled as much as possible, making it easier to modify, replace or add functionality. Platform specific functionality is kept at a minimum making porting as easy as possible. Additionally every non-trivial method, class and field is documented.

On top of the powerful and flexible C++ core lies a fully featured editor and a C# scripting system. C# scripting makes your development easier by giving you access to the entire .NET library, along with fast iterations times while being safe and easy to write. Editor is fully extensible with the help of C# scripting so you may customize it for exact needs of your project.

Download/Install

Downloading pre-compiled binaries is the easiest way to check out Banshee if you don't want to go through the hassle of compiling it yourself. But be aware that this a development version and you should expect bugs and missing features.

Download binaries (Windows x64)

Compiling from source

To compile Banshee you will need Visual Studio 2013 (Express version will work, but earlier Visual Studio versions will not). Other Windows compilers might work but have not been tested. Support for more platforms and compilers will become available with time.

Aside from the source code you will also need dependencies available for download below. Dependencies should be extracted in the same folder as the root folder of the project.

Download dependencies

To compile DirectX render systems you will also need a separately installed DirectX SDK or Windows SDK. Check "Dependencies.txt" if you need more detailed information regarding used dependencies.

Features (currently available)

  • Editor

    • Asset management
    • Simple drag and drop import
    • Automatic reimport of externally modified assets
    • Asset modifications immediately reflected in-game
    • Version control friendly format
    • Powerful object inspector
    • Automatic GUI for script objects
    • Exposes properties for artists/designers
    • Customizable per-type
    • Level creation
    • Simple drag and drop interface
    • Traditional set of tools
    • Custom 2D and 3D tool support
    • Prefab system
    • Pre-built templates for level design
    • Easy to create and maintain complex levels
    • Hierarchical prefabs and instance specialization
    • Play in editor
    • Compile in editor
    • Immediately test changes
    • Pause and frame-step
    • Analyze and modify scene while playing
    • Fully extensible for game-specific needs
    • Easy to extend using scripting
    • Comprehensive extension scripting API
    • Extend almost anything
      • Editor windows
      • Object inspectors
      • 2D/3D tools
      • Automate common tasks
    • Game publishing
    • One click build process
    • Automatically detect required resources
    • Automatically package and output an executable
    • Customizable frontend
    • Dockable layout and floating windows
    • Custom skin & localization support
  • Core

    • Design
    • Built using C++14 and modern design principles
    • Clean layered design
    • Fully documented
    • Modular & plugin based
    • Minimal third-party dependencies
    • Multiplatform ready
    • Renderer
    • DX9, DX11 and OpenGL 4.3 render systems
    • Multi-threaded rendering
    • Flexible material system
      • Easy to control and set up
      • BansheeFX language for material definitions
      • Shader parsing for HLSL9, HLSL11 and GLSL
    • Asset pipeline
    • Easy to use
    • Asynchronous resource loading
    • Extensible importer system
    • Available importer plugins for:
      • FBX, OBJ, DAE meshes
      • PNG, PSD, BMP, JPG, ... images
      • OTF, TTF fonts
      • HLSL9, HLSL11, GLSL shaders
    • Powerful GUI system
    • Unicode text rendering and input
    • Easy to use layout based system
    • Many common GUI controls
    • Fully skinnable
    • Automatic batching
    • Support for texture atlases
    • Localization
    • Scripting
    • C# via Mono
    • Separate high level engine API
    • Integrated runtime for maximum performance
    • Full access to .NET framework
    • Integration with Visual Studio
    • Automatic serialization
      • Custom components
      • Custom resources
      • No additional code
      • Handles complex types and references
    • Other
    • CPU & GPU profiler
    • Virtual input
    • Advanced RTTI system
    • Native object serialization
    • Debug drawing
    • Crash reporting
    • Utility library
      • Math, file system, events, thread pool, task scheduler, logging, memory allocators and more

Features (upcoming)

  • DirectX 12/Vulkan support
  • Physically based renderer
  • Physics system integration
  • Audio system integration
  • Video system integration
  • Networking system integration
  • Animation
  • Mac & Linux support

Development state

Project is currently in active development. Current version is considered a preview version. Bugs are to be expected and new features will be added as development progresses.

Getting started

Banshee is a multi-layered engine that aims to be flexible enough to handle various needs. Therefore this section is split into two sub-sections, first one aimed for game developers (high-level C# programmers, artists, designers) and engine developers (low level C++ programmers).

Getting started (Game developers)

TODO - Create a simple editor project with a mesh, texture and a basic script. Show the user how to load the project, add the objects to scene, attach the script, tweak material & script values and start playing the game. Provide a small tutorial on the C# scripting API as well (creating a scene object, custom component, handling input, moving the camera).

Getting started (Engine developers)

Easiest way to get started with low-level Banshee programming is to check out the ExampleProject included with the source code. However to give you a taste here are a few code snippets.

Starting a minimal application

  RENDER_WINDOW_DESC renderWindowDesc;
  renderWindowDesc.videoMode = VideoMode(1280, 720);
  renderWindowDesc.title = "My App";
  renderWindowDesc.fullscreen = false;
	
  Application::startUp(renderWindowDesc, RenderSystemPlugin::DX11);
  Application::instance().runMainLoop();
  Application::shutDown();

Importing resources

  HMesh dragonModel = gImporter().import<Mesh>("Dragon.fbx");
  HTexture dragonTexture = gImporter().import<Texture>("Dragon.psd");

Adding and positioning a camera

  HSceneObject sceneCameraSO = SceneObject::create("SceneCamera");
  HCamera sceneCamera = sceneCameraSO->addComponent<Camera>(window);

  sceneCameraSO->setPosition(Vector3(40.0f, 30.0f, 230.0f));
  sceneCameraSO->lookAt(Vector3(0, 0, 0));

Adding an object for rendering

  HSceneObject dragonSO = SceneObject::create("Dragon");
  
  HRenderable renderable = dragonSO->addComponent<Renderable>();
  renderable->setMesh(dragonModel);
  renderable->setMaterial(dragonMaterial);

Adding GUI

  HSceneObject guiSO = SceneObject::create("GUI");
  HCamera guiCamera = guiSO->addComponent<Camera>(window);
  HGUIWidget gui = guiSO->addComponent<GUIWidget>(guiCamera);
  
  GUIPanel* guiPanel = gui->getPanel();
  GUILayout* guiLayout = guiPanel->addNewElement<GUILayoutY>();
  guiLayout->addNewElement<GUIButton>(HString(L"Click me!"));
  guiLayout->addNewElement<GUIButton>(HString(L"Click me too!"));

License

Banshee is offered completely free for personal or commercial use under the General Public License v3 (GPL v3). Read BansheeLicense.txt included in the License sub-directory for full license text. Licenses and credits for used third-party libraries and tools are included in the same directory.

Author

Banshee is developed by Marko Pintera. I've been a professional game developer for the last five years working on various mid-sized titles. My interests lie in engine and graphics development which I spend most of my free time on.

Contact me at e-mail or add me on LinkedIn.