I wanted to work on a radial depth of field but in order to do that I have create the depth of field effect. Leadwerks already comes with two depth of field effects, near and far. I didn't want to manipulate those shaders to work a different way and I didn't want to copy and paste the shader as the start.
Therefore, I created one from scratch, and it's a method that Crytek uses in Crysis (CryEngine 2.0). Which they themselves adopted from ATi/Scheuermann and it's a very effective technique. Posted below are some of the initial results.
No Depth of Field
Depth of Field Heavy Blur
Depth of Field Lowered Blur
Depth of Field Adjusted Far Range
Depth of Field Adjusted Focal Range
Initial results aren't bad at all in my opinion and does resemble the depth of field effect displayed on Crysis. As shown above, several values of the shader can be adjusted on the fly; blur, far range, near range, and the focal range. This depth of field effect will be very useful in my current project and other projects in the future.
The next idea is to make a radial style depth of field. What this means is the focal, instead of being a square, will be in a radial shape. I will eventually get this effect going. As of now, I need a good break, since getting this depth of field working as I wanted had taken several hours.
I like your variation on the Leadwerks DOF!
ReplyDeleteMmm don't understand the first texture on the tree trunk.
ReplyDeleteAnyway the effect is truly good!
Is this for a game purpose? Or do you only make some random graph as many on Leadwerks?
Thanks Rekindled.
ReplyDeleteAzaratur, thanks man. Yes, all of the effects are for a game I'm working on. Well, some effects on my to-do list may not be used in the game, but I want to at least add it to my library.
Yeah, I'm still waiting on the high quality art, it will make my scenes look a lot better. MonkeyMan was awesome enough to let me use his new jungle models for testing purposes, but I don't have enough assets to make any scene look like a jungle, lol.
Nice!
ReplyDeleteRemember to post a video when you have one ready, i know almost everything in Leadwerks forum are waiting for a completed game.
Definitely going to, just going to take time, but I'll be posting the progress. I will also upload alpha/beta demos for the Leadwerks community to try out.
ReplyDelete