Animated DoF

Newtek Lightwave 3D (exporter developed by holocube, Integrated Plugin developed by juanjgon)

Moderator: juanjgon

fibernaut
Licensed Customer
Posts: 70
Joined: Mon Jun 03, 2013 8:55 am

Hi
i need to have an animated depth of field effect for a project. Let's say there is an object and the focal point has to move through this object. I took a Null object and in the octane editor i tried to get its position to drive the focal depth input of the ThinLens camera with the ItemInfo Node. I made a quick animation of the Null through the object but there is no visible change of the dof effect. What am i making wrong?

Thanks for any help!
Win 10 64 | 2x RTX 3080Ti 2x Xeon E5 2650v2 Supermicro X9DAi 128 GB
Win 10 64 | 1x RTX 4090 i9 9900K Gigabyte z390 128 GB
Win 10 64 | 2x RTX 3080Ti i7 2600 K 32 GB
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

You only need this setup. Two item info nodes (one for camera, and one for target null object) and the distance node. Be sure that you disable the autofocus option in the camera node.

-Juanjo
Attachments
image000248.jpg
fibernaut
Licensed Customer
Posts: 70
Joined: Mon Jun 03, 2013 8:55 am

Great ... this worked!
Thanks Juan!
Win 10 64 | 2x RTX 3080Ti 2x Xeon E5 2650v2 Supermicro X9DAi 128 GB
Win 10 64 | 1x RTX 4090 i9 9900K Gigabyte z390 128 GB
Win 10 64 | 2x RTX 3080Ti i7 2600 K 32 GB
User avatar
Godstrike
Licensed Customer
Posts: 128
Joined: Sat Apr 16, 2011 9:10 pm

I have a similar quandary, how can I can animate the amount of DOF over time?

Thanks!
Ryzen 5800x at 4.4GHz | 32GB | 1 x 3090 ti | 1 x RTX 2080 ti
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Godstrike wrote:I have a similar quandary, how can I can animate the amount of DOF over time?

Thanks!
You only need to add a Lightwave scalar constant node and link it to the DOF input. This LW constant nodes have the "E" button to animate them.

-Juanjo
User avatar
Godstrike
Licensed Customer
Posts: 128
Joined: Sat Apr 16, 2011 9:10 pm

Thanks Juanjo,

I had worked it out, I was being lazy:)

Love the plug-in by the way, has revolutionised my rendering -- excellent work!
Ryzen 5800x at 4.4GHz | 32GB | 1 x 3090 ti | 1 x RTX 2080 ti
fibernaut
Licensed Customer
Posts: 70
Joined: Mon Jun 03, 2013 8:55 am

I have to dig this thread out again.

The way to animate the depth of field seems not to be working if the camera is parented to another null. Am i missing something important?
Thanks!
Win 10 64 | 2x RTX 3080Ti 2x Xeon E5 2650v2 Supermicro X9DAi 128 GB
Win 10 64 | 1x RTX 4090 i9 9900K Gigabyte z390 128 GB
Win 10 64 | 2x RTX 3080Ti i7 2600 K 32 GB
User avatar
hdace
Licensed Customer
Posts: 199
Joined: Mon Aug 26, 2013 8:30 am
Location: Kansas
Contact:

Try using the world position outputs from the info nodes instead of regular position.

Also, I've found parenting a "focus null" to a character's face bone (and then moving it to just in front of the eyes) incredibly useful. It means a character's face will always be in focus.
Vote for Juanjo!
fibernaut
Licensed Customer
Posts: 70
Joined: Mon Jun 03, 2013 8:55 am

Yeah ... WorldPosition worked fine. Thanks a lot! :)
Win 10 64 | 2x RTX 3080Ti 2x Xeon E5 2650v2 Supermicro X9DAi 128 GB
Win 10 64 | 1x RTX 4090 i9 9900K Gigabyte z390 128 GB
Win 10 64 | 2x RTX 3080Ti i7 2600 K 32 GB
User avatar
Lewis
Licensed Customer
Posts: 1101
Joined: Tue Feb 05, 2013 6:30 pm
Location: Croatia
Contact:

While we are at DOF discussion i have question.

Although DOF in octane is great looking, especially with above node setups i find it har dot get effect i look for.

For instance i want that all in front of camera till the target object (null) is Focused/clean and all behind that point blurry/out of focus which works OK if the object is in front but when i want to focus further away in the middle my front and back get blurred/out of focus and only middle is clean ? Somehow my depth of Field s is always very narrow ? Is there a way how to correct/fix that setup somehow ?

I use Null for positioning DOF and rotating null for DOF amount but can't seem to get linear effect of all clean before or after that null in linear fashion.

Thanks
--
Lewis
http://www.ram-studio.hr
Skype - lewis3d
ICQ - 7128177

WS AMD TRPro 3955WX, 256GB RAM, Win10, 2 * RTX 4090, 1 * RTX 3090
RS1 i7 9800X, 64GB RAM, Win10, 3 * RTX 3090
RS2 i7 6850K, 64GB RAM, Win10, 2 * RTX 4090
Post Reply

Return to “Lightwave 3D”