Media Tile

An aspect-aware R3F image plane with cached texture loading, depth fading and chunk-distance culling. The minimal demo is a finite three-painting wall.

Exact preview of Media Tile
Type
Component
Category
WebGL
Source license
MIT
Collection
Open Source Experiences

View source in the repository

Usage

// Place this example in vendor/experiences/infinite-canvas/src/example.jsx.
// Use that project's isolated dependencies and Vite setup (see its README).
// Rebuild the included native runtimes with: npm run build:experiences

import { useRef } from 'react';
import { Canvas } from '@react-three/fiber';
import { Vector3 } from 'three';
import { MediaTile } from './parts/MediaTile';

export function Artwork() {
  const grid = useRef({ cx: 0, cy: 0, cz: 0, camZ: 8 });
  return <Canvas camera={{ position: [0, 0, 8] }}>
    <MediaTile media={{ url: '/your-image.jpg', width: 800, height: 1000 }}
      position={new Vector3(0, 0, 0)} scale={new Vector3(3, 3, 1)}
      chunkCx={0} chunkCy={0} chunkCz={0} cameraGridRef={grid} />
  </Canvas>;
}

License and credits

Infinite Canvas by Edoardo Lunardi / Codrops. Original upstream source

Read the original MIT license

Credits and asset notices

Third-party assets and dependencies

196 Art Institute of Chicago public-domain paintings: every included image ID matches the official API and is_public_domain=true; audit at /experiences/infinite-canvas/artwork-license-audit.json. Museum: https://www.artic.edu/open-access

Original title, artist, date and artwork link retained in /experiences/infinite-canvas/artworks/manifest.json. Fifteen stale image-ID files omitted; no generated media or remote embed.

Keep the original source and media notices with your copy.

Explore more

  • Liquid FormExact preview of Liquid Form

    A centered silver ray-marched liquid form with authored studio reflections and pointer-responsive camera drift.

  • Boarding PassExact preview of Boarding Pass

    A live flight pass whose changed gate and times roll over like a departures board.

  • Aurora TextExact preview of Aurora Text

    Multi-colour aurora motion within a large type specimen.

Frontfield homepage