Skip to content

TomCrypto/Insight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Insight

The Insight library aims to bring interactive, high quality, and physically accurate human eye diffraction features to HDR-capable software, such as video games or computer graphics renderers. The library is designed to be unobtrusive yet highly configurable, and takes full advantage of modern graphics hardware. Insight is tuned for use in DirectX 11 applications and is developed in C#, though the code can be readily ported to other languages.

Implementation Status

The library is currently a work in progress and is not ready for use.

Aperture Simulation

✔ Added initial version of the aperture composition algorithm

Diffraction Spectrum

✔ Can generate diffraction spectra from arbitrary apertures (of the right dimension)

✘ No support for different color systems for wavelength -> RGB conversion (only CIE at the moment)

FFT Convolution

✔ Properly (and efficiently) convolves on all settings

✔ Supports arbitrary input sizes to some extent

✘ Does not handle aspect ratio properly (diffraction spectrum is incorrectly stretched)

Sample

✔ Has a working pipeline and tonemapping algorithm

✔ First iteration of the test scene (not very pretty but it works)

✔ Configuration GUI is up and running

Misc.

✘ No documentation available yet - it will be written as the library interface stabilizes

Build Instructions

The included C# solution contains two projects, the library itself and an accompanying sample. The latter depends on the former, but if you are using Visual Studio 2012 this should be largely transparent. To compile the library and try out the sample, simply build the solution inside the source folder, and run the sample project.

Both the library and the sample are powered by the SharpDX project, and require DirectX 11. The SharpDX binaries are served via NuGet as part of the build process, however should this not work for any reason, you can always download the latest SharpDX release and adjust assembly references in both projects as needed.

Sample Program

The provided sample is intended to showcase the library. It features many real-time configuration options, and lets the user navigate a simple HDR environment while observing the diffraction effects rendered by Insight.

Screenshot of the sample program

The library is still very much a work in progress.

Documentation

A complete API documentation is provided for the Insight library, along with some theoretical background helpful in understanding how to correctly use the library, and is available in the Portable Document Format (PDF).

Compatibility

Insight runs under any platform which supports DirectX 11 - in other words, Windows Vista and up. However, the API exposed by the library is fairly generic, and alternative implementations may choose to follow it.

About

Human Eye Lens Diffraction Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages