Archived
1
Fork 0
3D game engine focusing on real-time graphics
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2021-02-04 09:01:21 -05:00
addon Add initial files 2020-08-11 12:07:21 -04:00
cmake Fix windows build 2020-09-23 08:44:14 -04:00
data Add empty material 2021-02-04 09:01:21 -05:00
engine Enable default imgui font again on windows 2021-02-04 08:28:19 -05:00
example Add skeleton for future example 2020-12-28 15:45:09 -05:00
extern Make tools compile successfully under MSVC 2020-12-28 15:22:38 -05:00
misc Update PCSS and Sponza screenshots 2020-08-19 22:33:35 -04:00
platforms Stop Windows platform from crashing when creating a new window 2020-12-28 15:33:11 -05:00
shaders Fix vulkan image transitions 2021-02-03 09:04:30 -05:00
tools Add debug names for textures 2021-02-04 08:21:40 -05:00
.gitignore Add some weird VS folder to .gitignore 2020-12-28 15:33:18 -05:00
CMakeLists.txt Add skeleton for future example 2020-12-28 15:45:09 -05:00
LICENSE Add initial files 2020-08-11 12:07:21 -04:00
README.md Update README to add missing features 2020-09-22 22:16:45 -04:00

Prism

A cross-platform game engine that integrates a real-time physically based workflow and makes it easy to get started writing games or other graphical applications in C++!

I've been using this to actually develop a game i've been working on, and includes multiple systems to facilitate gameplay (like the UI and audio systems) along with your usual engine systems (like Renderer, and Log). However, the same engine is also proven to be useful for other graphical applications, like the Prism editor.

Although I developed this on macOS, it has been tested on Windows, Linux, iOS, iPadOS and tvOS machines. Apart from some platform glue, these share a majority of the same code!

pcss sponza

buddha custom models

The sibenik, sponza and buddha models shown are from the McGuire Computer Graphics Archive, other models shown are created by me.

Features

Here is a list of some of the notable features of Prism:

  • Cross platform graphics API is used for rendering
    • Vulkan and Metal backends available
      • Shaders are written in GLSL, and compiled to SPIR-V or MSL offline and at runtime using SPIRV-Cross and glslang.
  • Windowing and System abstraction
    • main() and other platform-specific tidbits are abstracted as well, for easy support on non-desktop platforms.
    • HiDPI is also supported!
    • If available on the platform, multiple windows are supported as well.
    • Support for querying whether or not the platform is in light/dark mode (where supported). Currently, this only switches between the light/dark dear imgui themes.
  • Dear ImGui used for debug/editor UIs
    • Uses the new docking/viewport branch!
    • Automatic DPI scaling on fonts for crisp rendering when the window is in a HiDPI environment.
    • Custom backend built on top the GFX api and other platform agnostic systems.
    • Plenty of custom widgets available for easily creating debug tools, see imgui_stdlib.h and imgui_utility.hpp!
  • Entity-Component system for scene authoring
  • Asset management
    • Custom model pipeline allowing for super fast model loading and easy authoring.
      • Includes a custom blender addon for easy export!
    • Assets are referenced from disk, and only loaded once - unloaded once they are no longer referenced.
    • Thumbnails are created by the editor and stored on disk until further use.
  • Custom UI system for easy authoring
    • UIs are declared in JSON, and there is a graphical editor available as well.
    • They can even be placed in the world with a UI component!
  • Custom math library
    • Quaternions, matrices, vectors, rays, and more are available!
    • Infinite perspective matrices are also available and used by default.
  • Advanced rendering techniques
    • Rendering is consistent regardless of platform or API used!
      • Where older or underperforming GPUs are supported (for example, an Apple TV 4K, or a Thinkpad X230), the engine supports disabling expensive features like IBL or point light shadows and has other scalability options.
    • Real-time physically based rendering including using scene probes for image-based lighting.
    • Node-based material editor for easy authoring within the engine.
    • Skinned mesh support with animation.
    • PCSS for soft shadows, supported on every type of light.
    • Experimental depth of field, which looks better than a cheap gaussian blur by rendering seperate near/far fields.
    • Experimental dynamic resolution.
    • Automatic eye adapation using compute kernels.
  • Editors supporting scene, cutscene, material authoring
    • Multidocument workflow similar to UE4.
    • Undo/redo system.
    • Transform handles for easy object manipulation.

Usage

Requirements

  • CMake
  • Support for Vulkan or Metal
  • C++ compiler that fully supports C++17
    • MSVC, Clang, and GCC have been tested

There is no example available, but if you clone this repository and include it in your cmake tree, use the function add_platform_executable from AddPlatformExecutable.cmake to create a new Prism app.