Kazunori Asada

Eye Refraction Simulator - Web Edition
How to Use

Eye Refraction Simulator lets you experience how myopia, hyperopia, astigmatism and presbyopia change the way the eye sees.
It applies a calculation of the blur caused by the eye's refractive error to an image (a sample, the camera, or a photo from Photos), and lets you switch between it and the original image.
With images that have depth data (the distance to each object in the image), it also shows how the blur differs between what you are looking at and objects nearer or farther away.
It cannot be used for diagnosis, treatment or prescribing glasses. The numbers are literature-based estimates, and how things look differs between people.

Basic Usage

[Figure: the whole main screen (a sample with depth data) (shot: images/RfsMain-e.jpg)]

  1. Set the refraction.
    On the upper row of the bottom bar, pressing the "︿" on the right of the "Sphere (PWR)", "Cylinder (CYL)" or "Axis (AXIS)" button shows the vertical slider of that value in a balloon. You can enter the values of a glasses or contact lens prescription as they are.
  2. Set the accommodation.
    With the "︿" of "Accom." on the right of the same row, set the accommodation (the power to focus on near objects). It becomes smaller with age ("Accommodation and Age").
  3. Set the viewing distance.
    On the lower row of the bar, move the blue circle with the ruler mark on the distance slider (left = near, right = far). With images that have depth data, pressing an object on the screen sets the distance to that object. The thumb with the eye mark inside a dotted ring shows where the eye focuses (it moves by itself).
  4. Choose the image.
    Choose from the list of samples with the Samples button. Choose the camera or a photo from Photos with the 3rd button of the right column.
Main Screen

The panel name and the zoom ratio are at the top, buttons are on the left and right of the upper half, and one bar is at the bottom (the upper row has the four buttons for refraction and accommodation, and the lower row has the distance slider and the "Original" button). Ten seconds after the last operation the buttons and the bar are hidden. Tap the screen to show them again.

Text at the top

Upper buttons (left and right columns): the same arrangement as Eye Age Simulator, with Torch and Disable Cont. Auto Focus added to the left column.

The Four Buttons for Refraction and Accommodation

[Figure: the four buttons (three islands) and the Sphere balloon (shot: images/RfsButtons-e.jpg)]

On the upper row of the bar, the four buttons are arranged in three islands: [Sphere (PWR)] [Cylinder (CYL) | Axis (AXIS)] [Accom.]. Each button always shows its name and current value.

ButtonRange and stepMeaning
Sphere (PWR)−10.00 to +10.00 D, in steps of 0.25 DPower for myopia (minus) or hyperopia (plus)
Cylinder (CYL)−8.00 to 0.00 D, in steps of 0.25 DPower of astigmatism (minus cylinder form)
Axis (AXIS)1 to 180°, in steps of 1°Direction of astigmatism ("Direction of the Axis")
Accom.0 to 15 D, in steps of 0.5 DHow near the eye can focus
When All Four Are Off

Values that are turned off are treated as follows. With all four off, the eye is emmetropic (no refractive error) with the largest accommodation (15 D). A young emmetropic eye focuses at the viewing distance anywhere from far away to near objects.

With images that have depth data, near objects away from the viewing distance are still blurred with all four off (the eye can accommodate to only the one place it is looking at).

The Symbols PWR, CYL and AXIS

The symbols on the buttons and in the panel name are the column symbols of glasses and contact lens prescriptions.

SymbolNameOther forms on prescriptions
PWRSphere (refractive power)S, SPH
CYLCylinder (power of astigmatism)C
AXISAxis (direction of astigmatism)A, AX

You can enter the values of a prescription as they are. For a prescription written with a plus cylinder, setting the sum of sphere and cylinder as the sphere, the cylinder with the opposite sign, and the axis turned by 90° gives the same eye (the app keeps the minus cylinder form).

Direction of the Axis

The axis angle follows the same rule as glasses prescriptions (the TABO scale: seen from the examiner, 0° is on the right, angles increase counterclockwise, and the scale is the same for the right and left eyes). Seen from the person looking out, left and right are reversed, so the following lines are blurred on the screen (a minus cylinder blurs lines parallel to its axis).

