I got this scene, i have a node setup with defocus, but i get ugly aliased edeges, the blend file is atached in mi post below, not this one, the next, below, i got a setup where an empty controls the focus, but i get aliased edges, and the the objects that should be blurred are not, the blend file is in my post below., thanx
For the ugly blur, enable “Convert Premultiply” on the AlphaOver node, and for the aliased edges, try FSA instead of OSA but it’s longer to render, so for an animation, you have to ask yourself if it’s necessary.
To enable FSA, press Save Buffers and Full Sample in the Output panel.
Thanx , i now ahave a setup where an empty controls the focus, but i also did what you said , but now the image that should be on focus altough it is, its borders are blurry ,look:
That almost makes sense but I can’t make any sense of it. Cyclic dependency maybe? Seriously though, this is a carousel animation, not a static image.
Change the Bokeh to any type other than “Disk”. Also, FSA level 5 is usually sufficient. For a better result than level 5 you pretty much need to head straight to level 16 cuz 8 and 11 usually look like crap regardless of the filter type…the distribution always seems to be somehow “out of phase?” or something. 5 is a whole lot faster than level 8.
Render tab, sample filters: Gauss is usually the blurriest filter but these tend to work backward from their intended effect when FSA is used. The lowest/closest filter value of 0.50 generally yields the smoothest results also.
Try this: Render with OSA 16 gauss, then OSA 16 catrom. See the difference? Now try rendering FSA5 with gauss. Use “J” key to move the render to the spare buffer. Click any image socket in your noodle to reprime the render. Don’t re-render though. Simply change the filter type to catrom, hover your mouse in the compositor window and use SHIFT+R to read back the full samle layers.
Using FSA actually renders an image sequence that’s entirely devoid of sampling (so you get to see it happen on the fly as the final step of the composite/post render operation) unlike OSA where samples are composited/fixed into a single image at render time. This sequence means that any post render operations are going to happen on each sample in that sequence rather than a single image. Doing this 5 times is a whole lot more time consuming than doing it just once but the increase in quality makes this a no-brainer if you’re using the compositor. It isn’t particularly useful otherwise.
Output tab: Enable the Save Buffers button and the Full Sample button will immediately appear. Enable it too. This will switch from OSA to FSA. Maybe I loaded your file without the UI. I could have sworn you already had FSA8 enabled in your second upload. All else above applies now. Just be sure to change the Defocus node Bokeh type from Disk to anything else to solve your problem. The rest of the info was just a rendering primer because you seemed to be less satisfied than most users and I usually translate this to mean that this student is ready to hear more than the average Joe asking questions on the forum.
As Bupla stated FSA is costly (in time) at render time. Save Buffers adds time (avg of 16 seconds per HD frame according to the doccumentation) and each Full Sample level represents a whole other frame. If you look in Blender’s file paths settings (user preferences) you can find the default temporary file directory. Navigate to that directory and you can see each smaple for each render layer sitting there waiting for further composite by Blender. These get organized by Blendfile name, then scene name, then render layer name. Just being able to view these files in a list with their heirarchy is very enlightning and will really help you understand how render and compositing process happens which will ultimately help you gain much tighter controll over your final composites. Well, that’s what it did for me anyway. If you’re having trouble with any type of matte edges in your renders, generally meaning you’ve chose to alter the render via Blenders compositor (rember those jagged edges B4 you edited your post?), then FSA is definitely for you.