Hi, I’m still beginner of OptiX.
I still have a lot of questions about the sdk sample.
The tutorial samples (especially the optiX tutorials) in the NVIDIA OPTIX SDK are not enough to be described in the PDF.
Here are the questions.
- sutil_sdk: sampleConfig.h - This header declares the directory path. However, I do not understand how this path is used in the samples (OptiX-Tutorial Porject). Most of the samples are taken for granted, but I do not know.
Here are some things I did not understand (in the sample optixTutorial.cpp):
// load the ptx source associated with tutorial number
std :: stringstream ss;
ss << “tutorial” << tutorial_number << “.cu”;
std :: string tutorial_ptx_path = ss.str ();
tutorial_ptx = sutil :: getPtxString (SAMPLE_NAME, tutorial_ptx_path.c_str ());
// originally what is needed for the variable tutorial_ptx?
// ss is the name of the .cu file, getPtxString’ s output is may be the file path.
ptx = sutil :: getPtxString (SAMPLE_NAME, “parallelogram.cu”);
const char * ptx = sutil :: getPtxString (SAMPLE_NAME, “box.cu”);
Exactly I want to change (sutil :: getPtxString) instead.
createProgramFromPTXString (sutil :: getPtxString (NULL, “triangle_mesh.cu”), “mesh_bounds”)
I am sorry for the rudimentary question. But I should have asked.