Skip to content

MetaTooy/FlaxEngine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flax Engine

Flax Engine is a high quality modern 3D game engine written in C++ and C#. From stunning graphics to powerful scripts - Flax can give everything for your games. Designed for fast workflow with many ready to use features waiting for you right now. To learn more see the website (www.flaxengine.com).

This repository contains full source code of the Flax Engine (excluding NDA-protected platforms support). Anyone is welcome to contribute or use the modified source in Flax-based games.

Development

Screenshots

pbr-rendering rendering performance

Getting started

Follow the instructions below to compile and run the engine from source.

Flax plugin for Visual Studio

Flax Visual Studio extension provides better programming workflow, C# scripts debugging functionality and allows to attach to running engine instance to debug C# source. This extension is available to download here.

Windows

  • Install Visual Studio 2015 or newer
  • Install Windows 8.1 SDK or newer (via Visual Studio Installer)
  • Install Microsoft Visual C++ 2015 v140 toolset or newer (via Visual Studio Installer)
  • Install .Net Framework 4.5.2 SDK/Targeting Pack (via Visual Studio Installer)
  • Clone repo (with LFS)
  • Run GenerateProjectFiles.bat
  • Open Flax.sln and set solution configuration to Editor.Development and solution platform to Win64
  • Set Flax (C++) or FlaxEngine (C#) as startup project
  • Compile Flax project (hit F7 or CTRL+Shift+B)
  • Run Flax (hit F5 key)

When building on Windows to support Vulkan rendering, first install the Vulkan SDK then set an environment variable to provide the path to the SDK prior to running GenerateProjectFiles.bat: set VULKAN_SDK=%sdk_path%

Linux

  • Install Visual Studio Code
  • Install Mono (https://www.mono-project.com/download/stable)
  • Install Vulkan SDK (https://vulkan.lunarg.com/)
  • Install Git with LFS
  • Install requried packages: sudo apt-get install libx11-dev libxcursor-dev libxinerama-dev nuget autoconf libogg-dev automake build-essential gettext cmake python libtool libtool-bin libpulse-dev libasound2-dev libjack-dev portaudio19-dev
  • Install compiler sudo apt-get install clang lldb lld (Clang 6 or newer)
  • Clone repo (with LFS)
  • Run ./GenerateProjectFiles.sh
  • Open workspace with Visual Code
  • Build and run (configuration and task named Flax|Editor.Linux.Development|x64)

Mac

Workspace directory

  • Binaries/ - executable files
    • Editor/ - Flax Editor binaries
    • Tools/ - tools binaries
  • Cache/ - local data cache folder used by the engine and tools
    • Intermediate/ - intermediate files and cache for engine build
      • ProjectName/ - per-project build cache data
      • Deps/ - Flax.Build dependencies building cache
    • Projects/ - project files location
  • Content/ - assets and binary files used by the engine and editor
  • Development/ - engine development files
    • Scripts/ - utility scripts
  • packages/ - NuGet packages cache location
  • Source/ - source code location
    • Editor/ - Flax Editor source code
    • Engine/ - Flax Engine source code
    • Platforms/ - per-platform sources and dependency files
      • DotNet/ - C# dependencies
      • Editor/ - Flax Editor binaries
      • PlatformName/ - per-platform files
        • Binaries/ - per-platform binaries
          • Game/ - Flax Game binaries
          • Mono/ - Mono runtime files and data
          • ThirdParty/ - prebuilt 3rd Party binaries
    • Shaders/ - shaders source code
    • ThirdParty/ - 3rd Party source code
    • Tools/ - development tools source code

Licensing and Contributions

Using Flax source code is strictly governed by the Flax Engine End User License Agreement. If you don't agree to those terms, as amended from time to time, you are not permitted to access or use Flax Engine.

We welcome any contributions to Flax Engine development through pull requests on GitHub. Most of our active development is in the master branch, so we prefer to take pull requests there (particularly for new features). We try to make sure that all new code adheres to the Flax coding standards. All contributions are governed by the terms of the EULA.

About

Flax Engine – multi-platform 3D game engine

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 45.9%
  • C# 44.1%
  • ASP.NET 6.2%
  • GLSL 1.2%
  • HLSL 1.1%
  • C 0.9%
  • Other 0.6%