Hi all,
Here's another lens setup I've been working on. This one has a go at simulating a tilt lens.
It works by referencing a null (I've added a grid custom object to it to make it easier to see) which defines the plane of focus. You can position this and rotate it however you like. Add an item info node (for the null) in the Octane Editor and link the position, right, and up outputs to the OSL camera pins.
Aperture and FOV can be controlled with scalar nodes.
It's not entirely physically accurate, but it's not bad. Strange things happen when you turn the camera and see past the plane of focus...
Shout with any questions or requests. If anyone makes a nice fake-macro image with it, I'd love to see it!
Happy Scheimpflug!
Cheers, James.