Skip to content
/ Spark Public

A modular and scalable graphics engine

License

Notifications You must be signed in to change notification settings

NadavT/Spark

Repository files navigation

Spark

Spark is an a graphics engine with performance in mind.

Prerequisites

  • Windows (Currently working only on this os)
  • cmake (version >= 3.17)
  • MSVC compiler which support cpp17 (currently the only supported compiler - tested on msvc142 as provided by vs2019)
  • Vulkan sdk (version >= 1.2) and a gpu+driver which supports it
  • git lfs

Compiling and running

clone the repo:

git clone --depth 1 --recurse-submodules --shallow-submodules https://github.com/NadavT/Spark Spark
cd Spark

Copy resourses (if git lfs fails)

  1. Download the resourses from here
  2. Unzip resourses to the Sandbox directory

build

Open a supported build shell (x64 Native Tools Command Prompt for example.)

using nmake - provided by MSVC by default:

mkdir install
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_CXX_CLANG_TIDY="" -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" ..
cmake --build . -j 6
cmake --install . --component sandbox

using ninja - preferred if installed (support parallel compilation):

mkdir install
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_CXX_CLANG_TIDY="" -DCMAKE_BUILD_TYPE=Release -G "Ninja" ..
cmake --build . -j 6
cmake --install . --component sandbox

Run

Run sandbox.exe from install dir.

Features:

Moving around:

  • Rotating cam using middle mouse button and moving the mouse.
  • Panning cam using middle mouse button + shift and moving the mouse.

While object is selected:

  • G - for moving the object
  • R - for rotating the object
  • S - for scaling the object
  • T - for all the above
  • Del - To remove

For free cam:

  • Use space or Run button to enter.
  • Use space to stop.
  • Use W,A,S,D to move around.
  • Use Left ctrl, Left shift to go up and down.
  • Use mouse to look around.

About

A modular and scalable graphics engine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published