Flash 3-D Experiment 03: Scripted scaling

At the heart of any good Flash anaglyph engine would be a function that renders objects at the correct scale, and at the proper red/cyan offsets, based on their z-axis value (or how far they are away from the viewer). This experiment uses a simple formula to render an object in 3D at any given distance. Move the slider back and forth to render the egg closer or farther.

Flash 3-D Experiment 03

The units are in inches from your monitor surface. That is, if z = 3", that means it's supposed to appear that the egg is three inches deep into your monitor. A negative value means it is sticking out that many inches in front of your monitor.

The computation makes assumptions for factors I can't measure, and these assumptions are probably not all true. (It assumes your monitor resolution is 72 pixels per inch. It assumes your pupils are 2.5 inches apart. It assumes you are sitting 24 inches back from your monitor.) If the assumptions are untrue, your perceived depth will differ from the given depth proportionally. (To see just how much these factors would affect the calculations, see experiment 05.)

At the extreme negative range, ghost images appear. In a real game or animation, I would avoid these, but I wanted to test the extremes in this experiment.

| | Comments (0)

Leave a comment

Cheese Quest 3DPrevious ThingSwell 3D Home PageSwell 3D ArchivesNext ThingPhenomenal stereo photography, by khnemo

Flash 3-D Experiment 03: Scripted scaling

This thing you are reading is "Flash 3-D Experiment 03: Scripted scaling." It was posted by Sean Gleeson in the Experiments category on July 1, 2008 7:35 AM.

Flash 3-D Experiment 03: Scripted scaling Swell 3D Home Page
Swell 3D Archives
Cheese Quest 3D Phenomenal stereo photography, by khnemo

The previous thing before this thing was Cheese Quest 3D.

The next thing after this thing is Phenomenal stereo photography, by khnemo.

Find recent things on the Home Page, or look in the Archives to see everything ever posted to Swell 3D.

Green Web Hosting! This site hosted by DreamHost.

Powered by Movable Type 4.21-en

Page Views