RadeonRays_SDK
RadeonRays_SDK copied to clipboard
Simple Example
I'm going to start working with the Radeon Rays SDK. For starting it would be nice to have a simple example. Is it possible to get an example to render a triangle or a cube? Cheers, Markus
@markusfehr , we do not have simple rendering tutorial (we are working on publishingg a series on gpuopen though). However, for now you can take a look at the unit tests. Many of them simply create a set of simple shapes and throw a few rays into the scene. If you need further assistance you can email me at [email protected]
@yozhijk I created a a little Makefile
which can be placed in Tutorials/Triangle
and compiles a Triangle
binary since I am trying to get a minimal example running.
But it fails on the assert in main.cpp:144
which wonders me since the App with the Cornell Box runs fine and detects the GTX 960 without a problem.
SRC= main.cpp \
../Tools/shader_manager.cpp \
../../RadeonRays/src/intersection/radeon_rays.cpp \
../../RadeonRays/src/intersection/radeon_rays_impl.cpp \
../../Calc/src/calc.cpp \
../../RadeonRays/src/device/calc_intersection_device.cpp \
../../RadeonRays/src/device/calc_intersection_device_cl.cpp \
../../RadeonRays/src/util/options.cpp \
../../RadeonRays/src/primitive/mesh.cpp \
../../RadeonRays/src/world/world.cpp \
../../RadeonRays/src/strategy/bvhstrategy.cpp \
../../RadeonRays/src/strategy/fatbvhstrategy.cpp \
../../RadeonRays/src/strategy/hlbvh_strategy.cpp \
../../RadeonRays/src/strategy/bvh2lstrategy.cpp \
../../RadeonRays/src/accelerator/bvh.cpp \
../../RadeonRays/src/accelerator/split_bvh.cpp \
../../RadeonRays/src/accelerator/hlbvh.cpp \
../../RadeonRays/src/translator/fatnode_bvh_translator.cpp \
../../RadeonRays/src/translator/plain_bvh_translator.cpp
INC= -I../../RadeonRays/include/ \
-I../Tools/ \
-I../../Calc/inc/
LIB= -lglut \
-lGL \
-lGLEW \
-ldl
FLAGS= -std=c++11
Triangle:
g++ $(FLAGS) $(SRC) $(INC) $(LIB) -o $@
Also the main.cpp
includes ../tools
which should be Uppercase to work.
Am I missing something in the creation of the Intersection device ?