Giter Site home page Giter Site logo

arhix52 / strelka Goto Github PK

View Code? Open in Web Editor NEW
17.0 1.0 1.0 7.97 MB

Realtime render for USD

CMake 17.47% C++ 71.04% C 3.47% Cuda 4.38% Metal 2.50% Objective-C++ 0.86% Shell 0.15% Python 0.14%
glfw imgui metal metal-cpp omniverse optix pathtracing raytracing usd

strelka's Introduction

Strelka

Path tracing render based on NVIDIA OptiX + NVIDIA MDL and Apple Metal

OpenUSD Hydra render delegate

Kitchen Set from OpenUSD

Basis curves support

Hairs Einar

Project Dependencies

OpenUSD https://github.com/PixarAnimationStudios/OpenUSD

  • Set evn var: USD_DIR=c:\work\USD_build

OptiX

  • Set evn var: OPTIX_DIR=C:\work\OptiX SDK 8.0.0

Download MDL sdk (for example: mdl-sdk-367100.2992): https://developer.nvidia.com/nvidia-mdl-sdk-get-started

  • unzip content to /external/mdl-sdk/

LLVM 12.0.1 (https://github.com/llvm/llvm-project/releases/tag/llvmorg-12.0.1) for MDL ptx code generator

Strelka uses conan https://conan.io/

detect conan profile: conan profile detect --force

  1. conan install . --build=missing --settings=build_type=Debug
  2. cd build
  3. cmake .. -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE=generators\conan_toolchain.cmake
  4. cmake --build . --config Debug

On Mac/Linux:

  1. conan install . -c tools.cmake.cmaketoolchain:generator=Ninja -c tools.system.package_manager:mode=install -c tools.system.package_manager:sudo=True --build=missing --settings=build_type=Debug
  2. cd build/Debug
  3. source ./generators/conanbuild.sh
  4. cmake ../.. -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Debug
  5. cmake --build .

Installation

Launch

Synopsis

Strelka -s <USD Scene path> [OPTION...] positional parameters

-s, --scene arg       scene path (default: "")
-i, --iteration arg  Iteration to capture (default: -1)
-h, --help            Print usage

To set log level use

`export SPDLOG_LEVEL=debug`

The available log levels are: trace, debug, info, warn, and err.

Example

./Strelka -s misc/coffeemaker.usdc -i 100

USD

USD env:
    export USD_DIR=/Users/<user>/work/usd_build/
    export PATH=/Users/<user>/work/usd_build/bin:$PATH
    export PYTHONPATH=/Users/<user>/work/usd_build/lib/python:$PYTHONPATH

Install plugin:
    cmake --install . --component HdStrelka

License

strelka's People

Contributors

arhix52 avatar jswark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

strelka's Issues

Stop criteria for PathTracing on reaching max samples count

Set Total Samples Per Pixel (SPP) using console arg and from UI - default 64
create setting spp for single path tracing subframe - default 1 (console arg + ui)
On reaching criteria stop PT and present accumulated image. Invalidate criteria on camera changes and setting changes.

Tonemapping

Convert tonemapper kernels to cuda (reinhard, aces, filmic)
expose parameters to UI

OptiX: add albedo outputs: ldr, hrd

output RGB image, LDR - after tonemapping values range: 0.0-1.0
HDR - 0.0 - 10000.0 no tone-mapping or gamma correction should be performed on HDR

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.