GeoGebra Recreation of the Ambiguous Cylinder Illusion

GeoGebra Recreation of the Ambiguous Cylinder Illusion
Loading the math board and drawing, please wait…
2016-07-03 17:22
This GeoGebra applet recreates the famous Ambiguous Cylinder Illusion. Using the Surface command, it constructs a 3D parametric surface that appears as alternating circles and squares when viewed from different angles. This model helps users understand the mathematical principles behind optical illusions, 3D surface construction, and projection geometry, making it an excellent resource for exploring solid geometry and parametric equations in an interactive setting. The applet allows users to rotate the 3D object freely and observe how its silhouette changes dramatically depending on the viewing angle. At certain perspectives, the shadow or projection of the surface resembles a perfect circle, while at other carefully chosen angles, it transforms into a sharp square. This striking visual phenomenon illustrates how a single three-dimensional shape can encode multiple two-dimensional projections simultaneously. The construction relies on precise parametric surface equations that manipulate curvature and surface normals to produce these dual interpretations. Students can investigate how projection geometry works by comparing the rendered object from multiple viewpoints, gaining intuition about the relationship between 3D forms and their 2D shadows. The interactive nature of the applet encourages experimentation, allowing learners to discover the critical angles at which the illusion is most convincing. By connecting algebraic parametric descriptions with tangible visual outcomes, this tool bridges abstract mathematics and perceptual experience. It is particularly valuable for courses in立体几何, calculus-based surface analysis, and visual perception studies, offering a concrete demonstration of how mathematical structures can produce counterintuitive results that challenge our understanding of spatial reasoning.

GeoGebra Commands & Parameters

  1. Surface(cos(s) + (sgn(s - π / 2) * (abs(sin(s)) - 1)) - 2, (2 * sin(s)), cos(s) - (sgn(s - π / 2) * (abs(sin(s)) - 1)) + d, s, ((-π)) / 2, π + π / 2, d, 0.5, 3) → d
  2. Surface(cos(s) + (sgn(s - π / 2) * (abs(sin(s)) - 1)) + 2, (2 * sin(s)), cos(s) - (sgn(s - π / 2) * (abs(sin(s)) - 1)) + d, s, ((-π)) / 2, π + π / 2, d, 0.5, 3) → c
  3. Surface(cos(s) + (sgn(s - π / 2) * (abs(sin(s)) - 1)), (2 * sin(s)) - 2, cos(s) - (sgn(s - π / 2) * (abs(sin(s)) - 1)) + d, s, ((-π)) / 2, π + π / 2, d, 0.5, 3) → b
  4. Surface(cos(s) + (sgn(s - π / 2) * (abs(sin(s)) - 1)), (2 * sin(s)) + 2, cos(s) - (sgn(s - π / 2) * (abs(sin(s)) - 1)) + d, s, ((-π)) / 2, π + π / 2, d, 0.5, 3) → a

AI Drawing Prompt Reference

Create a 3D parametric surface that appears as alternating circles and squares when viewed from different angles, demonstrating the Ambiguous Cylinder Illusion. The surface consists of multiple parts, with some areas projecting as circles and others as squares depending on the perspective, illustrating the relationship between a 3D form and its 2D shadows.
The prompt above was compiled from the original drawing commands and is for reference only.