AxisBlurred lines
180° (and 0°)Horizontal lines
90°Vertical lines
1 to 89°Lines falling to the right "\"
91 to 179°Lines rising to the right "/"

Figure: a grid image shown with cylinder −4.00 at axis 45° and at axis 135°. The blurred lines are those falling to the right "\" at axis 45° and those rising to the right "/" at axis 135° (the orange arrow at the top left shows the direction of the blurred lines).

Original grid (no blur)
Original grid (no blur)
Grid with axis 45° (cylinder −4.00): lines falling to the right "\" are blurred
Axis 45° (cylinder −4.00):
lines falling to the right "\" are blurred
Grid with axis 135° (cylinder −4.00): lines rising to the right "/" are blurred
Axis 135° (cylinder −4.00):
lines rising to the right "/" are blurred
Accommodation and Age

Accommodation becomes smaller with age. The average is given by Hofstetter's formula "18.5 − 0.3 × age" (D).

Age20304045505560 or older
Average accommodation (D)12.59.56.55.03.52.00.5 or less

When the accommodation is smaller than "the dioptric distance of the object + the myopic or hyperopic part", the eye cannot focus on what it is looking at, and it sees as a presbyopic eye does.

The Distance Slider and "Original"

[Figure: the lower row of the bar (shot: images/RfsBar-e.jpg)]

The distance slider has two thumbs.

Samples and Images with Depth Data

The list of samples has two kinds of images.

How to look at images with depth data

[Figure: the classroom scene, pressing the blackboard and pressing the book in front (shot: images/RfsTapBoard-e.jpg, images/RfsTapBook-e.jpg)]

The app starts with the samples, which change automatically about every 8 seconds (the same operation as Eye Age Simulator; while playing, swipe left or right with one finger for the next or previous sample).

Image Source (Camera and Photos)

With the 3rd button of the right column, choose the rear camera, the front camera or a photo from Photos. A photo with depth data uses its depth (see "How to look at images with depth data"). A photo without depth data is shown with the whole screen as objects at the viewing distance.

Camera

The camera video has no depth data, so the whole screen is shown as objects at the viewing distance.

iPhone and iPad (models with LiDAR)

iPhone and iPad models with LiDAR (a distance sensor) measure the distance with LiDAR only. They do not switch to the ultra-wide camera at close range.

Android

Android uses the calibrated focus distance that the device reports, as it is (on devices without calibration it is not set automatically; set it with the slider).

Limits of the camera view: The camera video already contains the blur of the camera lens. Objects at the viewing distance are shown correctly, but for objects at other distances the app's blur is added on top of the camera's blur, so they may look more blurred than with a real eye (the blur cannot be removed from the video). To see how depth looks correctly, use the samples with depth data.

How Each Device and Type of Image Looks

This section summarizes, for each device, what you can show and how it looks. "Blur changes with the distance of each object" happens when depth data (the distance of each object) can be read. When it cannot be read, the whole screen is blurred in the same way.

iPhone and iPad (Models with LiDAR)

Models with LiDAR (a distance sensor), such as iPhone 15 Pro and iPad Pro.

