nunuStudio icon indicating copy to clipboard operation
nunuStudio copied to clipboard

Bokeh / Focus control?

Open petepolyakov opened this issue 3 years ago • 2 comments

I made a camera in the scene, in the camera settings I turned on Bokeh (now everything just blurry). Then I added a script with an attempt to control the focus but it didn't work, tried to research but so far unsuccessful. Btw, Controlling focus/aperture/maxblur is such "standard" feature, it definitely deserve to be in the camera settings in the future.

my current broken code

var camera, BokehPass;

function initialize()
{
	camera = scene.getObjectByName("dofcam");				
var BokehPass =
	{
	uniforms:
		{
			"focus":   { number: 1.0 }
		}
}
}
function update()
{
}

petepolyakov avatar Oct 13 '20 01:10 petepolyakov

I may have to add an automatic focus point option to this post processing pass.

It is quite tricky to get the focus parameters correct for a specific scene.

tentone avatar Oct 16 '20 10:10 tentone

I may have to add an automatic focus point option to this post processing pass.

If it would be too complicated, I would suggest to keep as a float range and give an ability to Animate that parameter. Most of the users who use such tools usually know how to use them. It definitely would benefit cinematic sequences.

petepolyakov avatar Oct 16 '20 13:10 petepolyakov