Skip to content

learn-computer-graphics/the-forge-samples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • C++ 73.6%
  • GLSL 16.2%
  • CMake 6.6%
  • JavaScript 1.4%
  • HLSL 1.2%
  • Batchfile 1.0%