Giter VIP home page Giter VIP logo

donmakmak / falcor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nvidia/falcor

1.0 2.0 0.0 120.82 MB

Real-time rendering research framework

License: BSD 3-Clause "New" or "Revised" License

Batchfile 0.02% C++ 34.48% C 14.84% Objective-C 0.23% HTML 48.78% Makefile 0.01% CMake 0.14% CSS 0.10% JavaScript 0.01% C# 0.79% Shell 0.01% HLSL 0.29% PostScript 0.01% GLSL 0.02% Cuda 0.06% Python 0.20%

falcor's Introduction

Falcor 2.0 alpha

Falcor is DirectX 12 real-time rendering framework. It aims to improve productivity of research and prototype projects.
Its features include:

  • Abstract many common graphics operations, such as shader compilation, model loading and scene rendering.
  • VR support using OpenVR.
  • Common rendering effects such as shadows and post-processing effects.

This is an alpha version. The interfaces are not final yet and there might be some performance/stability issues.
If you'd like OpenGL support, please consider using Falcor 1.0 ('rel-1.0' branch). Note that though Falcor 1.0 is not supported anymore, it is stable and optimized.

Prerequisites

NVAPI Support

NVIDIA's NVAPI SDK exposes a set of GPU features that are not part of the DirectX spec. Using it with Falcor is not mandatory. However, Falcor does abstract some of those features. For example, the SceneRenderer VR mode relies on Single Pass Stereo support. If you want to use it:

  • Please download the NVAPI SDK
  • Unzip the content of the package to Framework\Externals
  • Rename the folder to 'NVAPI'

Creating a New Project

  • If you haven't done so already, create a visual-studio solution and project for your code. Falcor only supports 64-bit builds, so make sure you have a 64-bit build configuration.
  • Add Falcor.props to your project (Property Manager -> Right click your project -> Add existing property sheet).
  • Add Falcor.vcxproj to your solution.
  • Add a reference to Falcor in your project (Solution Explorer -> Right click your project -> Properties -> Common Properties -> References -> Add new reference -> Choose Falcor).

Sample Class

This is the bootstrapper class of the application. Your class should inherit from it and override its protected methods which serve as the callback functions.
A good place to start would be the ModelViewer sample.

Build Configurations

Falcor has two build configurations:

  • Debug - This configuration will create an OpenGL debug context. By default, file logging and message boxes are enabled, and there is a lot of runtime error checking.
  • Release - This configuration creates a regular, non-debug context. Logging and most runtime error checks are disabled. Use this configuration to measure performance.

Falcor Configuration

FalcorConfig.h contains some flags which control Falcor's behavior.

  • _LOG_ENABLED - Enable/disable log messages. By default, it is set to false for release build and true for debug builds.
  • _PROFILING_ENABLED - Enable/Disable the internal CPU/GPU profiler. By default, it is set to true.

Data Files

Data files include shader files, textures and models.
By default, Falcor looks for data files in the current locations:

  • The working directory. In some cases this is not the same as the executable directory. For example, if you launch the application from Visual Studio, by default the working directory is the directory containing the project file.
  • The executable directory.
  • An optional environment variable named FALCOR_MEDIA_FOLDERS. It is a semicolon-separated list of folders.
  • Any directory that was added to the data directories list by calling addDataDirectory().
  • A directory called "Data/" under any of the above directories.

To search for a data file, call findFileInDataDirectories().

Deployment

The best practice is to create a directory called "Data/" next to your project file and place all your data files there (shaders/models). If that directory exists, Falcor will copy it to the output directory, making the output directory self-contained (you can zip only the output directory and it should work). If not, you will have to copy the data files yourself.

Citation

If you use Falcor in a research project leading to a publication, please cite the project. The BibTex entry is

@Misc{Benty16,
author = {Nir Benty and Kai-Hwa Yao and Anton S. Kaplanyan and Conor Lavelle and Chris Wyman},
title = {The {Falcor} Rendering Framework},
year = {2016},
month = {08},
url = {https://github.com/NVIDIA/Falcor},
note= {\url{https://github.com/NVIDIA/Falcor}}
}

falcor's People

Contributors

nbentynv avatar clavellenv avatar kyaonv avatar tangent-vector avatar ashwinnv avatar apnv avatar silentdirge avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.