Coder Social home page Coder Social logo

rtx's Introduction

RTX

Build Status

RTX ON

Welcome to RTX, a work-in-progress ray tracing engine built using Vulkan.

Overview

The engine leverages the NVIDIA's VK_NV_ray_tracing extension, which was the only available option when I started working on this. Consecuently, an NVIDIA RTX GPU is currently required to utilize the ray tracing pipeline. I plan to migrate the code to the cross-platform VK_KHR_ray_tracing_pipeline extension, now that I have a Steam Deck.

For those without an NVIDIA RTX GPU, the engine will gracefully fallback to a minimal rasterizer pipeline.

rasterization

Features

  • Utilizes the tinyobjloader library to load textured Wavefront OBJ models, only one model can be loaded.
  • Provides a simple UI with settings and stats using Dear ImGui.
  • A timing heat map of the time spent to draw each pixel.

heat map

  • Light reflection on metal and lambertian materials.
  • A single source of light. It's position and intensity can be adjusted in the UI.
  • Mouse support. Models can be rotated and the mouse wheel lets you zoom in or out.
  • Move around the scene using the WASD keys.

Build instructions

RTX can be built and executed on Linux, macOS, and Windows (with Git Bash and MSYS2). Ensure you have VulkanSDK 1.3 installed, although it should also work with Vulkan 1.2 after making a few modifications.

Linux

  • On Ubuntu, refer to the Dockerfile or follow this steps:
    • Install the VulkanSDK Ubuntu package.
    • Install the following packages: clang cmake curl git libgl-dev libx11-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev ninja-build.
  • On Arch Linux, install the following packages: clang cmake curl git libglvnd libx11 libxcursor libxi libxinerama libxrandr ninja vulkan-devel.

macOS:

  • Install the VulkanSDK Installer.
  • Install Hombrew and the required packages using the following command:
brew install cmake git ninja

To build and run RTX, follow these steps:

  • Clone the repo and its submodules:
git clone --recursive https://github.com/Teledhil/rtx.git
  • Build with:
./build.sh
  • Launch the render with:
./_build/bin/rtx

References

rtx's People

Contributors

teledhil avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.