What you showHow it looksNotes
Sample imagesThe 15 scenes with depth data change their blur with the distance of each object (they are CG images with no shooting information, so the blur already in them is overlaid as it is; see "How the Blur Already in a Photo Is Handled"). The 3 night light scenes are blurred in the same way over the whole screenWhen you choose a night light scene from the list, "No depth data. The whole image is shown at one distance." is shown
Photo taken with this device's camera (normal photo mode, with depth data)The blur changes with the distance of each object. The blur already in the photo is subtracted when the focal length and F number are available (see "How the Blur Already in a Photo Is Handled"; otherwise it is overlaid as it is)Depth data is saved on iPhone 15 and later, for a photo with a person, an animal, or an object you tapped. Blur that was in the photo when it was taken cannot be removed
Photo taken with this device's camera (normal photo mode, without depth data)The whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown
Photo taken with this device's camera (Portrait mode, a camera mode that blurs the background)The image before blurring is used, and the blur changes with the distance of each object. The blur already in the photo is subtracted when the focal length and F number are available (see "How the Blur Already in a Photo Is Handled"; otherwise it is overlaid as it is). When the image before blurring cannot be obtained, the Portrait mode blur is subtracted by an estimate (see "How the Blur Already in a Photo Is Handled")The first time, you are asked for permission to access Photos. Without it, "To use the image before blurring, allow access to Photos." is shown and the blurred image is opened (the amount of blur is corrected by an estimate, so there is some error)
iPhone photo received by AirDrop (when the sender turned on "Options" > "All Photos Data" on the share screen)The image before blurring is used, and the blur changes with the distance of each object. The blur already in the photo is subtracted when the focal length and F number are available (see "How the Blur Already in a Photo Is Handled"; otherwise it is overlaid as it is)For a Portrait mode photo. The image before blurring, the depth data, the focal length and the F number remain
iPhone photo received by AirDrop (when the sender turned off "Options" > "All Photos Data" on the share screen)The blur changes with the distance of each object. The Portrait mode blur is subtracted by an estimate (see "How the Blur Already in a Photo Is Handled")One blurred photo remains. The depth data, the focal length and the F number remain, but the image before blurring does not
Photo received through the Messages appThe depth data is removed, so the whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown. The focal length and F number remain
Photo received through a social media appWhen the depth data does not remain, the whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown
Photo taken on Android (Pixel and others) (Portrait mode)The blur changes with the distance of each object. The blur already in the photo is subtracted when the focal length and F number are available (see "How the Blur Already in a Photo Is Handled"; otherwise it is overlaid as it is). The image before blurring in a Pixel photo is not usedThe Pixel Portrait mode blur is overlaid as it is
Photo taken on Android (Pixel and others) (other than Portrait mode)The whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown. The same is true for a photo taken with the Pixel "Social media depth features"
Photo taken with a digital cameraThe whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown
HEIC photo (with depth data)The blur changes with the distance of each object. The blur already in the photo is subtracted when the focal length and F number are available (see "How the Blur Already in a Photo Is Handled"; otherwise it is overlaid as it is)—
HEIC photo (without depth data)The whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown
Rear cameraLiDAR measures the distance, and the blur changes with the distance of each object. The blur already in the camera video is overlaid as it isRight after startup, "No depth data" is shown and goes away when the LiDAR distance is input. It may look more blurred than with a real eye
Front cameraThe whole screen is blurred in the same way. You set the viewing distance with the slider"No depth data" is shown
iPhone and iPad (Models without LiDAR)
What you showHow it looksNotes
Sample imagesSame as the models with LiDARSame
Photo taken with this device's camera (normal photo mode, with depth data)Same as the models with LiDARSame
Photo taken with this device's camera (normal photo mode, without depth data)Same as the models with LiDARSame
Photo taken with this device's camera (Portrait mode, a camera mode that blurs the background)Same as the models with LiDARSame
iPhone photo received by AirDrop (when the sender turned on "Options" > "All Photos Data" on the share screen)Same as the models with LiDARSame
iPhone photo received by AirDrop (when the sender turned off "Options" > "All Photos Data" on the share screen)Same as the models with LiDARSame
Photo received through the Messages appSame as the models with LiDARSame
Photo received through a social media appSame as the models with LiDARSame
Photo taken on Android (Pixel and others) (Portrait mode)Same as the models with LiDARSame
Photo taken on Android (Pixel and others) (other than Portrait mode)Same as the models with LiDARSame
Photo taken with a digital cameraSame as the models with LiDARSame
HEIC photo (with depth data)Same as the models with LiDAR—
HEIC photo (without depth data)Same as the models with LiDARSame
Rear cameraThe whole screen is blurred in the same way. The viewing distance is input automatically from the position of the camera lensThe distance is an estimate, so it is shown like "about 2 m" (a guide). It may be off depending on the model and the unit (see "How the Distance Is Estimated from the Camera Lens"). "No depth data" is shown
Front cameraThe whole screen is blurred in the same way. You set the viewing distance with the slider"No depth data" is shown
Android
What you showHow it looksNotes
Sample imagesThe 15 scenes with depth data change their blur with the distance of each object (they are CG images with no shooting information, so the blur already in them is overlaid as it is; see "How the Blur Already in a Photo Is Handled"). The 3 night light scenes are blurred in the same way over the whole screenWhen you choose a night light scene from the list, "No depth data. The whole image is shown at one distance." is shown
Photo taken on iPhone (normal photo mode, with depth data)The whole screen is blurred in the same way (the depth data of an iPhone cannot be read)"No depth data. The whole image is shown at one distance." is shown
Photo taken on iPhone (normal photo mode, without depth data)The whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown
Photo taken on iPhone (Portrait mode, a camera mode that blurs the background)The whole screen is blurred in the same way (the depth data and the image before blurring of an iPhone cannot be read)"No depth data. The whole image is shown at one distance." is shown
Photo received through the Messages appThe depth data is removed, so the whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown. The focal length and F number remain
Photo received through a social media appWhen the depth data does not remain, the whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown
Photo taken on Android (Pixel and others) (Portrait mode)The blur changes with the distance of each object. If the photo contains the image before blurring, that image is used. The blur already in the photo is subtracted when the focal length and F number are available (see "How the Blur Already in a Photo Is Handled"; otherwise it is overlaid as it is)For a photo that does not contain the image before blurring, the Pixel blur is overlaid as it is
Photo taken on Android (Pixel and others) (other than Portrait mode)The whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown. The same is true for a photo taken with the Pixel "Social media depth features"
Photo taken with a digital cameraThe whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown
HEIC photo (with depth data)It opens. Depth data cannot be read (even depth data in the Apple format), so the whole screen is blurred in the same wayChecked on Android 16 (Pixel 8). When the OS cannot open HEIC, "Image File Load Error" is shown
HEIC photo (without depth data)It opens. The whole screen is blurred in the same wayChecked on Android 16 (Pixel 8). When the OS cannot open HEIC, "Image File Load Error" is shown
Rear cameraThe whole screen is blurred in the same way. On devices that report the focus distance, the viewing distance is input automaticallyOn devices that do not (such as fixed focus), set it with the slider (see "How the Distance Is Estimated from the Camera Lens"). "No depth data" is shown
Front cameraIt works. There is no depth data, so the whole screen is blurred in the same way. The viewing distance is not input automatically, so you set it with the slider"No depth data" is shown
Web Edition
What you showHow it looksNotes
Sample imagesThe 15 scenes with depth data change their blur with the distance of each object (they are CG images with no shooting information, so the blur already in them is overlaid as it is; see "How the Blur Already in a Photo Is Handled"). The 3 night light scenes are blurred in the same way over the whole screenWhen you choose a night light scene from the list, "No depth data. The whole image is shown at one distance." is shown
Photo taken on iPhone (normal photo mode, with depth data)The whole screen is blurred in the same way (the depth data of an iPhone cannot be read)"No depth data. The whole image is shown at one distance." is shown
Photo taken on iPhone (normal photo mode, without depth data)The whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown
Photo taken on iPhone (Portrait mode, a camera mode that blurs the background)The whole screen is blurred in the same way (the depth data and the image before blurring of an iPhone cannot be read)"No depth data. The whole image is shown at one distance." is shown
Photo received through the Messages appThe depth data is removed, so the whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown. The focal length and F number remain
Photo received through a social media appWhen the depth data does not remain, the whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown
Photo taken on Android (Pixel and others) (Portrait mode)The blur changes with the distance of each object. If the photo contains the image before blurring, that image is used. The blur already in the photo is subtracted when the focal length and F number are available (see "How the Blur Already in a Photo Is Handled"; otherwise it is overlaid as it is)For a photo that does not contain the image before blurring, the Pixel blur is overlaid as it is
Photo taken on Android (Pixel and others) (other than Portrait mode)The whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown. The same is true for a photo taken with the Pixel "Social media depth features"
Photo taken with a digital cameraThe whole screen is blurred in the same way"No depth data. The whole image is shown at one distance." is shown
HEIC photo (with depth data)Some browsers cannot open it (Safari can). Depth data cannot be read, so the whole screen is blurred in the same wayWhen it does not open, "This browser cannot open HEIC. Please convert it to JPEG and open it (Safari can open it as it is)." is shown
HEIC photo (without depth data)Some browsers cannot open it (Safari can). When it opens, the whole screen is blurred in the same wayWhen it does not open, the same message is shown
Rear cameraThe whole screen is blurred in the same way. You set the viewing distance with the sliderWorks only on HTTPS pages. When it cannot be used, the message "The camera cannot be used" is shown
Front cameraThe whole screen is blurred in the same way. You set the viewing distance with the sliderSame as above
How the Distance Is Estimated from the Camera Lens

