OGRECave / ogre-next

aka ogre v2 - scene-oriented, flexible 3D C++ engine
https://ogrecave.github.io/ogre-next/api/latest
Other
1.09k stars 235 forks source link
direct3d11 graphics metal opengl vulkan

OGRE-Next 3D (Object-Oriented Graphics Rendering Engine Next Generation)

Ogre-Next is a 3D graphics rendering engine. Not to be confused with a game engine which provides Networking, Sound, Physics, etc.

Ogre-Next 3.0 has had a substantial overhaul to focus on high performance graphics using Data Oriented Design with:

This makes Ogre-Next suitable for projects aiming to have a large number of objects on screen, or have tight rendering budgets such as VR.

This is the repository where the 2.x branch is actively developed on. Active development of the 1.x branch happens in https://github.com/OGRECave/ogre

Both branches are in active development. See What version to choose? to understand the differences between 1.x and 2.x

Both repositories are compatible for merging, but have been split in separate ways as their differences have diverged long enough.

Build Status (github)
Linux CI
MSVC Build status
Clang-Format Style Consistency CI

Supported Backends

Supported Platforms

(*) Metal Backend is highly recommended. GL backend is supported in macOS, but the window subsystem hasn't been ported to 3.0 yet.
(**) Device must be Vulkan-capable. Android 7.0+ is supported; but Android 8.0+ is strongly recommended due to lots of driver bugs in older versions.

Supported Compilers

Samples

For a list of samples and their demonstrated features, refer to the samples section in the manual.

Who's using it?

Yoy Simulators

Skyline Game Engine

Racecraft

Sunset Rangers

Stunt Rally 3

Features

Forward Clustered

PBS & HDR

Area Lights

Voxel Cone Tracing (VCT) GI

Instant Radiosity GI

Voxel Cone Tracing + Per Pixel Parallax Corrected Cubemap (PCC) Hybrid

OpenVR Integration

Dependencies

Dependencies (Windows)

Dependencies (Linux)

Debian-based. Run:

sudo apt-get install libfreetype6-dev libfreeimage-dev libzzip-dev libxrandr-dev libxaw7-dev freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev libx11-xcb-dev libxcb-keysyms1-dev doxygen graphviz python-clang libsdl2-dev cmake ninja-build git

Arch-based Run:

pacman -S freeimage freetype2 libxaw libxrandr mesa zziplib cmake gcc

Quick Start

We provide quick download-build scripts under the Scripts/BuildScripts/output folder.

You can download all of these scripts as a compressed 7zip file. We also have an archive if you're looking for scripts to build older versions.

If you're on Linux, make sure to first install the dependencies (i.e. run the sudo apt-get above)

Download and Building manually

If for some reason you want to do it by hand, there's no script for your platform, or you want to learn what the scripts are actually doing, see Setting Up Ogre from the Ogre manual.

Manual

For more information see the online manual. The manual can build on Linux using Doxygen:

cd build/Debug
ninja OgreDoc

Resolving Merge Conflicts in 3.0

Users who run a customized version of Ogre-Next may found rebasing to the latest version a near impossible job due to the sheer amount of minor merge conflicts when upgrading to Ogre-Next 3.0

See this guide on how to deal with them more easily.

OgreNext 3.0 changes

For details see What's new? from our manual.

OgreNext versioning

Since OgreNext 3.0 we've modified our versioning scheme to be more consistent with other projects and what developers expect.

Our Github ticket and Forum post explain it in detail. Basically it boils down to:

OgreNext now uses a modified variation of Semantic Versioning (MAJOR.MINOR.PATCH).

As a result:

For OgreNext <= 2.3 the versioning stays the same.

Support and Resources

Samples

If you want to test or evaluate Ogre, you can try the prebuilt samples for Windows.

Unit Tests

To run the unit tests, go to Scripts/UnitTesting and to generate the comparison files type:

python3 RunUnitTests.py gl ../../build/Debug/bin/ ./JSON ../../build/UnitTestsOutput/

to check the diff against already generated data:

python3 RunUnitTests.py gl ../../build/Debug/bin/ ./JSON ../../build/UnitTestsOutput/ ../../build/UnitTestsOutput_old/

License

OGRE-Next (www.ogre3d.org) is made available under the MIT License.

Copyright (c) 2000-present Torus Knot Software Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.