Adding Multiple Cameras

I need to have at least 2 cameras in my scene. 1 camera to view the scene, and another to act as a RT transmitter. Is this possible?

If you mean you have two completely separate ray generation programs for the camera and the transmitter calculating primary rays of most likely different ray types, yes, that would normally be done with two different “entry points” in OptiX and you can launch each of these individually with the entry_point_index argument in the OptiX launch call.

Relevant API calls:

Note that ray generation and exception programs are set per entry point:

If you’re planning to add multiple different projections for the camera itself (shooting the same ray types as primary rays) there are other ways to do that with a lens shader implemented as bindless callable programs in a single ray generation program as demonstrated in my OptiX Introduction samples on github.
Links here: