This mod isn't a mod per-say, you will need patience to use it. This will not add anything to your gameplay and is intended only to be used in screenshots and videos. Basic knowledge of After Effects is almost required.
This mod modifies one class in the Minecraft.jar, and requires Optifine, as the mod part of this mod is actually a mod of a mod. In it's current state, allows you to acquire a Z-Depth Pass from a scene in Minecraft by recording a second version of a screenshot or piece of footage, and using the fog to extract Depth from the scene. I came up with this because I wanted to achieve DOF with the Tiled Rendering provided by Minema.
In the future I might add a method of getting "God Rays" with Tiled Rendering, and perhaps a method of getting multiple Shadow Passes so you can have really high quality shadows close to you, as well as lower quality shadows as far as your render distance can go. If you don't know what those are then check out Sonic Ether's Unbelievable Shaders.
Everying here absolutely requires Optifine. Creating a video with this absolutely requires both Minema and Camera Studio, Creating a Screenshot requires neither of these, but I still suggest you at least use Camera Studio.
What you could do with this:
Add Depth of Field to your Image or Video
Add customizable Fog to your Image or Video (assuming you turn fog off before you take your base screenshot or video)
Easily key out a certain area of a screenshot or video (Example: you could easily add an explosion behind some perfectly keyed mountains)
Some examples of what I've done with this (only DOF thus far):
An explanation of what the mod part of this mod is (because I know someone will ask about this otherwise):
Optifine has a feature that allows you to control how far away from the player the Fog actually starts. The mod part of this mod replaces the class in Optifine that recieves the Fog Start setting from the options menu, and instead tells Optifine to make the Fog start right in front of the player. The class is called "Config.class". The general workflow is: take regular screenshot or video, modify some things (including inserting the modified "Config.class" into your minecraft.jar) take the Depth screenshot or video and then undo all the things that you did to setup for the Depth Shot, including putting the regular "Config.class" back into the minecraft.jar.
Prerequisites:
Have the Texture pack you're going to use
Have a depth version of the texture pack you're going to use (see below on how to make one)
Have Optifine, Minema and Camera Studio Installed, the installation of all of those mods is covered in their threads (Don't forget, Minema and Camera Studio also require Modloader.
Download the modified "Config.class" from the "Downloads" section below
Make a backup of the normal "Config.class" for when you're finished
How to create a depth version of a texture pack:
I'll be doing this in Gimp, you can follow along in Photoshop if you prefer, but please do so competently. Gimp is an open source, free image manipulation software, pretty much a free Photoshop. If you don't have it, you can download it for Windows and Mac here.
Unzip the texture pack and place it somewhere you can find it (like your Desktop)
Launch Gimp and open the "terrain.png" file in the texture pack
Select the "Select by Color Tool", which looks like a hand poking a red tile with blue and green tiles above and below it
Click one of the Transparent areas
Click Select>Invert
Paint everything black (everything meaning everything selected)
Save it, Zip it back up, name it something descriptive like "*Texture Pack name* Depth
How to Acquire a Z-Depth pass:
Before you start, you should read the previous 3 paragraphs so you don't get confused.
Getting a Z-Depth pass for a Screenshot:
Get into position
This is optional, but highly recomended in case you mess up: Use Camera Studio to save your position and orientation
Take a regular screenshot, you can change all sorts of features in Optifine to improve the look of things, you can use Tiled Rendering with Minema or Mineshot if you like
Save and quit, don't move around or look around at all unless you followed the optional step above
Now you have to set up for the Z-Depth shot, close the game, download and install the modified "Config.class" mentioned above. The download is in the "Downloads" section below
Launch the game and set your texture pack to the Depth version (mentioned above)
Open your world, if you've moved at all then you can return to your position if you saved it with Camera Studio (mention above)
Go into the Video Options menu and set the Fog type to "Fast" (unless you want the DOF to be heavier around the sides of the shot), turn the Sun, Moon and Sky off in the "Details" menu, and turn off the clouds
Adjust the render distance to get the Depth setting you want, areas that the fog makes brighter will be considered farther away later on
Take the Screenshot
Now undo any changes you make in preparation for the Z-Depth pass. More specifically take the backup of the unmodified "Config.class" and put it back in your minecraft.jar.
You're all set to begin editing your image
Getting a Z-Depth pass for a Video:
Follow the same general procedure as getting the Pass for an image, but keep in mind:
Any Anti Aliasing must be performed after the DOF is applied, meaning 4x AA for a 1080p video means recording the whole video at 7680x4320 and downscaling when your finished. This is so fantastically hardware intensive that if you do it, tell me and I'll post your video in this thread.
Start recording with Minema before you start your path with Camera Studio, this should ensure that the frames are synced.
Exact Usage:
This mod modifies one class in the Minecraft.jar, and requires Optifine, as the mod part of this mod is actually a mod of a mod. In it's current state, allows you to acquire a Z-Depth Pass from a scene in Minecraft by recording a second version of a screenshot or piece of footage, and using the fog to extract Depth from the scene. I came up with this because I wanted to achieve DOF with the Tiled Rendering provided by Minema.
In the future I might add a method of getting "God Rays" with Tiled Rendering, and perhaps a method of getting multiple Shadow Passes so you can have really high quality shadows close to you, as well as lower quality shadows as far as your render distance can go. If you don't know what those are then check out Sonic Ether's Unbelievable Shaders.
Everying here absolutely requires Optifine. Creating a video with this absolutely requires both Minema and Camera Studio, Creating a Screenshot requires neither of these, but I still suggest you at least use Camera Studio.
What you could do with this:
An explanation of what the mod part of this mod is (because I know someone will ask about this otherwise):
Prerequisites:
How to Acquire a Z-Depth pass:
Getting a Z-Depth pass for a Screenshot:
Follow the same general procedure as getting the Pass for an image, but keep in mind:
Downloads:
Download for Minecraft 1.3.1 Compatible with OptiFine_1.3.1_HD_U_B1
Download for Minecraft 1.2.5 Compatible with OptiFine_1.2.5_HD_U_C7
Download for Minecraft 1.2.5 Compatible with OptiFine_1.2.5_HD_MT_C6
Not really, as long as your computer can play minecraft you can do this.