Is there an up-to-date version of the camera API example?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm new to the Arnold SDK and I would like to create a custom camera node that allows user control over the source and direction of each ray. The example on this page seems like it does something very similar, and could be modified to suit my needs:
https://docs.arnoldrenderer.com/display/A5ARP/Writing+a+Camera+Node
However, when I attempt to compile this example, there are numerous errors and warnings. It seems that the C++ API has been significantly refactored since this example was written, to the point where it's almost useless as an introduction for someone not already familar with Arnold development. For example, the source code calls a method called AiCameraDestroy(),which appears to no longer exist (seems that that I need to call AiNodeDestroy() instead). Would it be possible to have the example updated to compile cleanly with the current API, and in the meantime, does anyone have some example code for a camera I could take a look at, please?
Cheers,
Niall