For camera video without depth data (the rear camera without LiDAR), the viewing distance is estimated from information about the lens.

How the Blur Already in a Photo Is Handled
What No Device Can Do
Zoom and Freeze

Pinch to zoom in (100 to 500%). Drag with one finger to move the image (when the image is larger than the screen). Double-tap to reset the zoom and position. A long press on the screen freezes the camera video (when "Freeze on Long Press" is on in the settings).

The size of the blur is calculated from the angle of the range visible on the screen. When you zoom in, the blur also looks larger by the same ratio (see "Size of the Blur" in the Theory).

Saving Images

Pressing the Save button saves the image on the screen to Photos. When "Embed Text in Saved Images" is on in the settings (the initial value), the panel name (PWR, CYL, AXIS and distance on the 2nd line) is overlaid at the top left of the saved image. While research values are used, the same mark "*" as on the screen is added.

Settings

The gear button opens the settings screen. From the top, it has the following sections.

Research Settings

The current pupil size is shown at the top. The optical values of the eye (fixed pupil size, longitudinal chromatic aberration, spherical aberration, field of view, white luminance and age) can be opened by section and changed one by one with a slider or a number.

While research values are used, "Using research values" is shown at the top right of the screen and on the settings screen, and the mark "*" follows the panel name.

The last state (the values and on/off of the four buttons, the viewing distance and so on) is remembered automatically. "Reset" returns everything to the initial values.

