Game Development Community

DOF

by Stadi Thompson · in Torque 3D Beginner · 10/03/2009 (2:58 pm) · 4 replies

Is there anyway to enable depth of field in the demo? Thanks.

#1
10/03/2009 (4:22 pm)
I haven't seen the Demo, but in the default Template/FPSExample projects it's enabled when you zoom.
#2
12/03/2009 (8:25 pm)
I'd really like to know the answer to this too. Is there any way to adjust the depth of field permanantly? As in, not just when you zoom.

If anyone has any insight on how to use/edit the shader that's causing that effect, please let me know.

#3
12/03/2009 (10:03 pm)
I think in the console if you type

DOFPostEffect.enable()

It will enable it. The script for it is in core/scripts/client/postFX/dof.cs. Hopefully those are compiled and you can tweek those in the demo.
#4
12/04/2009 (1:41 pm)
Thanks a lot! Depth of Field is something I've always enjoyed seeing in games - more than any other post effect or shiney thing.

It's actually fairly well documented in the script alone!