Skip to content

Latest commit

 

History

History
91 lines (55 loc) · 2.82 KB

README.md

File metadata and controls

91 lines (55 loc) · 2.82 KB

The Forge Samples

Unofficial implementation of multiple rendering techniques using The Forge rendering engine. Based on the repository the-forge-glfw by Tim Barnes for ease of use.

Follow step by step tutorials for these samples on learn-computer-graphics.

🚩 Table of Contents

🏗️ Show Build steps

🧩 Show Samples

Build steps

Prerequisites

You need to install CMake to build the project, and a C++ compiler which handles C++14.

Linux

sudo apt-get install build-essential libreadline-dev glslang-tools

Windows

To get the MSVC compiler, you need to install Visual Studio (and not VSCode), and select C++ development during installation.

Build and Run

You can handle the CMakeLists.txt in any way you like, here's some way to use it :

Option 1: CLI

If you are on windows you can run the GEN_CMAKE.bat file. Else you can also open a command line and run the following commands :

mkdir build
cd build
cmake .. -A x64 -DD3D12=OFF -DVULKAN=ON
make

To run the project, go to the build folder and run the executable fo your wanted sample

Option 2: Visual Studio

Open this folder with the CMake... option in file->open on Visual Studio. Press f7 to build and f5 to run the project.

Option 3: VSCode

Use the CMakeTools plugin, build with f7 then run with f5 (but be careful to be on the right platform, there is a launch file for windows and for linux).

Warning : Currently there is a link error when building on windows with vscode

Samples

Getting Started

This sample show the most basic example with a triangle rendered on screen

This tutorial show how to render a rotating 3D object