Message 1 of 1
How to access other cameras

Not applicable
01-09-2020
06:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to use a couple of cameras for texture projection in my osl shader.
In order to transform P into the coord space of those cameras I need the matrix as I cannot directly transform into custom coordinate spaces in Arnold. Any ideas how to get this done?
Unfortunately the getmatrix osl command doesn't return the matrix for the camera, air did I get it wrong?
So I am trying now to transfer the projection matrix as custom user data (float array) into the shader but if anybody has a better idea I would like to hear about it...
Thanks,
Michael