Good Morning,
I have successfully created an OptiX 7 “hello world” whereby a simple triangle is saved back as a PPM file. This code uses Geometry Accelerated Structure (GAS) for a single triangle that is rendered to output buffer. This is a good first step, but I would like to know how to render a triangle using an data read from an input file. Is the solution as simple as replacing the vertices hardcoded in the GAS with data parsed from an input file? The idea is to be able to read in a mesh of triangles and save the results of Ray-Trace to an external PPM file.
Thank you very much for any hints/help.