Bump map filter

From Stereomerger

Jump to: navigation, search

The Bump map filter is a filter that alters an image by using another image called the bump map. The alteration is done by moving pixels in the image left or right based on the luminance of the corresponding pixel in the bump map.

A black pixel in the bump map means the image-pixel is not moved at all.
A white pixe in the bump map means the image-pixel is moved the maximum allowed amount.

This means that you can warp images, change the depth of items, create stereograms or create 3D images from 2D images. There are some limitations, but the with some work, you can still get great results!

Contents

The filter settings

Bump map

This must point to the bump map jpeg.

Left and right shift

The left and right shift tells Stereomerger how much and what direction the pixels will be shifted. 0.0 means the side will not be altered at all. +/-100 will result in strong alterations, so typically lower values will give better results.


2D to 3D conversion example

Note: You can find this example script in Scripts.

You need two images for this example.

The 2D image

The file is downloaded from the excellent Stoc.xchng and it is a norwegian fjord.

The bump map

This is a very simple bump map I prepared for this example.

What you must do

  1. Download the image and the bump map
  2. Load the 2D image into Stereomerger
  3. Select import script
  4. Select the Bumpmap2Dto3D in the dropdown
  5. Change the bump map-setting in the bump map filter to point to the bump map you downloaded.
  6. Apply the script

The result

An example of 2D to 3D conversion

The script uses the double-filter to create a side by side version of the 2D-image, and then alters the right side to create an impression of depth.

The filter is not without limitations and you will most likely get unwanted artifacts, but by putting in some efforts in creating good bump maps, you can still get great results.

Views
Personal tools