Game Development Community

DoF

by Thanhda Tie · in Torque 3D Professional · 05/01/2009 (8:02 am) · 4 replies

whats the scripts to turn auto or manual on?

About the author

Digital Shock President & CEO, Thanhda's main role is to direct the business development team, and all other technical development. Thanhda began as a business relations manager & programmer, and has since worked on many projects.


#1
05/01/2009 (4:04 pm)
Currently there is no auto adjustment of the focal distance for the Depth of Field. However, there is a method for setting the focal distance (DoFPostEffect.setFocalDistance()) that you can call from the console. You could easily set it up in script to do a ray cast and set the focal distance to the distance from the player to the hit point of the ray in order to create a quick auto adjustment system.
#2
05/31/2009 (10:34 am)
Is T3D DoF able to do what Ubiq Visuals DoF for TGEA can do?

It seems to be much sharper difference
www.ubiqvisuals.com/templates/ubiq/images/dof_example.jpg
Ubiq Visual DoF Video

It's almost a day and night difference. The character is very sharp, where the background is blurry. I find in T3D, the character is still kinda blurry. What values should i set it to?
#3
06/01/2009 (9:54 am)
I don't know that any values you set are going to really work correctly at this point, there still seem to be some shader bugs to be worked out.
#4
06/01/2009 (2:01 pm)
Yes I am having this problem too. I believe there is still a bug being worked on relating to this. In first person my gun appears slightly blurry, in 3rd person everything is including the character.