Difference between revisions of "Depth of field"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with '== What is "depth of field"? == Depth of field ("DOF" for short) is an ''experimental'' graphics feature introduced to the Second Life "Mesh Import Project" Viewer in late Novem...')
 
Line 5: Line 5:
== How can I see the depth of field effect? ==
== How can I see the depth of field effect? ==


First, DOF and other experimental graphics features are ''formally unsupported'' — meaning, ''don't'' count on them to work. Crashes and other system instability may result. Furthermore, these features are subject to change, and their rendered appearance may change from version to version. Feel free to share your findings with fellow enthusiasts, but otherwise, you're pretty much on your own.
{{KBcaution|DOF and other experimental graphics features are ''formally unsupported'' — meaning, ''don't'' count on them to work. Crashes and other system instability may result. Furthermore, these features are subject to change, and their rendered appearance may change from version to version. Feel free to share your findings with fellow enthusiasts, but otherwise, you're pretty much on your own. You should be comfortable tinkering with Second Life settings before getting deeper.}}


Secondly, these effects are quite taxing, and are best enjoyed with a graphics card and computer system that significantly exceeds the System Recommendations.
These effects are quite taxing, and are best enjoyed with a graphics card and computer system that significantly exceeds the System Recommendations.


With all that in mind:
With that in mind:


# Download and install the Mesh Import Project Viewer.
# Download and install the newest '''Mesh Development Latest Build''' (as of 2010-12-02, build "2.4.0 (215872)", and the "Mesh Import Project Viewer" doesn't yet have DOF) from [[Linden_Lab_Official:Alternate_Viewers|this page]].
# Start the Viewer and login.
# Start the Viewer and login.
#* If you want to use DOF on the main grid, you'll need to [[change grids]] before logging in.
#* If you want to use DOF on the main grid, you'll need to [[change grids]] before logging in.
Line 19: Line 19:
# Click '''Advanced''' button to show additional options.
# Click '''Advanced''' button to show additional options.
# Check '''Atmospheric shaders''' and '''Lighting and Shadows''' (if they aren't already enabled).
# Check '''Atmospheric shaders''' and '''Lighting and Shadows''' (if they aren't already enabled).
# Uncheck '''Ambient Occlusion'''.
# Set '''Shadows''' to '''Sun/Moon''' or '''Sun/Moon + Projectors''', or it may be hard to see the effect.
# Set '''Shadows''' to '''Sun/Moon''' or '''Sun/Moon + Projectors'''.
 
You're now ready to customize.
 
== How do I customize my DOF settings? ==
 
# Enable [[Advanced|'''Advanced''' menu]].
# Choose '''Advanced''' > '''Show Debug Settings'''.
# Enter a DOF setting (it autocompletes) and change its value.
 
The settings are:
 
* '''CameraCoC''' - Camera [http://en.wikipedia.org/wiki/Circle_of_confusion circle of confusion] for DoF effect (in millimeters
* '''CameraFNumber''' - Camera [http://en.wikipedia.org/wiki/F_number f-number] value for DoF effect
* '''CameraFocalLength''' - Camera [http://en.wikipedia.org/wiki/Focal_length focal length] for DoF effect (in millimeters)
 
For example, try:
 
* '''CameraCoC''' - <code>0.100</code>
* '''CameraFNumber''' - <code>0.100</code>
* '''CameraFocalLength''' - <code>100.000</code>
 
Then, {{k|Alt}}-click somewhere on your screen to center that point and give it focus.


== See also ==
== See also ==
* '''[http://bit.ly/gKq3VD Tips on using DOF]''' - From Aki Shichiroji and others.
* '''[http://hg.secondlife.com/mesh-development/changeset/2d5dc12d4385 DOF introduced into the Viewer code]''' - By Runitai Linden.

Revision as of 11:26, 2 December 2010

What is "depth of field"?

Depth of field ("DOF" for short) is an experimental graphics feature introduced to the Second Life "Mesh Import Project" Viewer in late November, 2010. It simulates the real-world optical effect with the same name, where a lens' focused area appears sharp (as you're used to seeing in Second Life), while everything else appears out-of-focus. This can be used to creatively draw attention to a scene's focal point, and can also be aesthetically pleasing because of how our eyes naturally see.

How can I see the depth of field effect?

KBcaution.png Important: DOF and other experimental graphics features are formally unsupported — meaning, don't count on them to work. Crashes and other system instability may result. Furthermore, these features are subject to change, and their rendered appearance may change from version to version. Feel free to share your findings with fellow enthusiasts, but otherwise, you're pretty much on your own. You should be comfortable tinkering with Second Life settings before getting deeper.

These effects are quite taxing, and are best enjoyed with a graphics card and computer system that significantly exceeds the System Recommendations.

With that in mind:

  1. Download and install the newest Mesh Development Latest Build (as of 2010-12-02, build "2.4.0 (215872)", and the "Mesh Import Project Viewer" doesn't yet have DOF) from this page.
  2. Start the Viewer and login.
    • If you want to use DOF on the main grid, you'll need to change grids before logging in.
  3. Choose Me menu > Preferences.
  4. In the Preferences window, click Graphics tab.
    • You'll probably want to set the Quality and speed slider to Ultra.
  5. Click Advanced button to show additional options.
  6. Check Atmospheric shaders and Lighting and Shadows (if they aren't already enabled).
  7. Set Shadows to Sun/Moon or Sun/Moon + Projectors, or it may be hard to see the effect.

You're now ready to customize.

How do I customize my DOF settings?

  1. Enable Advanced menu.
  2. Choose Advanced > Show Debug Settings.
  3. Enter a DOF setting (it autocompletes) and change its value.

The settings are:

For example, try:

  • CameraCoC - 0.100
  • CameraFNumber - 0.100
  • CameraFocalLength - 100.000

Then, Alt-click somewhere on your screen to center that point and give it focus.

See also