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:
[url]http://raytracing-docs.nvidia.com/optix/api/html/group___context.html#ga0bcf0d782de04103a522675d9038a285[/url]
[url]http://raytracing-docs.nvidia.com/optix/api/html/group__rt_context_launch.html[/url]

Note that ray generation and exception programs are set per entry point:
[url]http://raytracing-docs.nvidia.com/optix/api/html/group___context.html#gaef85c98249491934c2c5e91b4a5e6f8e[/url]
[url]http://raytracing-docs.nvidia.com/optix/api/html/group___context.html#ga1906bfc698e5e061e1ada7c7bf1baf6a[/url]

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: [url]https://devtalk.nvidia.com/default/topic/998546/optix/optix-advanced-samples-on-github/[/url]