GPUOpen-LibrariesAndSDKs / FireRays_SDK
- среда, 18 мая 2016 г. в 03:11:34
C++
FireRays is ray intersection acceleration library provided by AMD which makes the most of AMD hardware and allows for efficient ray queries independently of the generation of underlying AMD hardware.
FireRays is ray intersection acceleration library provided by AMD which makes the most of AMD hardware and allows for efficient ray queries independently of the generation of underlying AMD hardware.
The source tree consist of the following subdirectories:
The library is cross-platform and the following compilers are supported:
Visual Studio 2015
Xcode 4 and later
GCC 4.8 and later
Python (for --embed_kernels option only)
AMD OpenCL APP SDK 2.0+ is also required for the standalone app build.
./premake/win/premake5.exe vs2015
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install homebrew/science/openimageio
./premake/osx/premake5 xcode4
./premake/osx/premake5 gmake
make config=release_x64
on Ubuntu: install complimentary libraries:
sudo apt-get install g++
install OpenImageIO:
sudo apt-get install libopenimageio-dev
Create Makefile:
./premake/linux64/premake5 gmake
make config=release_x64
Available premake options:
--package
will package the library for a binary release in dist
folder../Tools/premake/win/premake5.exe --package
--submit
submit SDK. This option will generate project with --embed_kernels
and build release version, run unit tests, pack it using script --package
option, check standalone SDK build and push changes to SDK repo.
devenv
should be in PATH
to have possibility to build solution via command line.
SDK repo location expected to be ../FireRays_SDK
. checkout & clean -dfx made before adding changes to SDK git. Commit will be pushed to remote named origin
../Tools/premake/win/premake5.exe --submit
export LD_LIBRARY_PATH=<FireRays_SDK path>/FireRays/lib/x64/:${LD_LIBRARY_PATH}
cd App
../Bin/Release/x64/App64
Possible command line args:
-p path
path to mesh/material files-f file
mesh file to render-w
set window width-h
set window height-ao r
run in ambient occlusion mode and set AO radius-nb num
run in GI mode and calculate num bounces of light-cpx x -cpy y -cpz z
set camera position-tpx x -tpy y -tpz z
set camera targetThe library has been tested on the following hardware and OSes:
If is missing try to specify OpenCL SDK location.
AMD:
export $AMDAPPSDKROOT=<SDK_PATH>
NVIDIA:
export $CUDA_PATH=<SDK_PATH>