Foton
is a Vulkan based graphics engine. It uses a Python 3 interpreter to create and edit 3D scenes at runtime, and has support for Jupyter notebook and Jupyter lab environments. Since it uses a python interpreter instead of a scripting language like LUA, users can import their own modules, like PyTorch or Tensorflow, and take advantage of popular python linear algebra libraries like numpy.
Since Foton uses Vulkan as it's back end, it can be built cross platform. It has support for VR headsets through OpenVR, and can optionally use Nvidia's RTX Raytracing extension to improve render quality.
At the moment, Foton is mainly used for rapid prototyping in both C++ and in python. Forking is highly encouraged, as well as GitHub issues!
git clone --recurse-submodules https://github.com/n8vm/Pluto
- Install a version of CMake greater than or equal to 3.13 from here: CMake Download Website
sudo apt update
sudo apt install lunarg-vulkan-sdk swig3.0 xorg-dev python3.6-dev gcc-8 g++-8
- Optionally install Visual Studio Code here: Visual Studio Code
mkdir build
mkdir install
- (If building from commandline)
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-8 ../
cmake --build . --target install --config Release
- (If building from visual studio code)
code .
CTL
+Shift
+P
- Type and enter
CMake: configure
- Type and enter
CMake: install
- Open command prompt in "Administrator Mode"
- Install Chocolatey:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install cmake python3 swig
- Install the LunarG SDK from here: LunarG Download Website
- Install Visual Studio Code and Visual Studio 2017 C++ Build Tools (Recommended) from here Visual Studio Code and here Visual Studio Build Tools, or just get Visual Studio 2017.
- If using Visual Studio Code, make sure to download the CMake Tools extension, the C/C++ extension from Microsoft, and optionally a GLSL syntax highlighting extension
- mkdir build
- mkdir install
- (If using Visual Studio Code)
code .
CTL
+Shift
+P
- Type and enter
CMake: configure
- Type and enter
CMake: install
- (If using Visual Studio 2017)
cd build
cmake -G "Visual Studio 15 2017 Win64
- Open the generated Visual Studio Solution File (the .sln)
- Right click the "INSTALL" target, and click build
- Install the LunarG SDK from here: [LunarG Download Website] (https://vulkan.lunarg.com/sdk/home#mac)
- Follow this guide: LunarG MacOS Getting Started
- Add
vulkansdk/macOS/bin
to yourPATH
- Optionally set
VK_LAYER_PATH
tovulkansdk/macOS/etc/vulkan/explicit_layer.d
to support validation layers - Set
VK_ICD_FILENAMES
tovulkansdk/macOS/etc/vulkan/icd.d/MoltenVK_icd.json
- Set
VULKAN_SDK
tovulkansdk/macOS
brew install cmake
brew install swig
mkdir build
mkdir install
- (If building from commandline)
cd build
cmake -DCMAKE_BUILD_TYPE=Release ../
cmake --build . --target install --config Release
- (If building from visual studio code)
code .
CTL
+Shift
+P
- Type and enter
CMake: configure
- Type and enter
CMake: install