musichopper
11-07-2009, 05:38 PM
Hello, I have recently been doing some programming in UNITY and I made my own depth of field effect that would actually raytrace the camera from its center to whatever the player happened to look at. It would send back the distance between the camera and the object that was being observed by either being at the center of the screen (hit by the raycast) or I also had an option to let the player use a "look" cursor to move the mouse around screen to focus on different objects.
This is how human vision works. The default setup for DOF in the Unreal 3 engine has it set to only distance where if the player looks or centers their vision on a nearby object or far away object, the DOF distance value doesn't change. I need to find a way to have it calculate the object including any scenery on the map that collides with a raycast from the camera out and then use the value to change the DOF settings live so it acts like real human vision.
Any idea how this could work in Unreal 3?
I used to work with the old Unreal stuff a while back but I am new to the latest stuff on this end of things.
I am pretty sure since I was able to hand code it in (the sorta crappy) Unity that Unreal 3 should also allow it. Just need to figure out how and the best way.
Thanks for help!
This is how human vision works. The default setup for DOF in the Unreal 3 engine has it set to only distance where if the player looks or centers their vision on a nearby object or far away object, the DOF distance value doesn't change. I need to find a way to have it calculate the object including any scenery on the map that collides with a raycast from the camera out and then use the value to change the DOF settings live so it acts like real human vision.
Any idea how this could work in Unreal 3?
I used to work with the old Unreal stuff a while back but I am new to the latest stuff on this end of things.
I am pretty sure since I was able to hand code it in (the sorta crappy) Unity that Unreal 3 should also allow it. Just need to figure out how and the best way.
Thanks for help!