Depth of Field in viewpoert for 18.5

   5046   10   0
User Avatar
Member
18 posts
Joined: Sept. 2020
Offline
Greetings All,

I am trying to get the openGL depth of field working in the new version of houdini 18.5. I think I am missing something because for the life of me I can't get it to show up. here are the steps I am taking.
1. make a bunch of cubes receding in space
2. set up a camera looking at the cubes
3. press z to bing up the focus gizmo
4. press D to bring up the display options
5. turn on depth of field under the scene tab
6. look though the camera

If I toggle on and off depth of field I don't see any difference in the viewport.

Any help woule be much appriciated.

Cheers,
B
User Avatar
Member
1621 posts
Joined: March 2009
Offline
You need to make sure that your viewport lighting mode is at least set to “high quality” (top right side of the window, in the column where “headlight only” etc is). Enable that, and make sure in the depth of field is toggled on in those options as well.

Depending on your scene you may want to bring down the f-stop to see the effect more easily (it default to a sensible 5.6, but you could set it to 1.0 or lower just to test).
Martin Winkler
money man at Alarmstart Germany
User Avatar
Member
142 posts
Joined: Aug. 2009
Offline

Houdini HDA: Depth of Field visualiser
LINK [howiem.com]
User Avatar
Member
1738 posts
Joined: May 2006
Offline
For my tests on a default grid I had to go really low for my aperture; like 0.1 or 0.01.
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
7770 posts
Joined: Sept. 2011
Offline
mestela
For my tests on a default grid I had to go really low for my aperture; like 0.1 or 0.01.

I couldn't get it to have ‘depth’ of field. It either blurred everything equally, or not at all.
User Avatar
Member
1621 posts
Joined: March 2009
Offline
mestela
For my tests on a default grid I had to go really low for my aperture; like 0.1 or 0.01.

jsmack
I couldn't get it to have ‘depth’ of field. It either blurred everything equally, or not at all.

I must say it does work for me (even with reasonable f-stops, it seems at least ballpark correct).
On the scene below it's a standard 4m grid, some size-reduced rubber toys, and a default cam with the f-stop adjusted to 1.4 and focus at just under 3m.

This is the regular viewport, I have not tried it with Houdini-GL on Solaris.
Edited by protozoan - Nov. 11, 2020 05:46:05

Attachments:
dof-thumb.png (649.0 KB)
rubber_dof.hip (325.3 KB)

Martin Winkler
money man at Alarmstart Germany
User Avatar
Staff
5158 posts
Joined: July 2005
Offline
There waa a fix in a post-release daily build that adjusted the CoC size which could explain the differences in results above. Try updating to a newer build if you aren't seeing the same results as Protozoan.

Incidentally, HQ Lighting isn't required for DOF. The main requirement is to be looking through a camera. DoF works in LOPs in the same way.
User Avatar
Member
18 posts
Joined: Sept. 2020
Offline
Greetings,

Thank you all for the suggestions. Unfortunatly I am still stuck. My workstation should be able to handle this without problem, it an asus studioart pro. I think there may be something I am missing in my set up. I have attached screen shots of the rubber toy scene with and without DOF turned on.

I am currently using version 18.5.351, Which is the current production version I am seeing on the site. In what version would this functionality be working.





Thank you for all the help.

Cheers,
B
Edited by bryanebentleycgs - Nov. 11, 2020 19:01:00

Attachments:
Capture2.PNG (3.9 MB)
Capture.PNG (3.9 MB)

User Avatar
Member
7770 posts
Joined: Sept. 2011
Offline
bryanebentleycgs
I am currently using version 18.5.351, Which is the current production version I am seeing on the site. In what version would this functionality be working.

Try the most recent build, I guess. I haven't tried it since the GM build either.
User Avatar
Member
433 posts
Joined: April 2018
Offline
bryanebentleycgs
In what version would this functionality be working.

Hmm, OpenGL DoF working fine in 18.5.385. I just enabled it in Display Options and that was all it took.
Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]

Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
User Avatar
Member
93 posts
Joined: June 2015
Offline
I am working on a scene with DOF and by trial and error, I discovered that near and far clipping affect the in-viewport DOF of my scene for some reason. I don't know if this info is useful at all, but I thought it was worth mentioning this.
  • Quick Links