Screen Reader (VoiceOver and TalkBack)

The image reads out the sample name, the panel name, the values (sphere, cylinder and axis with their names; for the distance, both the viewing distance and the eye focus; the symbols are not read) and the zoom.

Instead of the gestures on the image, the image has these actions: zoom in and out; move up, down, left or right and back to the center (while zoomed in); reset the zoom and position; next sample and previous sample; look nearer and look farther (instead of two fingers up and down; 0.5 D at a time; not available while "Original" is shown); freeze and unfreeze (with the camera).

The four buttons read out their name, on or off, and value, such as "Sphere, on, −2.00". Instead of the long press, the action "Use only this value" can be chosen.

Notes
Sources and Licenses of the Sample Images

The images with depth data are 3D scenes re-rendered with a different camera position and angle of view, together with the distances. The objects, lights and sky are those of the original scenes (only the sky outside the classroom windows and the placement of small objects on a desk were added when re-rendering). The credit follows the credit shown where the scene is distributed.

SceneAuthorLicenseSource
ClassroomChristophe SeuxCC0blender.org Demo Files
Barcelona PavilioneMirage (Hamza Cheggour). Base model and textures: Claudio Andres. Architecture: Ludwig Mies van der RoheCC BY (version not stated)blender.org Demo Files
Italian FlatFlavio Della TommasaCC BYblender.org Demo Files
Room (Blender 4.1 splash screen)LynxsdesignCC BYblender.org Demo Files (Splash Screens)
Bistro (Amazon Lumberyard Bistro)Amazon LumberyardCC BY 4.0NVIDIA ORCA
Night streets (square, cobblestone street, night road; no depth data)Greg Zaal and others (Jenelle van Heerden, Rico Cilliers)CC0Poly Haven

Privacy Policy