Planetside Software Forums

General => Terragen Discussion => Topic started by: Dune on June 22, 2011, 04:12:55 AM

Title: Blur front
Post by: Dune on June 22, 2011, 04:12:55 AM
Can anyone tell me how to get the frontal area of about 500m to blur and the distance, past 1000 m to remain sharp? I couldn't get it to work, and perhaps it is not even possible. I'd like the front 'space dust' to be blurred...

By the way, without atmo and GI these renders go at space speed; 6 min for this at 0.5 and AA4
Title: Re: Blur front
Post by: Tangled-Universe on June 22, 2011, 05:30:35 AM
In the alpha you can do it with the DOF setting in the camera.
Here's a DOF calculator you could use for figuring out the focal length, object distance and f-stop you'd need to use in TG2:
http://www.dofmaster.com/dofjs.html (http://www.dofmaster.com/dofjs.html)
I'd use the film format settings because you can lookup in a wiki which aspect ratio you'd need.

You can also do it indirectly using distance shaders for surface shaders and disabling shadows/GI and use the b&w output as a mask in Photoshop.
Here's how: www.nwdanet.com/terragen-tutorials/9-dof-effect.html (http://www.nwdanet.com/terragen-tutorials/9-dof-effect.html)
(at the moment the link may be unrechable, because there's something wrong with the search engine friendly links it seems)

Basically you'd need to create a distance shader as the final surface shader.
Change the default distance settings 10000 for far distance to 500 and near distance from 0 to 1000.
This creates pure white up to 500 away from camera which fades to black in 500m, resulting in pure black at 1000m away from camera.
I guess you're pretty familiar with this.

Disable "render shadows", disable GI (enviro + settings to 0 in renderer) and set sun elevation to 90.
Render the image with the same quality and AA settings and such as you'll use for final render.
Use the output of this mask as a mask for a blurred layer of your final render.

Cheers,
Martin
Title: Re: Blur front
Post by: Dune on June 22, 2011, 11:52:09 AM
Thanks, Martin. That's a nice and comprehensive reply. But I didn't get it right. It seems hard to get the distance right; blurry distance is easy, but blurry front not so. Anyway, I started a sequence just now, hope to make a little movie for a change. Only I don't know how to compress good enough to post, and where to post such a thing. I use VirtualDub to make an avi, but that's about it for now.
Title: Re: Blur front
Post by: Tangled-Universe on June 22, 2011, 12:06:52 PM
You're welcome Ulco.

Getting DOF right is VERY tough sometimes. Especially if you're using non-real-world scales.
I think vimeo would be a nice place to upload it and I use h264 for compression mostly.
Title: Re: Blur front
Post by: Dune on June 23, 2011, 03:24:33 AM
Thanks, Martin.