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.
Tilt OSL lens
Moderator: juanjgon
- Attachments
-
- tilt cam.zip
- (775 Bytes) Downloaded 414 times
- LightwaveGuru
- Posts: 487
- Joined: Wed Jun 25, 2014 9:34 am
- Location: Germany
- Contact:
your wish is my command!baltort wrote: If anyone makes a nice fake-macro image with it, I'd love to see it!

snip lwguru
http://www.neotek.laboratories.de or http://www.youtube.com/c/Lightwaveguru or http://www.facebook.com/safarifx 4x Titan X 12 GB watercooled / 6x 2080 ti air cooled / 2x 980 ti watercooled
- LightwaveGuru
- Posts: 487
- Joined: Wed Jun 25, 2014 9:34 am
- Location: Germany
- Contact:
hi james,
i tweak the node tree a little bit...
works perfect here!

snip lwguru
i tweak the node tree a little bit...
works perfect here!


snip lwguru
http://www.neotek.laboratories.de or http://www.youtube.com/c/Lightwaveguru or http://www.facebook.com/safarifx 4x Titan X 12 GB watercooled / 6x 2080 ti air cooled / 2x 980 ti watercooled
- LightwaveGuru
- Posts: 487
- Joined: Wed Jun 25, 2014 9:34 am
- Location: Germany
- Contact:
here a quick testrender...

snip lwugru

snip lwugru
http://www.neotek.laboratories.de or http://www.youtube.com/c/Lightwaveguru or http://www.facebook.com/safarifx 4x Titan X 12 GB watercooled / 6x 2080 ti air cooled / 2x 980 ti watercooled
Hi LWGuru,
The complexity and defocused light panels are looking good, but I can’t quite make out a single plane of focus.
What are you using as the inputs for the focus point, focus up, and focus right pins? They need to be normalised, orthogonal and lie in the focus plane. You get this for free if you use the position, right, and up outputs from an item info node. If your using independent vector inputs then you’ll need to do a fair bit of maths to get a meaningful result.
Cheers,
James.
The complexity and defocused light panels are looking good, but I can’t quite make out a single plane of focus.
What are you using as the inputs for the focus point, focus up, and focus right pins? They need to be normalised, orthogonal and lie in the focus plane. You get this for free if you use the position, right, and up outputs from an item info node. If your using independent vector inputs then you’ll need to do a fair bit of maths to get a meaningful result.
Cheers,
James.
- LightwaveGuru
- Posts: 487
- Joined: Wed Jun 25, 2014 9:34 am
- Location: Germany
- Contact:
Hi James,baltort wrote:Hi LWGuru,
The complexity and defocused light panels are looking good, but I can’t quite make out a single plane of focus.
What are you using as the inputs for the focus point, focus up, and focus right pins? They need to be normalised, orthogonal and lie in the focus plane. You get this for free if you use the position, right, and up outputs from an item info node. If your using independent vector inputs then you’ll need to do a fair bit of maths to get a meaningful result.
Cheers,
James.
the 3 items for focus point, focus up, and focus right are item info nodes with the same null object as "target". i build that set up also to play with different nulls to create some effects.
btw. the ship is 1,6 kilometer big. so its possible that the node tree react in that case in a different way!? ah...and i use the world coordinates from the nulls. not the local input...is that right?
snip lwguru
http://www.neotek.laboratories.de or http://www.youtube.com/c/Lightwaveguru or http://www.facebook.com/safarifx 4x Titan X 12 GB watercooled / 6x 2080 ti air cooled / 2x 980 ti watercooled
- LightwaveGuru
- Posts: 487
- Joined: Wed Jun 25, 2014 9:34 am
- Location: Germany
- Contact:
by the way...if you save your scene and reopen it the node tree is not longer connected. you must then recompile the osl script and reconnect all the nodes.baltort wrote:Hi LWGuru,
The complexity and defocused light panels are looking good, but I can’t quite make out a single plane of focus.
What are you using as the inputs for the focus point, focus up, and focus right pins? They need to be normalised, orthogonal and lie in the focus plane. You get this for free if you use the position, right, and up outputs from an item info node. If your using independent vector inputs then you’ll need to do a fair bit of maths to get a meaningful result.
Cheers,
James.
snip lwguru
http://www.neotek.laboratories.de or http://www.youtube.com/c/Lightwaveguru or http://www.facebook.com/safarifx 4x Titan X 12 GB watercooled / 6x 2080 ti air cooled / 2x 980 ti watercooled
- LightwaveGuru
- Posts: 487
- Joined: Wed Jun 25, 2014 9:34 am
- Location: Germany
- Contact:
Hi james,
so here an example with a "single plane". you can see the polygon in front of the ship. (the polygon target the camera. look to the camera.)
here the node tree.

here the render output. the grey visible polygon is the target for focus point, focus up, and focus right.

snip lwguru
so here an example with a "single plane". you can see the polygon in front of the ship. (the polygon target the camera. look to the camera.)
here the node tree.

here the render output. the grey visible polygon is the target for focus point, focus up, and focus right.

snip lwguru
http://www.neotek.laboratories.de or http://www.youtube.com/c/Lightwaveguru or http://www.facebook.com/safarifx 4x Titan X 12 GB watercooled / 6x 2080 ti air cooled / 2x 980 ti watercooled