Skip to main content

Overview

RALQ’s augmented reality (AR) feature allows students to view molecular structures and laboratory instruments in their real-world environment. By overlaying 3D models onto the physical world through smartphone or tablet cameras, AR provides an immersive learning experience that enhances spatial understanding of chemistry concepts.
Augmented reality bridges the gap between digital 3D models and physical reality, allowing students to visualize molecules and equipment at scale in their actual environment.

How AR Mode Works

RALQ implements AR functionality through two complementary approaches:

1. Model-Viewer Native AR

The Google model-viewer component includes built-in AR capabilities through the ar attribute:
<model-viewer
    src="modelos/agua.glb"
    alt="Modelo de agua"
    auto-rotate
    camera-controls
    ar
    style="width: 100%; height: 240px; background-color: transparent;"
    shadow-intensity="0"
    interaction-prompt="none">
</model-viewer>
How It Works:
  • The ar attribute enables AR Quick Look button on supported devices
  • Users tap the AR icon to launch native AR experience
  • Model appears in camera view overlaid on real environment
  • Users can move device to view model from different angles
  • Pinch to scale, tap to place, drag to reposition
Many molecules and instruments include dedicated AR experiences through MyWebAR:
<a href="https://mywebar.com/p/Project_2_y08cdw22dd" target="_blank"
    style="display: inline-block; margin-top: auto; padding: 0.8rem 2rem; 
           background-color: #2563eb; color: white; border-radius: 8px;">
    Ver en Realidad Aumentada
</a>
Benefits:
  • Works across more device types
  • No app installation required
  • Custom AR experiences with annotations
  • Shareable links for remote learning

Device Compatibility

ARCore Requirements

Minimum Requirements:
  • Android 7.0 (Nougat) or higher
  • ARCore support (check Google’s supported devices list)
  • Camera and motion sensors
  • Adequate processing power
Supported Browsers:
  • Chrome (recommended)
  • Samsung Internet
  • Firefox with WebXR support
How to Use:
  1. Open RALQ in supported browser
  2. Navigate to molecule or instrument
  3. Tap “View in AR” button
  4. Grant camera permissions
  5. Point camera at flat surface
  6. Tap to place model
Over 400 million Android devices support ARCore. Check device compatibility at developers.google.com/ar/devices

Accessing AR Mode

For Molecular Structures

Each molecule card in estructuras-mol.php includes AR access: Available AR Links: Access Methods:
  1. Direct Button: Click “Ver en Realidad Aumentada” button on molecule card
  2. Native AR: Tap AR Quick Look icon in model-viewer (iOS/Android)
  3. URL Sharing: Share MyWebAR links for remote learning

For Laboratory Instruments

Instruments in quimica-general.php and analisis-instrumental.php include AR: Available Instrument AR:

Microscope

https://mywebar.com/p/Project_1_f3ia9uedarView lab microscope at actual scale

Mortar and Pestle

https://mywebar.com/p/Project_2_weu37bf31See grinding tool in 3D space

Test Tube Rack

Native AR Available For All Instruments:
  • All GLB models support native AR via model-viewer
  • Works on any ARCore/ARKit compatible device
  • No additional setup required

Best Practices for AR Viewing

Environment Setup

Lighting

Optimal Conditions:
  • Good ambient lighting (avoid darkness)
  • Avoid direct sunlight (causes glare)
  • Consistent lighting across surface
  • No flickering or colored lights
Why It Matters: AR tracking depends on visual features. Good lighting helps device detect surfaces and maintain stable positioning.

Surface

Best Surfaces:
  • Flat, horizontal surfaces (tables, floors)
  • Textured surfaces (better tracking)
  • Stable, non-reflective materials
  • Avoid glass or mirrors
Why It Matters: AR needs visual reference points. Featureless or reflective surfaces make tracking difficult.

Space

Room Requirements:
  • Clear area around viewing point
  • 2-3 meters of free space minimum
  • Ability to walk around model
  • No obstructions in viewing path
Why It Matters: Moving around models provides better 3D understanding. Space allows exploration from all angles.

Device

Device Tips:
  • Fully charged battery (AR is intensive)
  • Close unnecessary apps
  • Clean camera lens
  • Stable internet connection for loading
Why It Matters: AR requires significant processing power. Optimized device ensures smooth experience.

Interaction Techniques

Placing Models:
  1. Surface Detection: Move device slowly to scan surface
  2. Placement: Tap screen where you want model to appear
  3. Adjustment: Drag to reposition if needed
  4. Scale: Pinch to resize model to appropriate scale
