Hi,
It feels like I am running in a dead end here…
I want to write a C raytracer to evaluate the performance benefit of all the Space Partitioning algorithms in Optix against our current ones so we might switch to Optix.
But the C samples in die SDK 4.0.0, 3.9.1 and 3.7.0 are written in C++ only SDK 3.7.1 has sample5
which is actually C.
So after reading the Quickstart_Guide and several Programming Guides I started to examine all the different SDK Samples.
What I got now is a simple Optix Programm that fills a buffer with a certain color and writes it to a ppm. So far so good.
Now I am looking for a simple Triangle Mesh Example.
Since I have a lot of questions which are not answered by the MeshViewer example.
I found an OptixMesh which has a function called ‘translateMeshToOptiX’ in which the buffers for optix are set but this is C++ again.
So am I assuming correct that even for a triangle Mesh I need to specify a Bounds and Intersection Program like in ‘/cuda_compile_ptx_generated_triangle_mesh.cu.ptx’ ?
If so where does ‘intersect_triangle’ from ‘triangle_mesh.cu’ come from ?
Also I found a ‘primeSimple’ example which appears to do the shading on the CPU would it be possible to get the shading done on the GPU via callable Programs to allow recursion easily ?
So all in all a lot off questions, Regards ~xoryouyou