Hi!
I’m trying to add a simple dof to my project using Unitys own post processing.
I get very ugly results and it is hard to make sense of how the changes to the effect parameters changes the runtime dof.
You should get results that are relatively close to what you see in Unity.
Have you looked at the postprocessing sample? Does that work for you? If not please post your Unity version, render pipeline version etc. here - thanks!
I will look into it, thanks!
(Is there a simple way through the console to change the post process values? I tried through both volume and sharedvolume but the changes did not seem to apply)
You can add the “Needle Editor” component in your scene and then property changes you do will be synchronized to the live browser session.
*Not all properties but for example postprocessing works great
Unity version is 2022.3.14f1
Is there an optimal engine version? I could not fint anything on the needle sites.
(The Needle Editor Sync did not do much, so I suspect there is a bigger error somewhere. I have yet to download the sample, will do that now and see how that looks, thanks! )
So far it seems to work now, however I’m not sure what did the trick
You mentioned the Needle Editor component, do you have an example of how that would be used?
Plus I wonder if the artifact in the image is something that is easy to fix? (The corner of the fireplace looks blurry and weird)
You can add the Needle Editor Sync component and then after an export when you do changes in Unity (move objects around or change properties) you get live updates on the website
I think the artifacts you’re seeing there are typical for depth-of-field implementations on strong depth discontinuities – it will probably get better if you add some sort of plane behind that window or reduce the far clip plane of the camera