Viewing Models:
  1. Walk Around: Physically move around model for different perspectives
  2. Get Close: Move device closer for detail examination
  3. Multiple Angles: View from above, below, and sides
  4. Rotation: Some platforms allow rotation with gestures
Optimal Distances:
  • Molecules: 30-60 cm for detail, 1-2 meters for overall structure
  • Instruments: 1-3 meters to see full equipment
  • Comparison: Place multiple models at same distance for size comparison

Educational Use Cases

Self-Paced Learning:
  • Explore molecules before/after chemistry lessons
  • Compare molecular sizes and structures
  • Examine instrument details before lab work
  • Practice identifying equipment
Study Strategies:
  • View water molecule at different scales
  • Compare caffeine and propane structures
  • Examine microscope components up close
  • Visualize molecular geometry concepts
Benefits:
  • Learn at own pace
  • Repeat viewing as needed
  • Study from home
  • Build confidence before physical labs

Troubleshooting

Common Issues and Solutions

Possible Causes:
  • Device doesn’t support AR
  • Browser doesn’t support WebXR
  • Model-viewer not loaded properly
Solutions:
  1. Check device compatibility (ARCore/ARKit)
  2. Update browser to latest version
  3. Try different browser (Chrome/Safari)
  4. Refresh page to reload model-viewer
  5. Use external AR links (MyWebAR) instead
Possible Causes:
  • Insufficient lighting
  • Surface lacks texture
  • Camera permissions denied
Solutions:
  1. Increase ambient lighting
  2. Move to textured surface (wood, carpet)
  3. Grant camera permissions in browser
  4. Move device slowly to help tracking
  5. Restart AR session
Possible Causes:
  • Default scale not appropriate
  • Viewing distance incorrect
Solutions:
  1. Use pinch gesture to resize
  2. Move closer or farther from model
  3. Replace model to reset scale
  4. Check scale information in documentation
Possible Causes:
  • Poor lighting conditions
  • Moving too quickly
  • Reflective or featureless surface
Solutions:
  1. Improve lighting consistency
  2. Move device more slowly
  3. Change to different surface
  4. Ensure camera lens is clean
  5. Close other apps using camera/sensors

Technical Details

AR Implementation Stack

Google Model-Viewer

Native AR Support:
  • ARKit integration (iOS)
  • ARCore integration (Android)
  • WebXR API utilization
  • USDZ format for iOS
  • GLB format for Android
Version: Latest from unpkg CDN

MyWebAR Platform

Web-Based AR:
  • Cross-platform compatibility
  • No app installation required
  • Custom AR experiences
  • Link sharing capability
  • Analytics and tracking
Integration: External links per model

File Formats

GLB (GL Transmission Format Binary):
  • Used for all 3D models in RALQ
  • Single-file format (geometry + textures)
  • Efficient for web delivery
  • Supported by model-viewer
  • Compatible with ARCore
USDZ (Universal Scene Description):
  • Automatically generated by model-viewer for iOS
  • Apple’s AR format
  • Used by AR Quick Look
  • Created on-the-fly from GLB

Browser Support

BrowserAndroid ARiOS ARDesktop 3D
Chrome✅ Full❌ N/A✅ Full
Safari❌ N/A✅ Full✅ Full
Firefox⚠️ Limited❌ N/A✅ Full
Edge✅ Full❌ N/A✅ Full
Samsung Internet✅ Full❌ N/A✅ Full
iOS Safari provides the best AR experience on Apple devices. Chrome is recommended for Android devices.

Safety and Privacy

Safety Considerations:
  • Be aware of surroundings when using AR
  • Don’t use AR while walking or in dangerous areas
  • Watch for obstacles when moving around models
  • Take breaks to avoid eye strain
  • Ensure adequate space for movement
Privacy:
  • Camera access required for AR functionality
  • Images captured stay on device unless shared
  • MyWebAR may collect usage analytics
  • No personal information required
  • Review browser camera permissions

Future Enhancements

Potential improvements for RALQ’s AR capabilities:

Interactive Features

  • Tap atoms to see element information
  • Animated chemical reactions
  • Bond manipulation and breaking
  • Molecular assembly activities

Multi-Model AR

  • Compare multiple molecules simultaneously
  • Show molecular interactions
  • Reaction pathway visualization
  • Scale comparison tools

Measurement Tools

  • Bond length measurement
  • Bond angle calculation
  • Molecular size comparison
  • Distance measurements

Educational Annotations

  • Floating labels for atoms
  • Bond type indicators
  • Property information overlays
  • Guided tours of structures

Additional Resources

Learn More About AR: Related RALQ Features:

Build docs developers (and LLMs) love