This is the first thread in the tutorials section that is not a tutorial, hurray!
[14:35] <tp^auri> Sj can you give a short overview over depth possibilities in mme? Somebody wants some answers in the forum and I haven't once worked with it [14:39] <CaNaBiS> euhm mme_saveDepth 1; mme_depthFocus 4000; mme_depthRange 2000 or something should give something probably. make sure to mention that you can't have motion blur enabled [14:39] <CaNaBiS> or probably lower depthfocus [14:46] <tp^auri> Okey thank you. Bit short for a tutorial but..
mme_saveDepth enables saving of depth screenshots. The depth is no layer in the standard screenshots, the depth is saved in separate tga files.
mme_depthFocus defines the spot that the depth will take as sharp point in distance from the camera
mme_depthRange defines how much the environment is faded / blurred related to the "sharp spot"
And remember, have mme_blurFrames set to 0 when trying
This is an overview about the few cvars you have to create depth of field screenshots. You have to try values for yourself. But ask if you don't understand anything.
Thanks John for taking your time to help me out, I really appreciate it.
After numerous tries I have finally managed to get something with it! Here is screenshot from one scene: Depth Mask Final Image
Used values: mme_depthFocus 100 mme_depthRange 200
Though, the result doesn't look very good in screenshot. Have to play more with values and the mask itself. This is very first time I try this method, so obviously it's not the best possible. But I will put here how I did this anyway:
A quick tutorial on how to apply blur using depth mask in Photoshop
*Open your screenshot *Duplicate layer, select the new layer (or the one that is on top) *Add gaussian blur (Filter -> Blur -> Gaussian Blur), I used around 8, but it is maybe too heavy, maybe 5 is good. *Open your grayscale depth image, copy it to clipboard *Go back to your original image, add layer mask to blurred layer (Layers) *Select mask, goto Channels, there should be 5 channels (RGB, Red, Green, Blue and BlurLayer Mask). Make mask channel visible and paste your depth image (press Ctrl+V) (Channels)
That's it! You can adjust Opacity of blur layer, or select mask, goto Image -> Adjustments -> Brightness/Contrast and change contrast and brightness of mask to adjust depth of field effect.
Finally, when you want to add this effect to your movie, you can use Batch feature in Photoshop to automatically add effect to all frames. I can post Photoshop Batch tutorial if anyone needs it.
If there is any better way to add depth of field, please tell us!
Great, thank you for this help. I always get the feeling that not many people care about this forum. But I enjoy this much, thank you!
And I think the screenshot does not look so bad. I like the left part. It's realistic that the background of the main room is unsharp as if the picture was taken with a normal camera. Maybe if depthrange is higher and it's only slightly unsharp in the background it even looks more realistic and not disturbin while watching a movie, fixing the watcher's view at the sharp spot and so on
Thanks bladee for suggestion. Too bad I am all running out of time with my studies (this probably sounds common ) and it looks like I am going to have no time to play around with quake and movie making for a while now. But I will be back later for sure.